CatapultServer  v0.5.0.1 (Elephant)
CatapultCacheDetachedDelta.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "CatapultCacheDelta.h"
23 #include <vector>
24 
25 namespace catapult { namespace cache { class DetachedSubCacheView; } }
26 
27 namespace catapult { namespace cache {
28 
31  public:
33  explicit CatapultCacheDetachedDelta(std::vector<std::unique_ptr<DetachedSubCacheView>>&& detachedSubViews);
34 
37 
38  public:
39  // make this class move only (the definitions are in the source file in order to allow forward declarations)
42 
43  public:
46  std::unique_ptr<CatapultCacheDelta> tryLock();
47 
48  private:
49  std::vector<std::unique_ptr<DetachedSubCacheView>> m_detachedSubViews;
50  };
51 }}
catapult::cache::CatapultCacheDetachedDelta::tryLock
std::unique_ptr< CatapultCacheDelta > tryLock()
Definition: CatapultCache.cpp:197
CatapultCacheDelta.h
catapult::cache::CatapultCacheDetachedDelta::~CatapultCacheDetachedDelta
~CatapultCacheDetachedDelta()
Destroys the delta.
catapult::cache::CatapultCacheDetachedDelta::CatapultCacheDetachedDelta
CatapultCacheDetachedDelta(std::vector< std::unique_ptr< DetachedSubCacheView >> &&detachedSubViews)
Creates a detached cache delta from detachedSubViews.
Definition: CatapultCache.cpp:187
catapult::cache::CatapultCacheDetachedDelta::operator=
CatapultCacheDetachedDelta & operator=(CatapultCacheDetachedDelta &&)
catapult::cache::CatapultCacheDetachedDelta
Detached delta of the catapult cache.
Definition: CatapultCacheDetachedDelta.h:30
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::cache::CatapultCacheDetachedDelta::m_detachedSubViews
std::vector< std::unique_ptr< DetachedSubCacheView > > m_detachedSubViews
Definition: CatapultCacheDetachedDelta.h:49