CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
24 namespace catapult {
namespace deltaset {
27 template<
typename TSetTraits>
28 class BaseSetIterationView {
30 using SetType =
typename TSetTraits::MemorySetType;
31 using KeyType =
typename TSetTraits::KeyType;
41 return m_set.find(key);
47 return m_set.cbegin();
60 template<
typename TSet>
66 template<
typename TSet>
72 template<
typename TElementTraits,
typename TSetTraits,
typename TCommitPolicy>
79 template<
typename TElementTraits,
typename TSetTraits,
typename TCommitPolicy>
auto findIterator(const KeyType &key) const
Returns an iterator that points to the element with key if it is contained in this set,...
Definition: BaseSetIterationView.h:40
SetType m_elements
Definition: BaseSet.h:125
auto begin() const
Returns a const iterator to the first element of the underlying set.
Definition: BaseSetIterationView.h:46
bool IsSetIterable(const TSet &)
Returns true if set is iterable.
Definition: BaseSetIterationView.h:61
typename TSetTraits::MemorySetType SetType
Definition: BaseSetIterationView.h:30
bool IsBaseSetIterable(const BaseSet< TElementTraits, TSetTraits, TCommitPolicy > &set)
Returns true if set is iterable.
Definition: BaseSetIterationView.h:73
const TSet & SelectIterableSet(const TSet &set)
Selects the iterable set from set.
Definition: BaseSetIterationView.h:67
const SetType & m_set
Definition: BaseSetIterationView.h:56
BaseSetIterationView(const SetType &set)
Creates a view around set.
Definition: BaseSetIterationView.h:35
A view that provides iteration support to a base set.
Definition: BaseSet.h:33
Definition: AddressExtractionExtension.cpp:28
auto end() const
Returns a const iterator to the element following the last element of the underlying set.
Definition: BaseSetIterationView.h:51
typename TSetTraits::KeyType KeyType
Definition: BaseSetIterationView.h:31
BaseSetDeltaIterationView< TSetTraits > MakeIterableView(const BaseSetDelta< TElementTraits, TSetTraits > &delta)
Definition: BaseSetDeltaIterationView.h:200