CatapultServer  v0.5.0.1 (Elephant)
catapult::state::CompactMosaicMap::basic_iterator_t< T > Class Template Reference

A basic typed iterator that adds support for dereferencing. More...

Inheritance diagram for catapult::state::CompactMosaicMap::basic_iterator_t< T >:
Collaboration diagram for catapult::state::CompactMosaicMap::basic_iterator_t< T >:

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_iteratoroperator++ ()
 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
Mosaiccurrent () const
 Gets a reference to the current value. More...
 

Detailed Description

template<typename T>
class catapult::state::CompactMosaicMap::basic_iterator_t< T >

A basic typed iterator that adds support for dereferencing.

Member Typedef Documentation

◆ pointer

◆ reference

◆ value_type

template<typename T >
using catapult::state::CompactMosaicMap::basic_iterator_t< T >::value_type = T

Member Function Documentation

◆ basic_iterator() [1/2]

template<typename T >
catapult::state::CompactMosaicMap::basic_iterator::basic_iterator
explicit

Creates an iterator around storage pointing to the mosaic at location.

◆ basic_iterator() [2/2]

template<typename T >
catapult::state::CompactMosaicMap::basic_iterator::basic_iterator
explicit

Creates an iterator around storage with initial stage.

◆ operator*()

template<typename T >
reference catapult::state::CompactMosaicMap::basic_iterator_t< T >::operator* ( ) const
inline

Returns a reference to the current value.

Here is the call graph for this function:

◆ operator->()

template<typename T >
pointer catapult::state::CompactMosaicMap::basic_iterator_t< T >::operator-> ( ) const
inline

Returns a pointer to the current value.

Here is the call graph for this function:

The documentation for this class was generated from the following file: