CatapultServer
v0.5.0.1 (Elephant)
|
A relockable detached catapult cache. More...
Classes | |
class | Impl |
Public Member Functions | |
RelockableDetachedCatapultCache (const CatapultCache &catapultCache) | |
Creates a relockable detached catapult cache around catapultCache. More... | |
~RelockableDetachedCatapultCache () | |
Destroys the relockable detached catapult cache. More... | |
Height | height () const |
Gets the current cache height. More... | |
std::unique_ptr< CatapultCacheDelta > | getAndTryLock () |
std::unique_ptr< CatapultCacheDelta > | rebaseAndLock () |
Rebases and locks the (detached) catapult cache delta. More... | |
Private Attributes | |
std::unique_ptr< Impl > | m_pImpl |
A relockable detached catapult cache.
|
explicit |
Creates a relockable detached catapult cache around catapultCache.
|
default |
Destroys the relockable detached catapult cache.
std::unique_ptr< CatapultCacheDelta > catapult::cache::RelockableDetachedCatapultCache::getAndTryLock | ( | ) |
Gets and locks the last (detached) catapult cache delta.
nullptr
is returned. Height catapult::cache::RelockableDetachedCatapultCache::height | ( | ) | const |
Gets the current cache height.
std::unique_ptr< CatapultCacheDelta > catapult::cache::RelockableDetachedCatapultCache::rebaseAndLock | ( | ) |
Rebases and locks the (detached) catapult cache delta.
|
private |