CatapultServer
v0.5.0.1 (Elephant)
|
A basic typed iterator that adds support for dereferencing. More...
Public Types | |
using | value_type = T |
using | pointer = value_type * |
using | reference = value_type & |
Public Types inherited from catapult::state::CompactMosaicMap::basic_iterator | |
enum | Stage { Stage::Start, Stage::Value, Stage::Array, Stage::Map, Stage::End } |
Iterator stage. More... | |
using | difference_type = std::ptrdiff_t |
using | iterator_category = std::forward_iterator_tag |
Public Member Functions | |
reference | operator* () const |
Returns a reference to the current value. More... | |
pointer | operator-> () const |
Returns a pointer to the current value. More... | |
basic_iterator (FirstLevelStorage &storage, Stage stage) | |
Creates an iterator around storage with initial stage. More... | |
basic_iterator (FirstLevelStorage &storage, const MosaicLocation &location) | |
Creates an iterator around storage pointing to the mosaic at location. More... | |
Public Member Functions inherited from catapult::state::CompactMosaicMap::basic_iterator | |
basic_iterator (FirstLevelStorage &storage, Stage stage) | |
Creates an iterator around storage with initial stage. More... | |
basic_iterator (FirstLevelStorage &storage, const MosaicLocation &location) | |
Creates an iterator around storage pointing to the mosaic at location. More... | |
bool | operator== (const basic_iterator &rhs) const |
Returns true if this iterator and rhs are equal. More... | |
bool | operator!= (const basic_iterator &rhs) const |
Returns true if this iterator and rhs are not equal. More... | |
basic_iterator & | operator++ () |
Advances the iterator to the next position. More... | |
basic_iterator | operator++ (int) |
Advances the iterator to the next position. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from catapult::state::CompactMosaicMap::basic_iterator | |
Mosaic & | current () const |
Gets a reference to the current value. More... | |
A basic typed iterator that adds support for dereferencing.
using catapult::state::CompactMosaicMap::basic_iterator_t< T >::pointer = value_type* |
using catapult::state::CompactMosaicMap::basic_iterator_t< T >::reference = value_type& |
using catapult::state::CompactMosaicMap::basic_iterator_t< T >::value_type = T |
|
explicit |
Creates an iterator around storage pointing to the mosaic at location.
|
explicit |
Creates an iterator around storage with initial stage.
|
inline |
Returns a reference to the current value.
|
inline |
Returns a pointer to the current value.