CatapultServer  v0.5.0.1 (Elephant)
catapult::deltaset::DeltaElementsMixin< TSetDelta > Class Template Reference

Mixin that wraps BaseSetDelta and provides a facade on top of BaseSetDelta::deltas(). More...

Inheritance diagram for catapult::deltaset::DeltaElementsMixin< TSetDelta >:

Classes

struct  ValueAccessorT
 
struct  ValueAccessorT< TSet, true >
 

Public Member Functions

 DeltaElementsMixin (const TSetDelta &setDelta)
 Creates a mixin around setDelta. More...
 
PointerContainer addedElements () const
 Gets pointers to all added elements. More...
 
PointerContainer modifiedElements () const
 Gets pointers to all modified elements. More...
 
PointerContainer removedElements () const
 Gets pointers to all removed elements. More...
 

Private Types

using ValueAccessor = ValueAccessorT< typename TSetDelta::MemorySetType >
 
using ValueType = typename ValueAccessor::ValueType
 
using PointerContainer = std::unordered_set< const ValueType * >
 

Static Private Member Functions

template<typename TSource >
static PointerContainer CollectAllPointers (const TSource &source)
 

Private Attributes

const TSetDelta & m_setDelta
 

Detailed Description

template<typename TSetDelta>
class catapult::deltaset::DeltaElementsMixin< TSetDelta >

Mixin that wraps BaseSetDelta and provides a facade on top of BaseSetDelta::deltas().

Member Typedef Documentation

◆ PointerContainer

template<typename TSetDelta >
using catapult::deltaset::DeltaElementsMixin< TSetDelta >::PointerContainer = std::unordered_set<const ValueType*>
private

◆ ValueAccessor

template<typename TSetDelta >
using catapult::deltaset::DeltaElementsMixin< TSetDelta >::ValueAccessor = ValueAccessorT<typename TSetDelta::MemorySetType>
private

◆ ValueType

template<typename TSetDelta >
using catapult::deltaset::DeltaElementsMixin< TSetDelta >::ValueType = typename ValueAccessor::ValueType
private

Constructor & Destructor Documentation

◆ DeltaElementsMixin()

template<typename TSetDelta >
catapult::deltaset::DeltaElementsMixin< TSetDelta >::DeltaElementsMixin ( const TSetDelta &  setDelta)
inlineexplicit

Creates a mixin around setDelta.

Member Function Documentation

◆ addedElements()

template<typename TSetDelta >
PointerContainer catapult::deltaset::DeltaElementsMixin< TSetDelta >::addedElements ( ) const
inline

Gets pointers to all added elements.

Here is the call graph for this function:

◆ CollectAllPointers()

template<typename TSetDelta >
template<typename TSource >
static PointerContainer catapult::deltaset::DeltaElementsMixin< TSetDelta >::CollectAllPointers ( const TSource &  source)
inlinestaticprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ modifiedElements()

template<typename TSetDelta >
PointerContainer catapult::deltaset::DeltaElementsMixin< TSetDelta >::modifiedElements ( ) const
inline

Gets pointers to all modified elements.

Here is the call graph for this function:

◆ removedElements()

template<typename TSetDelta >
PointerContainer catapult::deltaset::DeltaElementsMixin< TSetDelta >::removedElements ( ) const
inline

Gets pointers to all removed elements.

Here is the call graph for this function:

Member Data Documentation

◆ m_setDelta

template<typename TSetDelta >
const TSetDelta& catapult::deltaset::DeltaElementsMixin< TSetDelta >::m_setDelta
private

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