CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
24 #include <unordered_set>
26 namespace catapult {
namespace deltaset {
29 template<
typename TSetDelta>
34 template<
typename TSet,
bool IsMap = utils::traits::is_map_v<TSet>>
43 template<
typename TSet>
45 using ValueType =
typename TSet::value_type::second_type;
82 template<
typename TSource>
85 for (
const auto& value : source)
PointerContainer modifiedElements() const
Gets pointers to all modified elements.
Definition: DeltaElementsMixin.h:72
Mixin that wraps BaseSetDelta and provides a facade on top of BaseSetDelta::deltas().
Definition: DeltaElementsMixin.h:30
PointerContainer removedElements() const
Gets pointers to all removed elements.
Definition: DeltaElementsMixin.h:77
typename TSet::value_type::second_type ValueType
Definition: DeltaElementsMixin.h:45
static const ValueType * GetPointer(const typename TSet::value_type &value)
Definition: DeltaElementsMixin.h:38
Definition: DeltaElementsMixin.h:35
const TSetDelta & m_setDelta
Definition: DeltaElementsMixin.h:92
DeltaElementsMixin(const TSetDelta &setDelta)
Creates a mixin around setDelta.
Definition: DeltaElementsMixin.h:62
typename ValueAccessor::ValueType ValueType
Definition: DeltaElementsMixin.h:57
std::unordered_set< const ValueType * > PointerContainer
Definition: DeltaElementsMixin.h:58
typename TSet::value_type ValueType
Definition: DeltaElementsMixin.h:36
PointerContainer addedElements() const
Gets pointers to all added elements.
Definition: DeltaElementsMixin.h:67
Definition: AddressExtractionExtension.cpp:28
static const ValueType * GetPointer(const typename TSet::value_type &pair)
Definition: DeltaElementsMixin.h:47
static PointerContainer CollectAllPointers(const TSource &source)
Definition: DeltaElementsMixin.h:83