AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
An iterator for SubMap, based on MapIterator. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/v0.5.0/src/axom/slam/SubMap.hpp>
Public Types | |
using | iterator_category = std::random_access_iterator_tag |
using | value_type = DataType |
using | difference_type = SetPosition |
using | IterBase = IteratorBase< SubMapIterator, SetPosition > |
using | iter = SubMapIterator |
using | PositionType = SetPosition |
Public Member Functions | |
SubMapIterator (PositionType pos, SubMap *sMap) | |
DataType & | operator* () |
Returns the current iterator value. If the SubMap has multiple components, this will return the first component. To access the other components, use iter(comp) More... | |
DataType & | operator() (IndexType comp=0) |
Returns the iterator's value at the specified component. Returns the first component if comp_idx is not specified. More... | |
DataType & | operator[] (PositionType n) |
Returns the first component value after n increments. More... | |
DataType & | value (IndexType comp=0) |
Same as operator() More... | |
IndexType | index () |
Returns the Set element at the iterator's position. More... | |
PositionType | numComp () const |
Returns the number of component per element in the SubMap. More... | |
Iterator advance and distance operators | |
SubMapIterator & | operator++ () |
Pre-increment operator. More... | |
SubMapIterator | operator++ (int) |
Post-increment operator. More... | |
SubMapIterator & | operator-- () |
Pre-decrement operator. More... | |
SubMapIterator | operator-- (int) |
Post-decrement operator. More... | |
SubMapIterator & | operator+= (SetPosition n) |
Addition-assignment operator. More... | |
SubMapIterator & | operator-= (SetPosition n) |
Subtraction-assignment operator. More... | |
Protected Member Functions | |
void | advance (PositionType pos) |
Protected Attributes | |
SetPosition | m_pos |
An iterator for SubMap, based on MapIterator.
using axom::slam::SubMap< SetType, DataType, SuperMapType, StridePolicy >::SubMapIterator::iterator_category = std::random_access_iterator_tag |
using axom::slam::SubMap< SetType, DataType, SuperMapType, StridePolicy >::SubMapIterator::value_type = DataType |
using axom::slam::SubMap< SetType, DataType, SuperMapType, StridePolicy >::SubMapIterator::difference_type = SetPosition |
using axom::slam::SubMap< SetType, DataType, SuperMapType, StridePolicy >::SubMapIterator::IterBase = IteratorBase<SubMapIterator, SetPosition> |
using axom::slam::SubMap< SetType, DataType, SuperMapType, StridePolicy >::SubMapIterator::iter = SubMapIterator |
using axom::slam::SubMap< SetType, DataType, SuperMapType, StridePolicy >::SubMapIterator::PositionType = SetPosition |
|
inline |
|
inline |
Returns the current iterator value. If the SubMap has multiple components, this will return the first component. To access the other components, use iter(comp)
References axom::slam::IteratorBase< SubMapIterator, SetPosition >::m_pos.
|
inline |
Returns the iterator's value at the specified component. Returns the first component if comp_idx is not specified.
comp_idx | (Optional) Zero-based index of the component. |
References axom::slam::IteratorBase< SubMapIterator, SetPosition >::m_pos.
|
inline |
Returns the first component value after n increments.
|
inline |
Same as operator()
References axom::slam::IteratorBase< SubMapIterator, SetPosition >::m_pos.
|
inline |
Returns the Set element at the iterator's position.
References axom::slam::SubMap< SetType, DataType, SuperMapType, StridePolicy >::index(), and axom::slam::IteratorBase< SubMapIterator, SetPosition >::m_pos.
|
inline |
Returns the number of component per element in the SubMap.
References axom::slam::SubMap< SetType, DataType, SuperMapType, StridePolicy >::numComp().
|
inlineprotected |
|
inlineinherited |
Pre-increment operator.
|
inlineinherited |
Post-increment operator.
|
inlineinherited |
Pre-decrement operator.
|
inlineinherited |
Post-decrement operator.
|
inlineinherited |
Addition-assignment operator.
|
inlineinherited |
Subtraction-assignment operator.
|
protectedinherited |
Referenced by axom::slam::SubMap< SetType, DataType, SuperMapType, StridePolicy >::SubMapIterator::advance(), axom::slam::SubMap< SetType, DataType, SuperMapType, StridePolicy >::SubMapIterator::index(), axom::slam::SubMap< SetType, DataType, SuperMapType, StridePolicy >::SubMapIterator::operator()(), axom::slam::SubMap< SetType, DataType, SuperMapType, StridePolicy >::SubMapIterator::operator*(), and axom::slam::SubMap< SetType, DataType, SuperMapType, StridePolicy >::SubMapIterator::value().