CatapultServer  v0.5.0.1 (Elephant)
catapult::deltaset::BaseSetIterationView< TSetTraits > Class Template Reference

A view that provides iteration support to a base set. More...

Public Member Functions

 BaseSetIterationView (const SetType &set)
 Creates a view around set. More...
 
auto findIterator (const KeyType &key) const
 Returns an iterator that points to the element with key if it is contained in this set, or end() otherwise. More...
 
auto begin () const
 Returns a const iterator to the first element of the underlying set. More...
 
auto end () const
 Returns a const iterator to the element following the last element of the underlying set. More...
 

Private Types

using SetType = typename TSetTraits::MemorySetType
 
using KeyType = typename TSetTraits::KeyType
 

Private Attributes

const SetTypem_set
 

Detailed Description

template<typename TSetTraits>
class catapult::deltaset::BaseSetIterationView< TSetTraits >

A view that provides iteration support to a base set.

Member Typedef Documentation

◆ KeyType

template<typename TSetTraits>
using catapult::deltaset::BaseSetIterationView< TSetTraits >::KeyType = typename TSetTraits::KeyType
private

◆ SetType

template<typename TSetTraits>
using catapult::deltaset::BaseSetIterationView< TSetTraits >::SetType = typename TSetTraits::MemorySetType
private

Constructor & Destructor Documentation

◆ BaseSetIterationView()

template<typename TSetTraits>
catapult::deltaset::BaseSetIterationView< TSetTraits >::BaseSetIterationView ( const SetType set)
inlineexplicit

Creates a view around set.

Member Function Documentation

◆ begin()

template<typename TSetTraits>
auto catapult::deltaset::BaseSetIterationView< TSetTraits >::begin ( ) const
inline

Returns a const iterator to the first element of the underlying set.

◆ end()

template<typename TSetTraits>
auto catapult::deltaset::BaseSetIterationView< TSetTraits >::end ( ) const
inline

Returns a const iterator to the element following the last element of the underlying set.

◆ findIterator()

template<typename TSetTraits>
auto catapult::deltaset::BaseSetIterationView< TSetTraits >::findIterator ( const KeyType key) const
inline

Returns an iterator that points to the element with key if it is contained in this set, or end() otherwise.

Member Data Documentation

◆ m_set

template<typename TSetTraits>
const SetType& catapult::deltaset::BaseSetIterationView< TSetTraits >::m_set
private

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