CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
25 #include <type_traits>
27 namespace catapult {
namespace cache {
30 template<
typename TPrimaryTypes,
typename IsOrderedFlag = std::false_type>
38 typename TPrimaryTypes::BaseSetDeltaPointerType
pPrimary;
58 typename TPrimaryTypes::BaseSetType
Primary;
69 return {
Primary.rebaseDetached() };
74 template<
typename... TArgs>
76 Primary.commit(std::forward<TArgs>(args)...);
83 template<
typename TPrimaryTypes,
typename TPatriciaTree>
88 typename TPrimaryTypes::BaseSetDeltaPointerType
pPrimary;
93 template<
typename TBaseSetDeltaPo
inters>
114 TBaseSetDeltaPointers deltaPointers;
117 return deltaPointers;
123 TBaseSetDeltaPointers deltaPointers;
126 return deltaPointers;
Defines cache types for an ordered, memory backed set based cache.
Definition: CacheDescriptorAdapters.h:108
void commit(TArgs &&... args)
Definition: SingleSetCacheTypesAdapter.h:75
Definition: SimpleValidator.py:1
BaseSets(const CacheConfiguration &config)
Creates base sets around config.
Definition: SingleSetCacheTypesAdapter.h:52
bool hasPatriciaTreeSupport() const
Returns true if patricia tree support is enabled.
Definition: CacheDatabaseMixin.h:50
def finalize(self)
Definition: SimpleValidator.py:24
IsOrderedFlag IsOrderedSet
Indicates the set is ordered (used for capability detection in templates).
Definition: SingleSetCacheTypesAdapter.h:45
line
Definition: SimpleValidator.py:4
std::false_type IsOrderedSet
Indicates the set is not ordered.
Definition: SingleSetCacheTypesAdapter.h:97
Definition: SimpleValidator.py:9
static deltaset::ConditionalContainerMode GetContainerMode(const CacheConfiguration &config)
Gets the container mode specified by config.
Definition: CacheDatabaseMixin.h:61
std::shared_ptr< typename TPatriciaTree::DeltaType > pPatriciaTree
Definition: SingleSetCacheTypesAdapter.h:89
def __init__(self, errorReporter)
Definition: SimpleValidator.py:10
BaseSetDeltaPointers rebase()
Returns a delta based on the same original elements as this set.
Definition: SingleSetCacheTypesAdapter.h:62
lineno
Definition: SimpleValidator.py:5
Mixin that owns a cache database.
Definition: CacheDatabaseMixin.h:30
CachePatriciaTree< TPatriciaTree > PatriciaTree
Definition: SingleSetCacheTypesAdapter.h:109
A cache types adapter for a cache composed of a single set and a patricia tree.
Definition: SingleSetCacheTypesAdapter.h:84
Enabled, allocate underlying filter implementation.
errorReporter
Definition: SimpleValidator.py:11
BaseSets(const CacheConfiguration &config)
Creates base sets around config.
Definition: SingleSetCacheTypesAdapter.h:101
void commit()
Commits all changes in the rebased tree.
Definition: CachePatriciaTree.h:56
Wrapper around single set.
Definition: SingleSetCacheTypesAdapter.h:42
void commit()
Commits all changes in the rebased cache.
Definition: SingleSetCacheTypesAdapter.h:130
auto rebaseDetached() const
Definition: CachePatriciaTree.h:51
kind
Definition: SimpleValidator.py:6
Disabled, skip allocation of underlying filter implementation.
Wrapper around single delta set and patricia tree.
Definition: SingleSetCacheTypesAdapter.h:87
auto rebase()
Returns a delta based on the same data source as this tree.
Definition: CachePatriciaTree.h:45
TPrimaryTypes::BaseSetType Primary
Definition: SingleSetCacheTypesAdapter.h:58
static constexpr auto PruningMode
Definition: SingleSetCacheTypesAdapter.h:48
path
Definition: SimpleValidator.py:22
TPrimaryTypes::BaseSetDeltaPointerType pPrimary
Definition: SingleSetCacheTypesAdapter.h:38
TBaseSetDeltaPointers rebase()
Returns a delta based on the same original elements as this set.
Definition: SingleSetCacheTypesAdapter.h:113
def __init__(self, path, line, lineno, kind='')
Definition: SimpleValidator.py:2
CacheDatabase & database()
Gets the database.
Definition: CacheDatabaseMixin.h:55
Wrapper around single delta set.
Definition: SingleSetCacheTypesAdapter.h:37
Wrapper around single set and patricia tree.
Definition: SingleSetCacheTypesAdapter.h:94
path
Definition: SimpleValidator.py:3
Cache configuration.
Definition: CacheConfiguration.h:37
TPrimaryTypes::BaseSetType Primary
Definition: SingleSetCacheTypesAdapter.h:108
Definition: AddressExtractionExtension.cpp:28
BaseSetDeltaPointers rebaseDetached() const
Definition: SingleSetCacheTypesAdapter.h:68
void flush()
Flushes the database.
Definition: CacheDatabaseMixin.h:68
TBaseSetDeltaPointers rebaseDetached() const
Definition: SingleSetCacheTypesAdapter.h:122
def reset(self, path)
Definition: SimpleValidator.py:21
A cache types adapter for a cache composed of a single set.
Definition: SingleSetCacheTypesAdapter.h:31
TPrimaryTypes::BaseSetDeltaPointerType pPrimary
Definition: SingleSetCacheTypesAdapter.h:88