|
AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
Implements a zip-iterator concept for a key-value pair. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/main/src/axom/core/FlatMapUtil.hpp>

Public Types | |
| using | difference_type = IndexType |
| using | value_type = std::pair< const KeyType, ValueType > |
| using | reference = ValueType & |
| using | pointer = ValueType * |
| using | iterator_category = std::random_access_iterator_tag |
Equality and relational operators | |
| using | iterator = IteratorBase< KVPairIterator< KeyType, ValueType >, IndexType > |
Public Member Functions | |
| KVPairIterator ()=default | |
| AXOM_HOST_DEVICE | KVPairIterator (KeyIterator keyIter, ValueIterator valueIter) |
| AXOM_HOST_DEVICE value_type | operator* () const |
| Returns the current iterator value. More... | |
Iterator advance and distance operators | |
| AXOM_SUPPRESS_HD_WARN AXOM_HOST_DEVICE KVPairIterator< KeyType, ValueType > & | operator++ () |
| Pre-increment operator. More... | |
| KVPairIterator< KeyType, ValueType > | operator++ (int) |
| Post-increment operator. More... | |
| KVPairIterator< KeyType, ValueType > & | operator-- () |
| Pre-decrement operator. More... | |
| KVPairIterator< KeyType, ValueType > | operator-- (int) |
| Post-decrement operator. More... | |
| AXOM_SUPPRESS_HD_WARN AXOM_HOST_DEVICE KVPairIterator< KeyType, ValueType > & | operator+= (IndexType n) |
| Addition-assignment operator. More... | |
| KVPairIterator< KeyType, ValueType > & | operator-= (IndexType n) |
| Subtraction-assignment operator. More... | |
Protected Member Functions | |
| AXOM_HOST_DEVICE void | advance (IndexType n) |
Protected Attributes | |
| IndexType | m_pos |
Implements a zip-iterator concept for a key-value pair.
| using axom::detail::KVPairIterator< KeyType, ValueType >::difference_type = IndexType |
| using axom::detail::KVPairIterator< KeyType, ValueType >::value_type = std::pair<const KeyType, ValueType> |
| using axom::detail::KVPairIterator< KeyType, ValueType >::reference = ValueType& |
| using axom::detail::KVPairIterator< KeyType, ValueType >::pointer = ValueType* |
| using axom::detail::KVPairIterator< KeyType, ValueType >::iterator_category = std::random_access_iterator_tag |
|
inherited |
|
default |
|
inline |
|
inline |
Returns the current iterator value.
|
inlineprotected |
Implementation of advance() as required by IteratorBase
References axom::IteratorBase< KVPairIterator< KeyType, ValueType >, IndexType >::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.
|
protectedinherited |