CatapultServer  v0.5.0.1 (Elephant)
catapult::deltaset::BaseSetDeltaIterationView< TSetTraits > Class Template Reference
Collaboration diagram for catapult::deltaset::BaseSetDeltaIterationView< TSetTraits >:

Classes

class  iterator
 Iterator used for iterating over the view. More...
 

Public Member Functions

 BaseSetDeltaIterationView (const SetType &originalElements, const DeltaElements< SetType > &deltas, size_t size)
 Creates a view around originalElements, deltas and size. 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_originalElements
 
DeltaElements< SetTypem_deltas
 
size_t m_size
 

Detailed Description

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

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

Note
This is only supported for set types where SetType and MemorySetType are the same.

Member Typedef Documentation

◆ KeyType

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

◆ SetType

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

Constructor & Destructor Documentation

◆ BaseSetDeltaIterationView()

template<typename TSetTraits>
catapult::deltaset::BaseSetDeltaIterationView< TSetTraits >::BaseSetDeltaIterationView ( const SetType originalElements,
const DeltaElements< SetType > &  deltas,
size_t  size 
)
inline

Creates a view around originalElements, deltas and size.

Member Function Documentation

◆ begin()

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

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

◆ end()

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

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

Member Data Documentation

◆ m_deltas

template<typename TSetTraits>
DeltaElements<SetType> catapult::deltaset::BaseSetDeltaIterationView< TSetTraits >::m_deltas
private

◆ m_originalElements

template<typename TSetTraits>
const SetType& catapult::deltaset::BaseSetDeltaIterationView< TSetTraits >::m_originalElements
private

◆ m_size

template<typename TSetTraits>
size_t catapult::deltaset::BaseSetDeltaIterationView< TSetTraits >::m_size
private

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