CatapultServer
v0.5.0.1 (Elephant)
|
Base of mosaic iterators. More...
Public Types | |
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 | |
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... | |
Protected Member Functions | |
Mosaic & | current () const |
Gets a reference to the current value. More... | |
Private Member Functions | |
void | advance () |
void | setValueMosaic () |
void | setArrayMosaic () |
void | setMapMosaic () |
void | setEnd () |
bool | isEnd () const |
Private Attributes | |
FirstLevelStorage & | m_storage |
Stage | m_stage |
Mosaic * | m_pCurrent |
size_t | m_arrayIndex |
MosaicMap::iterator | m_mapIterator |
Base of mosaic iterators.
using catapult::state::CompactMosaicMap::basic_iterator::difference_type = std::ptrdiff_t |
using catapult::state::CompactMosaicMap::basic_iterator::iterator_category = std::forward_iterator_tag |
|
explicit |
Creates an iterator around storage with initial stage.
|
explicit |
Creates an iterator around storage pointing to the mosaic at location.
|
private |
|
protected |
Gets a reference to the current value.
|
private |
bool catapult::state::CompactMosaicMap::basic_iterator::operator!= | ( | const basic_iterator & | rhs | ) | const |
Returns true
if this iterator and rhs are not equal.
CompactMosaicMap::basic_iterator & catapult::state::CompactMosaicMap::basic_iterator::operator++ | ( | ) |
Advances the iterator to the next position.
CompactMosaicMap::basic_iterator catapult::state::CompactMosaicMap::basic_iterator::operator++ | ( | int | ) |
Advances the iterator to the next position.
bool catapult::state::CompactMosaicMap::basic_iterator::operator== | ( | const basic_iterator & | rhs | ) | const |
Returns true
if this iterator and rhs are equal.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |