dune-spgrid 2.7
|
multiindex More...
#include <dune/grid/spgrid/multiindex.hh>
Public Types | |
typedef std::array< int, dimension >::const_iterator | ConstIterator |
typedef std::array< int, dimension >::iterator | Iterator |
Public Member Functions | |
SPMultiIndex () | |
default constructor More... | |
SPMultiIndex (const int(&index)[dimension]) | |
constructor from int array More... | |
SPMultiIndex (const std::array< int, dimension > &index) | |
constructor from int array More... | |
SPMultiIndex (const This &other) | |
copy constructor More... | |
This & | operator= (const This &other) |
copy assignment More... | |
This & | operator= (const int(&index)[dimension]) |
assignment operator from int array More... | |
This & | operator= (const std::array< int, dimension > &index) |
This & | operator+= (const This &other) |
add another multiindex to this one (vector operation) More... | |
This & | operator-= (const This &other) |
subtract another multiindex from this one (vector operation) More... | |
This & | operator*= (int a) |
scale this multiindex (vector operation) More... | |
This & | operator/= (int a) |
scale this multiindex (vector operation) More... | |
const int & | operator[] (int i) const |
access i-th component More... | |
int & | operator[] (int i) |
access i-th component More... | |
bool | operator== (const This &other) const |
compare two multiindices for equality More... | |
bool | operator!= (const This &other) const |
compare two multiindices for inequality More... | |
void | axpy (const int a, const This &other) |
add multiple of a multiindex to this one (vector operation) More... | |
ConstIterator | begin () const |
Iterator | begin () |
ConstIterator | cbegin () const |
ConstIterator | end () const |
Iterator | end () |
ConstIterator | cend () const |
void | clear () |
initialize to zero More... | |
void | increment (const This &bound, const int k=1) |
int | codimension () const |
Static Public Member Functions | |
static This | zero () |
obtain the zero multiindex More... | |
Static Public Attributes | |
static const int | dimension = dim |
dimension of the multiindex More... | |
multiindex
dim | dimension of the multiindex |
typedef std::array<int,dimension>::const_iterator Dune::SPMultiIndex< dim >::ConstIterator |
typedef std::array<int,dimension>::iterator Dune::SPMultiIndex< dim >::Iterator |
|
inline |
default constructor
|
inline |
constructor from int array
[in] | index | int array to copy |
|
inline |
constructor from int array
[in] | index | int array to copy |
|
inline |
copy constructor
|
inline |
add multiple of a multiindex to this one (vector operation)
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
initialize to zero
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
compare two multiindices for inequality
|
inline |
scale this multiindex (vector operation)
|
inline |
add another multiindex to this one (vector operation)
|
inline |
subtract another multiindex from this one (vector operation)
|
inline |
scale this multiindex (vector operation)
|
inline |
assignment operator from int array
|
inline |
|
inline |
copy assignment
|
inline |
compare two multiindices for equality
|
inline |
access i-th component
|
inline |
access i-th component
|
inlinestatic |
obtain the zero multiindex
|
static |
dimension of the multiindex