CatapultServer  v0.5.0.1 (Elephant)
catapult::deltaset::detail::BaseSetSingleIteratorWrapper< TFindTraits, TSetTraits, TStorageIterator, TFindResult > Class Template Reference

Public Member Functions

 BaseSetSingleIteratorWrapper ()
 Creates an unset iterator. More...
 
 BaseSetSingleIteratorWrapper (TStorageIterator &&storageIter)
 Creates an iterator around a storage iterator (storageIter). More...
 
TFindResult get () const
 Gets the underlying value. More...
 

Private Attributes

bool m_isSet
 
TStorageIterator m_storageIter
 

Detailed Description

template<typename TFindTraits, typename TSetTraits, typename TStorageIterator, typename TFindResult>
class catapult::deltaset::detail::BaseSetSingleIteratorWrapper< TFindTraits, TSetTraits, TStorageIterator, TFindResult >

Iterator that represents a find result from a base set that supports one type of container iterator.

Note
This is always used for BaseSet and is used for BaseSetDelta when storage and memory sets have identical iterators.

Constructor & Destructor Documentation

◆ BaseSetSingleIteratorWrapper() [1/2]

template<typename TFindTraits , typename TSetTraits , typename TStorageIterator , typename TFindResult >
catapult::deltaset::detail::BaseSetSingleIteratorWrapper< TFindTraits, TSetTraits, TStorageIterator, TFindResult >::BaseSetSingleIteratorWrapper ( )
inline

Creates an unset iterator.

◆ BaseSetSingleIteratorWrapper() [2/2]

template<typename TFindTraits , typename TSetTraits , typename TStorageIterator , typename TFindResult >
catapult::deltaset::detail::BaseSetSingleIteratorWrapper< TFindTraits, TSetTraits, TStorageIterator, TFindResult >::BaseSetSingleIteratorWrapper ( TStorageIterator &&  storageIter)
inlineexplicit

Creates an iterator around a storage iterator (storageIter).

Member Function Documentation

◆ get()

template<typename TFindTraits , typename TSetTraits , typename TStorageIterator , typename TFindResult >
TFindResult catapult::deltaset::detail::BaseSetSingleIteratorWrapper< TFindTraits, TSetTraits, TStorageIterator, TFindResult >::get ( ) const
inline

Gets the underlying value.

Member Data Documentation

◆ m_isSet

template<typename TFindTraits , typename TSetTraits , typename TStorageIterator , typename TFindResult >
bool catapult::deltaset::detail::BaseSetSingleIteratorWrapper< TFindTraits, TSetTraits, TStorageIterator, TFindResult >::m_isSet
private

◆ m_storageIter

template<typename TFindTraits , typename TSetTraits , typename TStorageIterator , typename TFindResult >
TStorageIterator catapult::deltaset::detail::BaseSetSingleIteratorWrapper< TFindTraits, TSetTraits, TStorageIterator, TFindResult >::m_storageIter
private

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