|
| ArrayIterator ()=default |
| Default constructor.
|
|
| ArrayIterator (const ArrayIterator< false > &other) |
| a copy constructor that allows for implicit conversion from a regular iterator to a const_iterator.
|
|
| ArrayIterator (const ArrayIterator< true > &other) |
| a copy constructor that allows for implicit conversion from a const_iterator to a regular iterator.
|
|
ArrayIterator & | operator= (const ArrayIterator &other)=default |
| Assignment operator.
|
|
void | reset () |
| Reset the iterator to an invalid value.
|
|
bool | isIndexValid () const |
| Determine whether this iterator has been initialized with a valid index.
|
|
uint32_t | getIndex () const |
| What index does our iterator currently represent.
|
|
bool | isValid () const |
| Determine whether this array entry pointed to by this iterator is valid.
|
|
bool | isOlder (const uint32_t idx) const |
| determine if the data at this iterator was written before the data at another index.
|
|
bool | isOlder (const ArrayIterator &other) const |
| Overload isOlder to accept another iterator instead of an index.
|
|
bool | isYounger (const uint32_t idx) const |
| determine if the data at this iterator was written to more recently than another index.
|
|
bool | isYounger (const ArrayIterator &other) const |
| Overload isYounger to accept another iterator instead of index.
|
|
bool | operator< (const ArrayIterator &rhs) const |
|
bool | operator== (const ArrayIterator &rhs) const |
|
bool | operator== (const uint32_t &rhs) const |
|
bool | operator!= (const ArrayIterator &rhs) const |
|
DataReferenceType | operator* () |
| support the dereference operator, non-const
|
|
DataReferenceType | operator* () const |
| support the dereference operator, const
|
|
value_type * | operator-> () |
| support -> operator.
|
|
const value_type * | operator-> () const |
|
ArrayIterator & | operator++ () |
| pre-increment operator.
|
|
ArrayIterator | operator++ (int) |
| post-increment operator.
|
|
template<class DataT,
ArrayType ArrayT = ArrayType::AGED>
template<bool is_const_iterator = true>
struct sparta::Array< DataT, ArrayT >::ArrayIterator< is_const_iterator >
An iterator struct for this array.
The iterator is a forward iterator and responds to post increment operators. The iterator will also wrap over the array when it reaches the end. The iterator can be queried for the validity of the position. The iterator provides public access to resetting the index it points to. Iterators can be dereferenced to provide the data at the index for which they point.
Definition at line 110 of file Array.hpp.