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

Cache for all unconfirmed transactions. More...

Inheritance diagram for catapult::cache::MemoryUtCache:
Collaboration diagram for catapult::cache::MemoryUtCache:

Classes

struct  Impl
 

Public Member Functions

 MemoryUtCache (const MemoryCacheOptions &options)
 Creates an unconfirmed transactions cache around options. More...
 
 ~MemoryUtCache () override
 Destroys an unconfirmed transactions cache. More...
 
MemoryUtCacheView view () const
 Gets a read only view based on this cache. More...
 
UtCacheModifierProxy modifier () override
 Gets a write only view of the cache. More...
 
- Public Member Functions inherited from catapult::cache::BasicTransactionsCache< UtCacheModifierProxy >
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
 
size_t m_idSequence
 
std::unique_ptr< Implm_pImpl
 
utils::SpinReaderWriterLock m_lock
 

Detailed Description

Cache for all unconfirmed transactions.

Constructor & Destructor Documentation

◆ MemoryUtCache()

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

Creates an unconfirmed transactions cache around options.

◆ ~MemoryUtCache()

catapult::cache::MemoryUtCache::~MemoryUtCache ( )
overridedefault

Destroys an unconfirmed transactions cache.

Member Function Documentation

◆ modifier()

UtCacheModifierProxy catapult::cache::MemoryUtCache::modifier ( )
overridevirtual

Gets a write only view of the cache.

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

Here is the call graph for this function:

◆ view()

MemoryUtCacheView catapult::cache::MemoryUtCache::view ( ) const

Gets a read only view based on this cache.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_idSequence

size_t catapult::cache::MemoryUtCache::m_idSequence
private

◆ m_lock

utils::SpinReaderWriterLock catapult::cache::MemoryUtCache::m_lock
mutableprivate

◆ m_options

MemoryCacheOptions catapult::cache::MemoryUtCache::m_options
private

◆ m_pImpl

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

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