AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
Implements a forward iterator concept on a BivariateSet type. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/latest/src/axom/slam/BivariateSet.hpp>
Public Types | |
using | IndexType = typename BivariateSetType::PositionType |
using | BaseType = IteratorBase< BivariateSetIterator< BivariateSetType >, IndexType > |
using | difference_type = IndexType |
using | value_type = std::pair< IndexType, IndexType > |
using | reference = value_type & |
using | pointer = value_type * |
using | iterator_category = std::forward_iterator_tag |
Equality and relational operators | |
using | iterator = IteratorBase< BivariateSetIterator< BivariateSetType >, BivariateSetType::PositionType > |
Public Member Functions | |
BivariateSetIterator (const BivariateSetType *bset, IndexType flatPos=0) | |
std::pair< IndexType, IndexType > | operator* () const |
IndexType | firstIndex () const |
Return the first set index pointed to by this iterator. More... | |
IndexType | secondIndex () const |
Return the second set index pointed to by this iterator. More... | |
AXOM_HOST_DEVICE IndexType | flatIndex () const |
Return the flat iteration index of this iterator. More... | |
Iterator advance and distance operators | |
AXOM_HOST_DEVICE BivariateSetIterator< BivariateSetType > & | operator++ () |
Pre-increment operator. More... | |
BivariateSetIterator< BivariateSetType > | operator++ (int) |
Post-increment operator. More... | |
BivariateSetIterator< BivariateSetType > & | operator-- () |
Pre-decrement operator. More... | |
BivariateSetIterator< BivariateSetType > | operator-- (int) |
Post-decrement operator. More... | |
BivariateSetIterator< BivariateSetType > & | operator+= (BivariateSetType::PositionType n) |
Addition-assignment operator. More... | |
BivariateSetIterator< BivariateSetType > & | operator-= (BivariateSetType::PositionType n) |
Subtraction-assignment operator. More... | |
Protected Member Functions | |
AXOM_HOST_DEVICE void | advance (IndexType n) |
Protected Attributes | |
BivariateSetType::PositionType | m_pos |
Implements a forward iterator concept on a BivariateSet type.
using axom::slam::BivariateSetIterator< BivariateSetType >::IndexType = typename BivariateSetType::PositionType |
using axom::slam::BivariateSetIterator< BivariateSetType >::BaseType = IteratorBase<BivariateSetIterator<BivariateSetType>, IndexType> |
using axom::slam::BivariateSetIterator< BivariateSetType >::difference_type = IndexType |
using axom::slam::BivariateSetIterator< BivariateSetType >::value_type = std::pair<IndexType, IndexType> |
using axom::slam::BivariateSetIterator< BivariateSetType >::reference = value_type& |
using axom::slam::BivariateSetIterator< BivariateSetType >::pointer = value_type* |
using axom::slam::BivariateSetIterator< BivariateSetType >::iterator_category = std::forward_iterator_tag |
|
inherited |
|
inline |
|
inline |
|
inline |
Return the first set index pointed to by this iterator.
References axom::slam::BivariateSetIterator< BivariateSetType >::flatIndex().
|
inline |
Return the second set index pointed to by this iterator.
References axom::slam::BivariateSetIterator< BivariateSetType >::flatIndex().
|
inline |
Return the flat iteration index of this iterator.
References axom::IteratorBase< BivariateSetIterator< BivariateSetType >, BivariateSetType::PositionType >::m_pos.
|
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 |