Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Map like container that keeps the N most recently added items.
More...
#include <cachemap.h>
template<typename K, typename V, typename Size = uint32_t>
class CacheMap< K, V, Size >
Map like container that keeps the N most recently added items.
Definition at line 46 of file cachemap.h.
◆ item_t
template<typename K, typename V, typename Size = uint32_t>
◆ list_cit
template<typename K, typename V, typename Size = uint32_t>
◆ list_it
template<typename K, typename V, typename Size = uint32_t>
◆ list_t
template<typename K, typename V, typename Size = uint32_t>
◆ map_cit
template<typename K, typename V, typename Size = uint32_t>
◆ map_it
template<typename K, typename V, typename Size = uint32_t>
◆ map_t
template<typename K, typename V, typename Size = uint32_t>
◆ size_type
template<typename K, typename V, typename Size = uint32_t>
◆ CacheMap() [1/2]
template<typename K, typename V, typename Size = uint32_t>
◆ CacheMap() [2/2]
template<typename K, typename V, typename Size = uint32_t>
◆ Clear()
template<typename K, typename V, typename Size = uint32_t>
◆ Erase()
template<typename K, typename V, typename Size = uint32_t>
void CacheMap< K, V, Size >::Erase |
( |
const K & |
key | ) |
|
|
inline |
◆ Get()
template<typename K, typename V, typename Size = uint32_t>
bool CacheMap< K, V, Size >::Get |
( |
const K & |
key, |
|
|
V & |
value |
|
) |
| const |
|
inline |
◆ GetItemList()
template<typename K, typename V, typename Size = uint32_t>
◆ GetMaxSize()
template<typename K, typename V, typename Size = uint32_t>
◆ GetSize()
template<typename K, typename V, typename Size = uint32_t>
◆ HasKey()
template<typename K, typename V, typename Size = uint32_t>
bool CacheMap< K, V, Size >::HasKey |
( |
const K & |
key | ) |
const |
|
inline |
◆ Insert()
template<typename K, typename V, typename Size = uint32_t>
bool CacheMap< K, V, Size >::Insert |
( |
const K & |
key, |
|
|
const V & |
value |
|
) |
| |
|
inline |
◆ operator=()
template<typename K, typename V, typename Size = uint32_t>
◆ PruneLast()
template<typename K, typename V, typename Size = uint32_t>
void CacheMap< K, V, Size >::PruneLast |
( |
| ) |
|
|
inlineprivate |
◆ RebuildIndex()
template<typename K, typename V, typename Size = uint32_t>
void CacheMap< K, V, Size >::RebuildIndex |
( |
| ) |
|
|
inlineprivate |
◆ SerializationOp()
template<typename K, typename V, typename Size = uint32_t>
template<typename Stream , typename Operation >
void CacheMap< K, V, Size >::SerializationOp |
( |
Stream & |
s, |
|
|
Operation |
ser_action |
|
) |
| |
|
inline |
◆ SetMaxSize()
template<typename K, typename V, typename Size = uint32_t>
◆ ADD_SERIALIZE_METHODS
template<typename K, typename V, typename Size = uint32_t>
CacheMap< K, V, Size >::ADD_SERIALIZE_METHODS |
◆ listItems
template<typename K, typename V, typename Size = uint32_t>
Definition at line 68 of file cachemap.h.
Referenced by CacheMap< uint256, CGovernanceVote >::Clear(), CacheMap< uint256, CGovernanceVote >::Erase(), CacheMap< uint256, CGovernanceVote >::GetItemList(), CacheMap< uint256, CGovernanceVote >::GetSize(), CacheMap< uint256, CGovernanceVote >::Insert(), CacheMap< uint256, CGovernanceVote >::operator=(), CacheMultiMap< uint256, vote_time_pair_t >::operator=(), CacheMap< uint256, CGovernanceVote >::PruneLast(), CacheMap< uint256, CGovernanceVote >::RebuildIndex(), and CacheMap< uint256, CGovernanceVote >::SerializationOp().
◆ mapIndex
template<typename K, typename V, typename Size = uint32_t>
Definition at line 70 of file cachemap.h.
Referenced by CacheMap< uint256, CGovernanceVote >::Clear(), CacheMap< uint256, CGovernanceVote >::Erase(), CacheMap< uint256, CGovernanceVote >::Get(), CacheMap< uint256, CGovernanceVote >::HasKey(), CacheMap< uint256, CGovernanceVote >::Insert(), CacheMap< uint256, CGovernanceVote >::PruneLast(), and CacheMap< uint256, CGovernanceVote >::RebuildIndex().
◆ nMaxSize
template<typename K, typename V, typename Size = uint32_t>
Definition at line 66 of file cachemap.h.
Referenced by CacheMap< uint256, CGovernanceVote >::GetMaxSize(), CacheMap< uint256, CGovernanceVote >::Insert(), CacheMap< uint256, CGovernanceVote >::operator=(), CacheMultiMap< uint256, vote_time_pair_t >::operator=(), CacheMap< uint256, CGovernanceVote >::SerializationOp(), and CacheMap< uint256, CGovernanceVote >::SetMaxSize().
The documentation for this class was generated from the following file: