dune-istl 2.12-git
Loading...
Searching...
No Matches
Dune::Experimental::OrderedIndexRangeTraits< IntegralRange< T > > Struct Template Reference

#include <dune/istl/experimental/indexrange.hh>

Public Types

using index_type = T
 The type of indices in the index set.
 
using size_type = typename IntegralRange< T >::size_type
 The type used to count elements in the index set.
 

Static Public Member Functions

static constexpr IntegralRange< index_type > range (const IntegralRange< T > &index_set)
 Return the logical index range covered by index_set.
 
static constexpr size_type offset (const IntegralRange< T > &index_set, const index_type &value)
 Compute offset of value by subtracting the beginning of the range.
 

Member Typedef Documentation

◆ index_type

template<class T >
using Dune::Experimental::OrderedIndexRangeTraits< IntegralRange< T > >::index_type = T

The type of indices in the index set.

◆ size_type

template<class T >
using Dune::Experimental::OrderedIndexRangeTraits< IntegralRange< T > >::size_type = typename IntegralRange<T>::size_type

The type used to count elements in the index set.

Member Function Documentation

◆ offset()

template<class T >
static constexpr size_type Dune::Experimental::OrderedIndexRangeTraits< IntegralRange< T > >::offset ( const IntegralRange< T > &  index_set,
const index_type &  value 
)
inlinestaticconstexpr

Compute offset of value by subtracting the beginning of the range.

◆ range()

template<class T >
static constexpr IntegralRange< index_type > Dune::Experimental::OrderedIndexRangeTraits< IntegralRange< T > >::range ( const IntegralRange< T > &  index_set)
inlinestaticconstexpr

Return the logical index range covered by index_set.

For an IntegralRange, the range is exactly the range of indices it covers.


The documentation for this struct was generated from the following file: