|
CatapultServer
v0.5.0.1 (Elephant)
|


Public Member Functions | |
| BasicTransactionsCacheModifierProxy (std::unique_ptr< TTransactionsCacheModifier > &&pModifier) | |
| Creates a transactions cache modifier around pModifier. More... | |
| size_t | size () const |
| Returns the number of transactions in the cache. More... | |
| bool | add (const TTransactionInfo &transactionInfo) |
| TTransactionInfo | remove (const Hash256 &hash) |
| Removes the transaction identified by hash from the cache. More... | |
Public Member Functions inherited from catapult::utils::MoveOnly | |
| constexpr | MoveOnly ()=default |
| Default constructor. More... | |
| ~MoveOnly ()=default | |
| Default destructor. More... | |
| MoveOnly (const NonCopyable &)=delete | |
| Disabled copy constructor. More... | |
| MoveOnly (MoveOnly &&)=default | |
| Default move constructor. More... | |
| MoveOnly & | operator= (const MoveOnly &)=delete |
| Disabled assignment operator. More... | |
| MoveOnly & | operator= (MoveOnly &&)=default |
| Default move assignment operator. More... | |
Protected Member Functions | |
| TTransactionsCacheModifier & | modifier () |
| Gets the modifier. More... | |
| const TTransactionsCacheModifier & | modifier () const |
| Gets the (const) modifier. More... | |
Private Attributes | |
| std::unique_ptr< TTransactionsCacheModifier > | m_pModifier |
A delegating proxy around a transactions cache modifier.
|
inlineexplicit |
Creates a transactions cache modifier around pModifier.
|
inline |
Adds the transaction info (transactionInfo) to the cache. Returns true if the transaction info was successfully added.

|
inlineprotected |
Gets the modifier.
|
inlineprotected |
Gets the (const) modifier.
|
inline |
Removes the transaction identified by hash from the cache.

|
inline |
Returns the number of transactions in the cache.
|
private |