CatapultServer  v0.5.0.1 (Elephant)
CatapultCacheDetachableDelta.h
Go to the documentation of this file.
1 
21 #pragma once
23 #include "catapult/types.h"
24 
25 namespace catapult { namespace cache { class CacheHeightView; } }
26 
27 namespace catapult { namespace cache {
28 
33  public:
36  CacheHeightView&& cacheHeightView,
37  std::vector<std::unique_ptr<DetachedSubCacheView>>&& detachedSubViews);
38 
41 
42  public:
45 
46  public:
48  Height height() const;
49 
52 
53  private:
54  std::unique_ptr<const CacheHeightView> m_pCacheHeightView;
56  };
57 }}
catapult::cache::CatapultCacheDetachableDelta::m_pCacheHeightView
std::unique_ptr< const CacheHeightView > m_pCacheHeightView
Definition: CatapultCacheDetachableDelta.h:54
catapult::cache::CatapultCacheDetachableDelta::~CatapultCacheDetachableDelta
~CatapultCacheDetachableDelta()
Destroys the detachable cache delta.
catapult::cache::CatapultCacheDetachableDelta::m_detachedDelta
CatapultCacheDetachedDelta m_detachedDelta
Definition: CatapultCacheDetachableDelta.h:55
catapult::utils::BaseValue< uint64_t, Height_tag >
catapult::cache::CatapultCacheDetachableDelta::height
Height height() const
Gets the cache height associated with this delta.
Definition: CatapultCache.cpp:175
catapult::cache::CatapultCacheDetachableDelta::CatapultCacheDetachableDelta
CatapultCacheDetachableDelta(CacheHeightView &&cacheHeightView, std::vector< std::unique_ptr< DetachedSubCacheView >> &&detachedSubViews)
Creates a detachable cache delta from a cache height view (cacheHeightView) and detachedSubViews.
Definition: CatapultCache.cpp:163
CatapultCacheDetachedDelta.h
catapult::cache::CatapultCacheDetachableDelta::detach
CatapultCacheDetachedDelta detach()
Detaches the detached delta from this delta.
Definition: CatapultCache.cpp:179
catapult::cache::CatapultCacheDetachedDelta
Detached delta of the catapult cache.
Definition: CatapultCacheDetachedDelta.h:30
types.h
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::cache::CatapultCacheDetachableDelta
Definition: CatapultCacheDetachableDelta.h:32
catapult::cache::CacheHeightView
A read only view on top of a cache height.
Definition: CacheHeight.h:28