|
| NamespaceCacheDelta (const NamespaceCacheTypes::BaseSetDeltaPointers &namespaceSets, const NamespaceCacheTypes::Options &options, const NamespaceSizes &namespaceSizes) |
| Creates a delta around namespaceSets, options and namespaceSizes. More...
|
|
| ReadOnlyViewSupplier (TArgs &&... args) |
| Creates a read-only view supplier around args. More...
|
|
| ReadOnlyViewSupplier (ReadOnlyViewSupplier &&rhs) |
|
const BasicNamespaceCacheDelta ::ReadOnlyView & | asReadOnly () const |
| Returns a read-only view of this view. More...
|
|
| BasicNamespaceCacheDelta (const NamespaceCacheTypes::BaseSetDeltaPointers &namespaceSets, const NamespaceCacheTypes::Options &options, const NamespaceSizes &namespaceSizes) |
| Creates a delta around namespaceSets, options and namespaceSizes. More...
|
|
void | insert (const state::RootNamespace &ns) |
| Inserts the root namespace ns into the cache. More...
|
|
void | insert (const state::Namespace &ns) |
| Inserts the namespace ns into the cache. More...
|
|
void | setAlias (NamespaceId id, const state::NamespaceAlias &alias) |
| Sets an alias for namespace id. More...
|
|
void | remove (NamespaceId id) |
| Removes the namespace specified by its id from the cache. More...
|
|
CollectedIds | prune (Height height) |
| Prunes the namespace cache at height. More...
|
|
constexpr | MoveOnly ()=default |
| Default constructor. More...
|
|
| ~MoveOnly ()=default |
| Default destructor. More...
|
|
| MoveOnly (const NonCopyable &)=delete |
| Disabled copy constructor. More...
|
|
| MoveOnly (MoveOnly &&)=default |
| Default move constructor. More...
|
|
MoveOnly & | operator= (const MoveOnly &)=delete |
| Disabled assignment operator. More...
|
|
MoveOnly & | operator= (MoveOnly &&)=default |
| Default move assignment operator. More...
|
|
| ContainsMixin (const TSet &set) |
| Creates a mixin around set. More...
|
|
bool | contains (const KeyType &key) const |
| Gets a value indicating whether or not the cache contains an element with key. More...
|
|
| PatriciaTreeDeltaMixin (TSet &set, const std::shared_ptr< TTree > &pTree) |
| Creates a mixin around delta set and pTree. More...
|
|
bool | supportsMerkleRoot () const |
| Returns true if merkle root is supported. More...
|
|
std::pair< Hash256, bool > | tryGetMerkleRoot () const |
| Tries to get the merkle root if supported. More...
|
|
void | updateMerkleRoot (Height height) |
| Recalculates the merkle root given the specified chain height if supported. More...
|
|
void | setMerkleRoot (const Hash256 &merkleRoot) |
|
| HeightBasedTouchMixin (TSet &set, THeightGroupedSet &heightGroupedSet) |
| Creates a mixin around set and heightGroupedSet. More...
|
|
THeightGroupedSet::ElementType::Identifiers | touch (Height height) |
| Touches the cache at height and returns identifiers of all deactivating elements. More...
|
|
| NamespaceDeepSizeMixin (const NamespaceSizes &sizes) |
| Creates a mixin around sizes. More...
|
|
size_t | activeSize () const |
| Gets the number of unique active namespaces in the cache. More...
|
|
size_t | deepSize () const |
| Gets the total number of namespaces in the cache (including versions). More...
|
|
| NamespaceLookupMixin (const TPrimarySet &set, const TFlatMap &flatMap) |
| Creates a mixin around (history by id) set and flatMap. More...
|
|
bool | isActive (NamespaceId id, Height height) const |
| Returns true if the value specified by identifier id is active at height. More...
|
|
const_iterator | find (NamespaceId id) const |
| Finds the cache value identified by id. More...
|
|
Delta on top of the namespace cache.