CatapultServer  v0.5.0.1 (Elephant)
catapult::deltaset::ConditionalContainer< TKeyTraits, TStorageSet, TMemorySet >::ConditionalIterator Class Reference

A const iterator. More...

Public Member Functions

 ConditionalIterator ()=default
 Creates an uninitialized iterator. More...
 
 ConditionalIterator (typename StorageSetType::const_iterator &&iter, StorageFlag)
 Creates a conditional iterator around iter for a storage container. More...
 
 ConditionalIterator (typename MemorySetType::const_iterator &&iter, MemoryFlag)
 Creates a conditional iterator around iter for a memory container. More...
 
bool operator== (const ConditionalIterator &rhs) const
 Returns true if this iterator is equal to rhs. More...
 
bool operator!= (const ConditionalIterator &rhs) const
 Returns true if this iterator is not equal to rhs. More...
 
const auto * operator-> () const
 Returns a const pointer to the current element. More...
 
const auto & operator* () const
 Returns a const reference to the current element. More...
 

Private Attributes

StorageSetType::const_iterator m_storageIter
 
MemorySetType::const_iterator m_memoryIter
 
ConditionalContainerMode m_mode
 

Detailed Description

template<typename TKeyTraits, typename TStorageSet, typename TMemorySet>
class catapult::deltaset::ConditionalContainer< TKeyTraits, TStorageSet, TMemorySet >::ConditionalIterator

A const iterator.

Constructor & Destructor Documentation

◆ ConditionalIterator() [1/3]

template<typename TKeyTraits, typename TStorageSet, typename TMemorySet>
catapult::deltaset::ConditionalContainer< TKeyTraits, TStorageSet, TMemorySet >::ConditionalIterator::ConditionalIterator ( )
default

Creates an uninitialized iterator.

◆ ConditionalIterator() [2/3]

template<typename TKeyTraits, typename TStorageSet, typename TMemorySet>
catapult::deltaset::ConditionalContainer< TKeyTraits, TStorageSet, TMemorySet >::ConditionalIterator::ConditionalIterator ( typename StorageSetType::const_iterator &&  iter,
StorageFlag   
)
inlineexplicit

Creates a conditional iterator around iter for a storage container.

◆ ConditionalIterator() [3/3]

template<typename TKeyTraits, typename TStorageSet, typename TMemorySet>
catapult::deltaset::ConditionalContainer< TKeyTraits, TStorageSet, TMemorySet >::ConditionalIterator::ConditionalIterator ( typename MemorySetType::const_iterator &&  iter,
MemoryFlag   
)
inlineexplicit

Creates a conditional iterator around iter for a memory container.

Member Function Documentation

◆ operator!=()

template<typename TKeyTraits, typename TStorageSet, typename TMemorySet>
bool catapult::deltaset::ConditionalContainer< TKeyTraits, TStorageSet, TMemorySet >::ConditionalIterator::operator!= ( const ConditionalIterator rhs) const
inline

Returns true if this iterator is not equal to rhs.

◆ operator*()

template<typename TKeyTraits, typename TStorageSet, typename TMemorySet>
const auto& catapult::deltaset::ConditionalContainer< TKeyTraits, TStorageSet, TMemorySet >::ConditionalIterator::operator* ( ) const
inline

Returns a const reference to the current element.

Here is the caller graph for this function:

◆ operator->()

template<typename TKeyTraits, typename TStorageSet, typename TMemorySet>
const auto* catapult::deltaset::ConditionalContainer< TKeyTraits, TStorageSet, TMemorySet >::ConditionalIterator::operator-> ( ) const
inline

Returns a const pointer to the current element.

Here is the call graph for this function:

◆ operator==()

template<typename TKeyTraits, typename TStorageSet, typename TMemorySet>
bool catapult::deltaset::ConditionalContainer< TKeyTraits, TStorageSet, TMemorySet >::ConditionalIterator::operator== ( const ConditionalIterator rhs) const
inline

Returns true if this iterator is equal to rhs.

Member Data Documentation

◆ m_memoryIter

template<typename TKeyTraits, typename TStorageSet, typename TMemorySet>
MemorySetType::const_iterator catapult::deltaset::ConditionalContainer< TKeyTraits, TStorageSet, TMemorySet >::ConditionalIterator::m_memoryIter
private

◆ m_mode

template<typename TKeyTraits, typename TStorageSet, typename TMemorySet>
ConditionalContainerMode catapult::deltaset::ConditionalContainer< TKeyTraits, TStorageSet, TMemorySet >::ConditionalIterator::m_mode
private

◆ m_storageIter

template<typename TKeyTraits, typename TStorageSet, typename TMemorySet>
StorageSetType::const_iterator catapult::deltaset::ConditionalContainer< TKeyTraits, TStorageSet, TMemorySet >::ConditionalIterator::m_storageIter
private

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