AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
An iterator type for a map. Each increment operation advances the iterator to the element at the next flat index. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/latest/src/axom/slam/Map.hpp>
Public Types | |
using | DataRefType = std::conditional_t< Const, ConstValueType, ValueType > |
using | DataType = std::remove_reference_t< DataRefType > |
using | iterator_category = std::random_access_iterator_tag |
using | value_type = DataType |
using | reference = DataRefType |
using | pointer = value_type * |
using | difference_type = SetPosition |
using | IterBase = IteratorBase< MapIterator, SetPosition > |
using | MapConstPtr = std::conditional_t< Const, const Map *, Map * > |
using | iter = MapIterator |
using | PositionType = SetPosition |
Equality and relational operators | |
using | iterator = IteratorBase< MapIterator< Const >, SetPosition > |
Public Member Functions | |
MapIterator (PositionType pos, MapConstPtr oMap) | |
AXOM_HOST_DEVICE reference | operator* () const |
Returns the current iterator value. More... | |
AXOM_HOST_DEVICE pointer | operator-> () const |
SetElement | index () const |
Returns the set element mapped by this iterator. More... | |
PositionType | compIndex () const |
Returns the component index pointed to by this iterator. More... | |
SetPosition | flatIndex () const |
Returns the flat index pointed to by this iterator. More... | |
Iterator advance and distance operators | |
AXOM_HOST_DEVICE MapIterator< Const > & | operator++ () |
Pre-increment operator. More... | |
MapIterator< Const > | operator++ (int) |
Post-increment operator. More... | |
MapIterator< Const > & | operator-- () |
Pre-decrement operator. More... | |
MapIterator< Const > | operator-- (int) |
Post-decrement operator. More... | |
MapIterator< Const > & | operator+= (SetPosition n) |
Addition-assignment operator. More... | |
MapIterator< Const > & | operator-= (SetPosition n) |
Subtraction-assignment operator. More... | |
Public Attributes | |
PosType | m_pos |
Protected Member Functions | |
AXOM_HOST_DEVICE void | advance (PositionType n) |
An iterator type for a map. Each increment operation advances the iterator to the element at the next flat index.
using axom::slam::Map< T, S, IndPol, StrPol, IfacePol >::MapIterator< Const >::DataRefType = std::conditional_t<Const, ConstValueType, ValueType> |
using axom::slam::Map< T, S, IndPol, StrPol, IfacePol >::MapIterator< Const >::DataType = std::remove_reference_t<DataRefType> |
using axom::slam::Map< T, S, IndPol, StrPol, IfacePol >::MapIterator< Const >::iterator_category = std::random_access_iterator_tag |
using axom::slam::Map< T, S, IndPol, StrPol, IfacePol >::MapIterator< Const >::value_type = DataType |
using axom::slam::Map< T, S, IndPol, StrPol, IfacePol >::MapIterator< Const >::reference = DataRefType |
using axom::slam::Map< T, S, IndPol, StrPol, IfacePol >::MapIterator< Const >::pointer = value_type* |
using axom::slam::Map< T, S, IndPol, StrPol, IfacePol >::MapIterator< Const >::difference_type = SetPosition |
using axom::slam::Map< T, S, IndPol, StrPol, IfacePol >::MapIterator< Const >::IterBase = IteratorBase<MapIterator, SetPosition> |
using axom::slam::Map< T, S, IndPol, StrPol, IfacePol >::MapIterator< Const >::MapConstPtr = std::conditional_t<Const, const Map*, Map*> |
using axom::slam::Map< T, S, IndPol, StrPol, IfacePol >::MapIterator< Const >::iter = MapIterator |
using axom::slam::Map< T, S, IndPol, StrPol, IfacePol >::MapIterator< Const >::PositionType = SetPosition |
|
inherited |
|
inline |
|
inline |
Returns the current iterator value.
References axom::slam::Map< T, S, IndPol, StrPol, IfacePol >::MapIterator< Const >::m_pos.
|
inline |
|
inline |
Returns the set element mapped by this iterator.
References axom::slam::Map< T, S, IndPol, StrPol, IfacePol >::MapIterator< Const >::m_pos.
|
inline |
Returns the component index pointed to by this iterator.
References axom::slam::Map< T, S, IndPol, StrPol, IfacePol >::MapIterator< Const >::m_pos.
|
inline |
Returns the flat index pointed to by this iterator.
References axom::slam::Map< T, S, IndPol, StrPol, IfacePol >::MapIterator< Const >::m_pos.
|
inlineprotected |
Implementation of advance() as required by IteratorBase
References axom::slam::Map< T, S, IndPol, StrPol, IfacePol >::MapIterator< Const >::m_pos.
|
inlineinherited |
Pre-increment operator.
|
inlineinherited |
Post-increment operator.
|
inlineinherited |
Pre-decrement operator.
|
inlineinherited |
Post-decrement operator.
|
inlineinherited |
Addition-assignment operator.
|
inlineinherited |
Subtraction-assignment operator.
PosType axom::IteratorBase< IterType, PosType >::m_pos |