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

Cache for all partial transactions. More...

Inheritance diagram for catapult::cache::MemoryPtCache:
Collaboration diagram for catapult::cache::MemoryPtCache:

Classes

struct  Impl
 

Public Member Functions

 MemoryPtCache (const MemoryCacheOptions &options)
 Creates a partial transactions cache around options. More...
 
 ~MemoryPtCache () override
 Destroys a partial transactions cache. More...
 
MemoryPtCacheView view () const
 Gets a read only view based on this cache. More...
 
PtCacheModifierProxy modifier () override
 Gets a write only view of the cache. More...
 
- Public Member Functions inherited from catapult::cache::BasicTransactionsCache< PtCacheModifierProxy >
virtual ~BasicTransactionsCache ()=default
 
- Public Member Functions inherited from catapult::utils::NonCopyable
constexpr NonCopyable ()=default
 Default constructor. More...
 
 ~NonCopyable ()=default
 Default destructor. More...
 
 NonCopyable (const NonCopyable &)=delete
 Disabled copy constructor. More...
 
NonCopyableoperator= (const NonCopyable &)=delete
 Disabled assignment operator. More...
 

Private Attributes

MemoryCacheOptions m_options
 
std::unique_ptr< Implm_pImpl
 
utils::SpinReaderWriterLock m_lock
 

Detailed Description

Cache for all partial transactions.

Constructor & Destructor Documentation

◆ MemoryPtCache()

catapult::cache::MemoryPtCache::MemoryPtCache ( const MemoryCacheOptions options)
explicit

Creates a partial transactions cache around options.

◆ ~MemoryPtCache()

catapult::cache::MemoryPtCache::~MemoryPtCache ( )
overridedefault

Destroys a partial transactions cache.

Member Function Documentation

◆ modifier()

PtCacheModifierProxy catapult::cache::MemoryPtCache::modifier ( )
overridevirtual

Gets a write only view of the cache.

Implements catapult::cache::BasicTransactionsCache< PtCacheModifierProxy >.

Here is the call graph for this function:

◆ view()

MemoryPtCacheView catapult::cache::MemoryPtCache::view ( ) const

Gets a read only view based on this cache.

Here is the call graph for this function:

Member Data Documentation

◆ m_lock

utils::SpinReaderWriterLock catapult::cache::MemoryPtCache::m_lock
mutableprivate

◆ m_options

MemoryCacheOptions catapult::cache::MemoryPtCache::m_options
private

◆ m_pImpl

std::unique_ptr<Impl> catapult::cache::MemoryPtCache::m_pImpl
private

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