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/latest/src/axom/slam/SubMap.hpp>
Public Types | |
using | IterBase = IteratorBase< RangeIterator, SetPosition > |
using | iter = Iterator |
using | PositionType = SetPosition |
using | iterator_category = typename MapRangeIterator::iterator_category |
using | value_type = typename MapRangeIterator::value_type |
using | reference = typename MapRangeIterator::reference |
using | pointer = typename MapRangeIterator::pointer |
using | difference_type = SetPosition |
Equality and relational operators | |
using | iterator = IteratorBase< RangeIterator, SetPosition > |
Public Member Functions | |
PositionType | getParentPosition (PositionType subset_pos) |
AXOM_HOST_DEVICE | RangeIterator (PositionType pos, SubMap sMap) |
AXOM_HOST_DEVICE reference | operator* () const |
Returns the current iterator value. More... | |
AXOM_HOST_DEVICE pointer | operator-> () const |
template<typename... ComponentIndex> | |
AXOM_HOST_DEVICE DataRefType | operator() (ComponentIndex... comp_idx) const |
template<typename... ComponentIndex> | |
AXOM_HOST_DEVICE DataRefType | value (ComponentIndex... comp_idx) const |
value_type | operator[] (PositionType n) const |
SetElement | index () const |
Returns the set element mapped by this iterator. More... | |
SetPosition | flatIndex () const |
Returns the flat index in the original map pointed to by this iterator. More... | |
SetPosition | submapIndex () const |
Returns the index into the submap pointed to by this iterator. More... | |
PositionType | numComp () const |
Returns the number of components per element in the Map. More... | |
Iterator advance and distance operators | |
AXOM_HOST_DEVICE RangeIterator & | operator++ () |
Pre-increment operator. More... | |
RangeIterator | operator++ (int) |
Post-increment operator. More... | |
RangeIterator & | operator-- () |
Pre-decrement operator. More... | |
RangeIterator | operator-- (int) |
Post-decrement operator. More... | |
RangeIterator & | operator+= (SetPosition n) |
Addition-assignment operator. More... | |
RangeIterator & | operator-= (SetPosition n) |
Subtraction-assignment operator. More... | |
Protected Member Functions | |
AXOM_HOST_DEVICE void | advance (PositionType n) |
Protected Attributes | |
SetPosition | m_pos |
An iterator for SubMap, based on MapIterator.
using axom::slam::SubMap< SuperMapType, SubsetType, InterfacePolicy >::RangeIterator::IterBase = IteratorBase<RangeIterator, SetPosition> |
using axom::slam::SubMap< SuperMapType, SubsetType, InterfacePolicy >::RangeIterator::iter = Iterator |
using axom::slam::SubMap< SuperMapType, SubsetType, InterfacePolicy >::RangeIterator::PositionType = SetPosition |
using axom::slam::SubMap< SuperMapType, SubsetType, InterfacePolicy >::RangeIterator::iterator_category = typename MapRangeIterator::iterator_category |
using axom::slam::SubMap< SuperMapType, SubsetType, InterfacePolicy >::RangeIterator::value_type = typename MapRangeIterator::value_type |
using axom::slam::SubMap< SuperMapType, SubsetType, InterfacePolicy >::RangeIterator::reference = typename MapRangeIterator::reference |
using axom::slam::SubMap< SuperMapType, SubsetType, InterfacePolicy >::RangeIterator::pointer = typename MapRangeIterator::pointer |
using axom::slam::SubMap< SuperMapType, SubsetType, InterfacePolicy >::RangeIterator::difference_type = SetPosition |
|
inherited |
|
inline |
|
inline |
|
inline |
Returns the current iterator value.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns the set element mapped by this iterator.
|
inline |
Returns the flat index in the original map pointed to by this iterator.
|
inline |
Returns the index into the submap pointed to by this iterator.
|
inline |
Returns the number of components per element in the Map.
|
inlineprotected |
Implementation of advance() as required by IteratorBase
|
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 |