CatapultServer
v0.5.0.1 (Elephant)
|
Public Types | |
using | difference_type = std::ptrdiff_t |
using | value_type = const T |
using | pointer = const T * |
using | reference = const T & |
using | iterator_category = std::forward_iterator_tag |
Public Member Functions | |
const_iterator (const std::array< T, N > *pArray, size_t index) | |
Creates an iterator around pArray with index current position. More... | |
bool | operator== (const const_iterator &rhs) const |
Returns true if this iterator and rhs are equal. More... | |
bool | operator!= (const const_iterator &rhs) const |
Returns true if this iterator and rhs are not equal. More... | |
const_iterator & | operator++ () |
Advances the iterator to the next position. More... | |
const_iterator | operator++ (int) |
Advances the iterator to the next position. More... | |
reference | operator* () const |
Returns a reference to the current value. More... | |
pointer | operator-> () const |
Returns a pointer to the current value. More... | |
Private Member Functions | |
bool | isEnd () const |
Private Attributes | |
const std::array< T, N > * | m_pArray |
size_t | m_index |
T | m_defaultValue |
Compact array stack const iterator.
nullptr
(memory optimization). using catapult::state::CompactArrayStack< T, N >::const_iterator::difference_type = std::ptrdiff_t |
using catapult::state::CompactArrayStack< T, N >::const_iterator::iterator_category = std::forward_iterator_tag |
using catapult::state::CompactArrayStack< T, N >::const_iterator::pointer = const T* |
using catapult::state::CompactArrayStack< T, N >::const_iterator::reference = const T& |
using catapult::state::CompactArrayStack< T, N >::const_iterator::value_type = const T |
|
inlineexplicit |
Creates an iterator around pArray with index current position.
|
inlineprivate |
|
inline |
Returns true
if this iterator and rhs are not equal.
|
inline |
Returns a reference to the current value.
|
inline |
Advances the iterator to the next position.
|
inline |
Advances the iterator to the next position.
|
inline |
Returns a pointer to the current value.
|
inline |
Returns true
if this iterator and rhs are equal.
|
private |
|
private |
|
private |