MultiIndex container iterator. More...
#include <MultiIndex.h>
Public Types | |
typedef std::conditional< is_const, const MultiIndex< T > &, MultiIndex< T > & >::type | reference_type |
Public Member Functions | |
const_noconst_iterator (reference_type multi_index, unsigned int position) | |
unsigned int | flatIndex () const |
reference_type | getMultiIndexObject () const |
const_noconst_iterator & | operator= (const const_noconst_iterator &other) |
const_noconst_iterator (const const_noconst_iterator &)=default | |
const_noconst_iterator & | operator++ () |
const_noconst_iterator & | operator++ (int) |
const_noconst_iterator & | operator-- () |
const_noconst_iterator & | operator-- (int) |
bool | operator== (const const_noconst_iterator &other) const |
to be equal both iterators must hold a reference to the same MultiIndexObject and be at the same _flat_index More... | |
bool | operator!= (const const_noconst_iterator &other) const |
std::pair< const size_type &, T & > | operator* () |
dereferencing operator More... | |
std::pair< const size_type &, const T & > | operator* () const |
Protected Attributes | |
reference_type | _multi_index |
unsigned int | _flat_index |
size_type | _shape |
size_type | _indices |
MultiIndex container iterator.
Nested iterator class for MultiIndex containers.
Definition at line 27 of file MultiIndex.h.
typedef std::conditional<is_const, const MultiIndex<T> &, MultiIndex<T> &>::type MultiIndex< T >::const_noconst_iterator< is_const >::reference_type |
Definition at line 132 of file MultiIndex.h.
|
inline |
Definition at line 134 of file MultiIndex.h.
|
default |
|
inline |
Definition at line 141 of file MultiIndex.h.
Referenced by MultiIndex< T >::const_noconst_iterator< is_const >::operator=(), and MultiIndex< T >::const_noconst_iterator< is_const >::operator==().
|
inline |
Definition at line 142 of file MultiIndex.h.
Referenced by MultiIndex< T >::const_noconst_iterator< is_const >::operator=(), and MultiIndex< T >::const_noconst_iterator< is_const >::operator==().
|
inline |
Definition at line 229 of file MultiIndex.h.
|
inline |
dereferencing operator
Definition at line 232 of file MultiIndex.h.
|
inline |
Definition at line 236 of file MultiIndex.h.
|
inline |
Definition at line 157 of file MultiIndex.h.
|
inline |
Definition at line 172 of file MultiIndex.h.
|
inline |
Definition at line 188 of file MultiIndex.h.
|
inline |
Definition at line 206 of file MultiIndex.h.
|
inline |
Definition at line 145 of file MultiIndex.h.
|
inline |
to be equal both iterators must hold a reference to the same MultiIndexObject and be at the same _flat_index
Definition at line 225 of file MultiIndex.h.
|
protected |
Definition at line 243 of file MultiIndex.h.
|
protected |
Definition at line 245 of file MultiIndex.h.
|
protected |
Definition at line 242 of file MultiIndex.h.
|
protected |
Definition at line 244 of file MultiIndex.h.