CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
27 namespace catapult {
namespace cache {
29 template<
typename TDescriptor>
31 SerializerHashedKeyEncoder<typename TDescriptor::Serializer>,
32 PatriciaTreeRdbDataSource,
35 template<
typename TCacheTypes,
typename TDescriptor>
37 typename TCacheTypes::PrimaryTypes::BaseSetDeltaPointerType
pPrimary;
38 typename TCacheTypes::HeightGroupingTypes::BaseSetDeltaPointerType
pHeightGrouping;
39 std::shared_ptr<typename TDescriptor::PatriciaTree::DeltaType>
pPatriciaTree;
42 template<
typename TCacheTypes,
typename TDescriptor,
typename TBaseSetDeltaPo
inters>
57 typename TCacheTypes::PrimaryTypes::BaseSetType
Primary;
63 TBaseSetDeltaPointers deltaPointers;
71 TBaseSetDeltaPointers deltaPointers;
TCacheTypes::HeightGroupingTypes::BaseSetType HeightGrouping
Definition: LockInfoBaseSets.h:58
bool hasPatriciaTreeSupport() const
Returns true if patricia tree support is enabled.
Definition: CacheDatabaseMixin.h:50
TCacheTypes::HeightGroupingTypes::BaseSetDeltaPointerType pHeightGrouping
Definition: LockInfoBaseSets.h:38
Definition: LockInfoBaseSets.h:43
Definition: LockInfoBaseSets.h:36
TCacheTypes::PrimaryTypes::BaseSetType Primary
Definition: LockInfoBaseSets.h:57
static deltaset::ConditionalContainerMode GetContainerMode(const CacheConfiguration &config)
Gets the container mode specified by config.
Definition: CacheDatabaseMixin.h:61
TCacheTypes::PrimaryTypes::BaseSetDeltaPointerType pPrimary
Definition: LockInfoBaseSets.h:37
void commit()
Definition: LockInfoBaseSets.h:78
CachePatriciaTree< typename TDescriptor::PatriciaTree > PatriciaTree
Definition: LockInfoBaseSets.h:59
Mixin that owns a cache database.
Definition: CacheDatabaseMixin.h:30
std::false_type IsOrderedSet
Indicates the set is not ordered.
Definition: LockInfoBaseSets.h:46
std::shared_ptr< typename TDescriptor::PatriciaTree::DeltaType > pPatriciaTree
Definition: LockInfoBaseSets.h:39
void commit()
Commits all changes in the rebased tree.
Definition: CachePatriciaTree.h:56
auto rebaseDetached() const
Definition: CachePatriciaTree.h:51
LockInfoBaseSets(const CacheConfiguration &config)
Definition: LockInfoBaseSets.h:49
TBaseSetDeltaPointers rebase()
Definition: LockInfoBaseSets.h:62
auto rebase()
Returns a delta based on the same data source as this tree.
Definition: CachePatriciaTree.h:45
CacheDatabase & database()
Gets the database.
Definition: CacheDatabaseMixin.h:55
Cache configuration.
Definition: CacheConfiguration.h:37
tree::BasePatriciaTree< SerializerHashedKeyEncoder< typename TDescriptor::Serializer >, PatriciaTreeRdbDataSource, utils::ArrayHasher< typename TDescriptor::KeyType > > LockInfoPatriciaTree
Definition: LockInfoBaseSets.h:33
Definition: AddressExtractionExtension.cpp:28
TBaseSetDeltaPointers rebaseDetached() const
Definition: LockInfoBaseSets.h:70
void flush()
Flushes the database.
Definition: CacheDatabaseMixin.h:68