CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::NamespaceCacheView Class Reference

View on top of the namespace cache. More...

Inheritance diagram for catapult::cache::NamespaceCacheView:
Collaboration diagram for catapult::cache::NamespaceCacheView:

Public Member Functions

 NamespaceCacheView (const NamespaceCacheTypes::BaseSets &namespaceSets, const NamespaceCacheTypes::Options &options, const NamespaceSizes &namespaceSizes)
 Creates a view around namespaceSets, options and namespaceSizes. More...
 
- Public Member Functions inherited from catapult::cache::ReadOnlyViewSupplier< BasicNamespaceCacheView >
 ReadOnlyViewSupplier (TArgs &&... args)
 Creates a read-only view supplier around args. More...
 
 ReadOnlyViewSupplier (ReadOnlyViewSupplier &&rhs)
 
const BasicNamespaceCacheView ::ReadOnlyViewasReadOnly () const
 Returns a read-only view of this view. More...
 
- Public Member Functions inherited from catapult::cache::BasicNamespaceCacheView
 BasicNamespaceCacheView (const NamespaceCacheTypes::BaseSets &namespaceSets, const NamespaceCacheTypes::Options &, const NamespaceSizes &namespaceSizes)
 Creates a view around namespaceSets, options and namespaceSizes. More...
 
- Public Member Functions inherited from catapult::utils::MoveOnly
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...
 
MoveOnlyoperator= (const MoveOnly &)=delete
 Disabled assignment operator. More...
 
MoveOnlyoperator= (MoveOnly &&)=default
 Default move assignment operator. More...
 
- Public Member Functions inherited from catapult::cache::ContainsMixin< TSet, TCacheDescriptor >
 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...
 
- Public Member Functions inherited from catapult::cache::PatriciaTreeMixin< TTree >
 PatriciaTreeMixin (const TTree *pTree)
 Creates a mixin around 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...
 
std::pair< Hash256, bool > tryLookup (const typename TTree::KeyType &key, std::vector< tree::TreeNode > &nodePath) const
 Tries to find the value associated with key in the tree and stores proof of existence or not in nodePath. More...
 
- Public Member Functions inherited from catapult::cache::NamespaceDeepSizeMixin< TSet >
 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...
 
- Public Member Functions inherited from catapult::cache::NamespaceLookupMixin< TPrimarySet, TFlatMap >
 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...
 

Additional Inherited Members

- Public Types inherited from catapult::cache::BasicNamespaceCacheView
using ReadOnlyView = NamespaceCacheTypes::CacheReadOnlyType
 
- Protected Member Functions inherited from catapult::cache::NamespaceDeepSizeMixin< TSet >
void incrementActiveSize (size_t delta=1)
 Increments the active size by delta. More...
 
void decrementActiveSize (size_t delta=1)
 Decrements the active size by delta. More...
 
void incrementDeepSize (size_t delta=1)
 Increments the deep size by delta. More...
 
void decrementDeepSize (size_t delta=1)
 Decrements the deep size by delta. More...
 

Detailed Description

View on top of the namespace cache.

Constructor & Destructor Documentation

◆ NamespaceCacheView()

catapult::cache::NamespaceCacheView::NamespaceCacheView ( const NamespaceCacheTypes::BaseSets namespaceSets,
const NamespaceCacheTypes::Options options,
const NamespaceSizes namespaceSizes 
)
inline

Creates a view around namespaceSets, options and namespaceSizes.


The documentation for this class was generated from the following file: