CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
27 namespace catapult {
namespace cache {
31 template<
typename TCacheDescriptor,
typename TBaseSet,
typename... TSubViewArgs>
49 return createSubView<CacheViewType>(
m_set);
54 return createSubView<CacheDeltaType>(
m_set.rebase());
60 return createSubView<CacheDeltaType>(
m_set.rebaseDetached());
65 Commit(
m_set, delta,
typename TBaseSet::IsOrderedSet());
69 template<
typename TView,
typename TSetView>
71 return TView(setView, std::get<TSubViewArgs>(
m_subViewArgs)...);
80 m_set.commit(delta.pruningBoundary());
CacheDeltaType createDetachedDelta() const
Definition: BasicCache.h:59
typename CacheViewType::ReadOnlyView CacheReadOnlyType
Definition: BasicCache.h:37
static void Commit(TBaseSet &m_set, const CacheDeltaType &delta, std::true_type)
Definition: BasicCache.h:79
void commit(const CacheDeltaType &delta)
Commits all pending changes from delta to the underlying storage.
Definition: BasicCache.h:64
TView createSubView(const TSetView &setView) const
Definition: BasicCache.h:70
typename TCacheDescriptor::CacheViewType CacheViewType
Definition: BasicCache.h:35
CacheViewType createView() const
Returns a locked view based on this cache.
Definition: BasicCache.h:48
static void Commit(TBaseSet &m_set, const CacheDeltaType &, std::false_type)
Definition: BasicCache.h:75
typename TCacheDescriptor::ValueType CacheValueType
Definition: BasicCache.h:34
std::tuple< TSubViewArgs... > m_subViewArgs
Definition: BasicCache.h:85
A class that can be moved but not copied.
Definition: NonCopyable.h:43
CacheDeltaType createDelta()
Returns a locked cache delta based on this cache.
Definition: BasicCache.h:53
Definition: BasicCache.h:32
typename TCacheDescriptor::CacheDeltaType CacheDeltaType
Definition: BasicCache.h:36
Cache configuration.
Definition: CacheConfiguration.h:37
TBaseSet m_set
Definition: BasicCache.h:84
BasicCache(const CacheConfiguration &config, TSubViewArgs &&... subViewArgs)
Creates an empty cache with config and arguments (subViewArgs).
Definition: BasicCache.h:41
Definition: AddressExtractionExtension.cpp:28