|
AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
Iterator helper for iterating over filled buckets given an array of bucket indices. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/develop/src/axom/core/FlatMapUtil.hpp>

Public Types | |
| using | difference_type = IndexType |
| using | value_type = std::pair< const KeyType, ValueType > |
| using | reference = value_type & |
| using | pointer = value_type * |
| using | iterator_category = std::random_access_iterator_tag |
Equality and relational operators | |
| using | iterator = IteratorBase< FlatMapOffsetIterator< KeyType, ValueType >, IndexType > |
Public Member Functions | |
| FlatMapOffsetIterator ()=default | |
| AXOM_HOST_DEVICE | FlatMapOffsetIterator (PairStorage *buckets, IndexType *offsets) |
| AXOM_HOST_DEVICE reference | operator* () const |
Iterator advance and distance operators | |
| AXOM_SUPPRESS_HD_WARN AXOM_HOST_DEVICE FlatMapOffsetIterator< KeyType, ValueType > & | operator++ () |
| Pre-increment operator. More... | |
| FlatMapOffsetIterator< KeyType, ValueType > | operator++ (int) |
| Post-increment operator. More... | |
| FlatMapOffsetIterator< KeyType, ValueType > & | operator-- () |
| Pre-decrement operator. More... | |
| FlatMapOffsetIterator< KeyType, ValueType > | operator-- (int) |
| Post-decrement operator. More... | |
| AXOM_SUPPRESS_HD_WARN AXOM_HOST_DEVICE FlatMapOffsetIterator< KeyType, ValueType > & | operator+= (IndexType n) |
| Addition-assignment operator. More... | |
| FlatMapOffsetIterator< KeyType, ValueType > & | operator-= (IndexType n) |
| Subtraction-assignment operator. More... | |
Protected Member Functions | |
| AXOM_HOST_DEVICE void | advance (IndexType n) |
Protected Attributes | |
| IndexType | m_pos |
Iterator helper for iterating over filled buckets given an array of bucket indices.
| using axom::detail::FlatMapOffsetIterator< KeyType, ValueType >::difference_type = IndexType |
| using axom::detail::FlatMapOffsetIterator< KeyType, ValueType >::value_type = std::pair<const KeyType, ValueType> |
| using axom::detail::FlatMapOffsetIterator< KeyType, ValueType >::reference = value_type& |
| using axom::detail::FlatMapOffsetIterator< KeyType, ValueType >::pointer = value_type* |
| using axom::detail::FlatMapOffsetIterator< KeyType, ValueType >::iterator_category = std::random_access_iterator_tag |
|
inherited |
|
default |
|
inline |
|
inline |
|
inlineprotected |
Implementation of advance() as required by IteratorBase
References axom::IteratorBase< FlatMapOffsetIterator< 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 |