Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Serializable structure for key/value items. More...
#include <cachemap.h>
Public Member Functions | |
CacheItem () | |
CacheItem (const K &keyIn, const V &valueIn) | |
template<typename Stream , typename Operation > | |
void | SerializationOp (Stream &s, Operation ser_action) |
Public Attributes | |
K | key |
V | value |
ADD_SERIALIZE_METHODS | |
Detailed Description
template<typename K, typename V>
struct CacheItem< K, V >
Serializable structure for key/value items.
Definition at line 18 of file cachemap.h.
Constructor & Destructor Documentation
◆ CacheItem() [1/2]
Definition at line 20 of file cachemap.h.
◆ CacheItem() [2/2]
|
inline |
Definition at line 23 of file cachemap.h.
Member Function Documentation
◆ SerializationOp()
|
inline |
Definition at line 34 of file cachemap.h.
References CacheItem< K, V >::key, READWRITE, and CacheItem< K, V >::value.
Member Data Documentation
◆ ADD_SERIALIZE_METHODS
CacheItem< K, V >::ADD_SERIALIZE_METHODS |
Definition at line 31 of file cachemap.h.
◆ key
K CacheItem< K, V >::key |
Definition at line 28 of file cachemap.h.
Referenced by CacheMap< uint256, CGovernanceVote >::PruneLast(), CacheMultiMap< uint256, vote_time_pair_t >::PruneLast(), CacheMultiMap< uint256, vote_time_pair_t >::RebuildIndex(), and CacheItem< K, V >::SerializationOp().
◆ value
V CacheItem< K, V >::value |
Definition at line 29 of file cachemap.h.
Referenced by CacheMultiMap< uint256, vote_time_pair_t >::Get(), CacheMap< uint256, CGovernanceVote >::Get(), CacheMultiMap< uint256, vote_time_pair_t >::GetAll(), CacheMultiMap< uint256, vote_time_pair_t >::PruneLast(), CacheMultiMap< uint256, vote_time_pair_t >::RebuildIndex(), and CacheItem< K, V >::SerializationOp().
The documentation for this struct was generated from the following file:
- src/cachemap.h