CatapultServer
v0.5.0.1 (Elephant)
|
Cache composed of namespace information. More...
Public Member Functions | |
BasicNamespaceCache (const CacheConfiguration &config, const NamespaceCacheTypes::Options &options) | |
Creates a cache around config and options. More... | |
void | init (size_t activeSize, size_t deepSize) |
Initializes the cache with activeSize and deepSize. More... | |
void | commit (const CacheDeltaType &delta) |
Public Member Functions inherited from catapult::cache::BasicCache< TCacheDescriptor, TBaseSet, TSubViewArgs > | |
BasicCache (const CacheConfiguration &config, TSubViewArgs &&... subViewArgs) | |
Creates an empty cache with config and arguments (subViewArgs). More... | |
CacheViewType | createView () const |
Returns a locked view based on this cache. More... | |
CacheDeltaType | createDelta () |
Returns a locked cache delta based on this cache. More... | |
CacheDeltaType | createDetachedDelta () const |
void | commit (const CacheDeltaType &delta) |
Commits all pending changes from delta to the underlying storage. 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... | |
MoveOnly & | operator= (const MoveOnly &)=delete |
Disabled assignment operator. More... | |
MoveOnly & | operator= (MoveOnly &&)=default |
Default move assignment operator. More... | |
Private Member Functions | |
BasicNamespaceCache (const CacheConfiguration &config, const NamespaceCacheTypes::Options &options, std::unique_ptr< NamespaceSizes > &&pSizes) | |
Private Attributes | |
std::unique_ptr< NamespaceSizes > | m_pSizes |
Additional Inherited Members | |
Public Types inherited from catapult::cache::BasicCache< TCacheDescriptor, TBaseSet, TSubViewArgs > | |
using | CacheValueType = typename TCacheDescriptor::ValueType |
using | CacheViewType = typename TCacheDescriptor::CacheViewType |
using | CacheDeltaType = typename TCacheDescriptor::CacheDeltaType |
using | CacheReadOnlyType = typename CacheViewType::ReadOnlyView |
Cache composed of namespace information.
|
inlineexplicit |
Creates a cache around config and options.
|
inlineprivate |
|
inline |
Commits all pending changes to the underlying storage.
|
inline |
Initializes the cache with activeSize and deepSize.
|
private |