CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::NamespaceLookupMixin< TPrimarySet, TFlatMap >::const_iterator Class Reference

An iterator that is returned by namespace cache find functions. More...

Collaboration diagram for catapult::cache::NamespaceLookupMixin< TPrimarySet, TFlatMap >::const_iterator:

Public Member Functions

 const_iterator ()
 Creates an uninitialized iterator. More...
 
 const_iterator (NamespaceId id)
 Creates an uninitialized iterator around id. More...
 
 const_iterator (typename TFlatMap::FindConstIterator &&namespaceIter, typename TPrimarySet::FindConstIterator &&rootIter)
 Creates an iterator around a namespace iterator (namespaceIter) and a root iterator (rootIter). More...
 
const state::NamespaceEntryget () const
 
const state::NamespaceEntrytryGet () const
 Tries to get a const value. More...
 
const state::RootNamespaceHistorytryGetUnadapted () const
 Tries to get a const (unadapted) value. More...
 

Private Attributes

bool m_isValid
 
NamespaceId m_id
 
TFlatMap::FindConstIterator m_namespaceIter
 
TPrimarySet::FindConstIterator m_rootIter
 
state::NamespaceEntry m_entry
 

Detailed Description

template<typename TPrimarySet, typename TFlatMap>
class catapult::cache::NamespaceLookupMixin< TPrimarySet, TFlatMap >::const_iterator

An iterator that is returned by namespace cache find functions.

Constructor & Destructor Documentation

◆ const_iterator() [1/3]

template<typename TPrimarySet , typename TFlatMap >
catapult::cache::NamespaceLookupMixin< TPrimarySet, TFlatMap >::const_iterator::const_iterator ( )
inline

Creates an uninitialized iterator.

◆ const_iterator() [2/3]

template<typename TPrimarySet , typename TFlatMap >
catapult::cache::NamespaceLookupMixin< TPrimarySet, TFlatMap >::const_iterator::const_iterator ( NamespaceId  id)
inlineexplicit

Creates an uninitialized iterator around id.

◆ const_iterator() [3/3]

template<typename TPrimarySet , typename TFlatMap >
catapult::cache::NamespaceLookupMixin< TPrimarySet, TFlatMap >::const_iterator::const_iterator ( typename TFlatMap::FindConstIterator &&  namespaceIter,
typename TPrimarySet::FindConstIterator &&  rootIter 
)
inline

Creates an iterator around a namespace iterator (namespaceIter) and a root iterator (rootIter).

Member Function Documentation

◆ get()

template<typename TPrimarySet , typename TFlatMap >
const state::NamespaceEntry& catapult::cache::NamespaceLookupMixin< TPrimarySet, TFlatMap >::const_iterator::get ( ) const
inline

Gets a const value.

Exceptions
catapult_invalid_argumentif this iterator does not point to a value.
Here is the call graph for this function:

◆ tryGet()

template<typename TPrimarySet , typename TFlatMap >
const state::NamespaceEntry* catapult::cache::NamespaceLookupMixin< TPrimarySet, TFlatMap >::const_iterator::tryGet ( ) const
inline

Tries to get a const value.

Here is the caller graph for this function:

◆ tryGetUnadapted()

template<typename TPrimarySet , typename TFlatMap >
const state::RootNamespaceHistory* catapult::cache::NamespaceLookupMixin< TPrimarySet, TFlatMap >::const_iterator::tryGetUnadapted ( ) const
inline

Tries to get a const (unadapted) value.

Member Data Documentation

◆ m_entry

template<typename TPrimarySet , typename TFlatMap >
state::NamespaceEntry catapult::cache::NamespaceLookupMixin< TPrimarySet, TFlatMap >::const_iterator::m_entry
private

◆ m_id

template<typename TPrimarySet , typename TFlatMap >
NamespaceId catapult::cache::NamespaceLookupMixin< TPrimarySet, TFlatMap >::const_iterator::m_id
private

◆ m_isValid

template<typename TPrimarySet , typename TFlatMap >
bool catapult::cache::NamespaceLookupMixin< TPrimarySet, TFlatMap >::const_iterator::m_isValid
private

◆ m_namespaceIter

template<typename TPrimarySet , typename TFlatMap >
TFlatMap::FindConstIterator catapult::cache::NamespaceLookupMixin< TPrimarySet, TFlatMap >::const_iterator::m_namespaceIter
private

◆ m_rootIter

template<typename TPrimarySet , typename TFlatMap >
TPrimarySet::FindConstIterator catapult::cache::NamespaceLookupMixin< TPrimarySet, TFlatMap >::const_iterator::m_rootIter
private

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