AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
An iterator type for Array-like types. Each increment operation advances the iterator to the next element in the Array-like. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/v0.6.1/src/axom/core/ArrayIteratorBase.hpp>
Public Member Functions | |
ArrayIteratorBase (IndexType pos, ArrayType *arr) | |
ArrayType::value_type & | operator* () |
Returns the current iterator value. More... | |
Iterator advance and distance operators | |
ArrayIteratorBase< ArrayType > & | operator++ () |
Pre-increment operator. More... | |
ArrayIteratorBase< ArrayType > | operator++ (int) |
Post-increment operator. More... | |
ArrayIteratorBase< ArrayType > & | operator-- () |
Pre-decrement operator. More... | |
ArrayIteratorBase< ArrayType > | operator-- (int) |
Post-decrement operator. More... | |
ArrayIteratorBase< ArrayType > & | operator+= (IndexType n) |
Addition-assignment operator. More... | |
ArrayIteratorBase< ArrayType > & | operator-= (IndexType n) |
Subtraction-assignment operator. More... | |
Protected Member Functions | |
void | advance (IndexType n) |
Protected Attributes | |
ArrayType *const | m_arrayPtr |
IndexType | m_pos |
An iterator type for Array-like types. Each increment operation advances the iterator to the next element in the Array-like.
ArrayType | The type of the array to iterate over |
|
inline |
|
inline |
Returns the current iterator value.
References axom::ArrayIteratorBase< ArrayType >::m_arrayPtr, and axom::IteratorBase< ArrayIteratorBase< ArrayType >, IndexType >::m_pos.
|
inlineprotected |
Implementation of advance() as required by IteratorBase
References axom::IteratorBase< ArrayIteratorBase< ArrayType >, 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.
|
protected |
Referenced by axom::ArrayIteratorBase< ArrayType >::operator*().
|
protectedinherited |