CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::ReadOnlyArtifactCache< TCache, TCacheDelta, TKey, TValue >::ReadOnlyFindIterator< TCacheIterator, TCacheDeltaIterator > Class Template Reference

Find iterator returned by ReadOnlyArtifactCache::find. More...

Collaboration diagram for catapult::cache::ReadOnlyArtifactCache< TCache, TCacheDelta, TKey, TValue >::ReadOnlyFindIterator< TCacheIterator, TCacheDeltaIterator >:

Public Member Functions

 ReadOnlyFindIterator ()
 Creates an uninitialized iterator. More...
 
 ReadOnlyFindIterator (TCacheIterator &&cacheIter)
 Creates a find iterator around cacheIter. More...
 
 ReadOnlyFindIterator (TCacheDeltaIterator &&cacheDeltaIter)
 Creates a find iterator around cacheDeltaIter. More...
 
const TValue & get () const
 Gets a const value. More...
 
const TValue * tryGet () const
 Tries to get a const value. More...
 

Private Attributes

bool m_hasCacheIter
 
TCacheIterator m_cacheIter
 
TCacheDeltaIterator m_cacheDeltaIter
 

Detailed Description

template<typename TCache, typename TCacheDelta, typename TKey, typename TValue>
template<typename TCacheIterator, typename TCacheDeltaIterator>
class catapult::cache::ReadOnlyArtifactCache< TCache, TCacheDelta, TKey, TValue >::ReadOnlyFindIterator< TCacheIterator, TCacheDeltaIterator >

Find iterator returned by ReadOnlyArtifactCache::find.

Constructor & Destructor Documentation

◆ ReadOnlyFindIterator() [1/3]

template<typename TCache, typename TCacheDelta, typename TKey, typename TValue>
template<typename TCacheIterator, typename TCacheDeltaIterator>
catapult::cache::ReadOnlyArtifactCache< TCache, TCacheDelta, TKey, TValue >::ReadOnlyFindIterator< TCacheIterator, TCacheDeltaIterator >::ReadOnlyFindIterator ( )
inline

Creates an uninitialized iterator.

◆ ReadOnlyFindIterator() [2/3]

template<typename TCache, typename TCacheDelta, typename TKey, typename TValue>
template<typename TCacheIterator, typename TCacheDeltaIterator>
catapult::cache::ReadOnlyArtifactCache< TCache, TCacheDelta, TKey, TValue >::ReadOnlyFindIterator< TCacheIterator, TCacheDeltaIterator >::ReadOnlyFindIterator ( TCacheIterator &&  cacheIter)
inlineexplicit

Creates a find iterator around cacheIter.

◆ ReadOnlyFindIterator() [3/3]

template<typename TCache, typename TCacheDelta, typename TKey, typename TValue>
template<typename TCacheIterator, typename TCacheDeltaIterator>
catapult::cache::ReadOnlyArtifactCache< TCache, TCacheDelta, TKey, TValue >::ReadOnlyFindIterator< TCacheIterator, TCacheDeltaIterator >::ReadOnlyFindIterator ( TCacheDeltaIterator &&  cacheDeltaIter)
inlineexplicit

Creates a find iterator around cacheDeltaIter.

Member Function Documentation

◆ get()

template<typename TCache, typename TCacheDelta, typename TKey, typename TValue>
template<typename TCacheIterator, typename TCacheDeltaIterator>
const TValue& catapult::cache::ReadOnlyArtifactCache< TCache, TCacheDelta, TKey, TValue >::ReadOnlyFindIterator< TCacheIterator, TCacheDeltaIterator >::get ( ) const
inline

Gets a const value.

Here is the caller graph for this function:

◆ tryGet()

template<typename TCache, typename TCacheDelta, typename TKey, typename TValue>
template<typename TCacheIterator, typename TCacheDeltaIterator>
const TValue* catapult::cache::ReadOnlyArtifactCache< TCache, TCacheDelta, TKey, TValue >::ReadOnlyFindIterator< TCacheIterator, TCacheDeltaIterator >::tryGet ( ) const
inline

Tries to get a const value.

Here is the caller graph for this function:

Member Data Documentation

◆ m_cacheDeltaIter

template<typename TCache, typename TCacheDelta, typename TKey, typename TValue>
template<typename TCacheIterator, typename TCacheDeltaIterator>
TCacheDeltaIterator catapult::cache::ReadOnlyArtifactCache< TCache, TCacheDelta, TKey, TValue >::ReadOnlyFindIterator< TCacheIterator, TCacheDeltaIterator >::m_cacheDeltaIter
private

◆ m_cacheIter

template<typename TCache, typename TCacheDelta, typename TKey, typename TValue>
template<typename TCacheIterator, typename TCacheDeltaIterator>
TCacheIterator catapult::cache::ReadOnlyArtifactCache< TCache, TCacheDelta, TKey, TValue >::ReadOnlyFindIterator< TCacheIterator, TCacheDeltaIterator >::m_cacheIter
private

◆ m_hasCacheIter

template<typename TCache, typename TCacheDelta, typename TKey, typename TValue>
template<typename TCacheIterator, typename TCacheDeltaIterator>
bool catapult::cache::ReadOnlyArtifactCache< TCache, TCacheDelta, TKey, TValue >::ReadOnlyFindIterator< TCacheIterator, TCacheDeltaIterator >::m_hasCacheIter
private

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