Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Go to the documentation of this file. 17 template<
typename K,
typename V>
33 template <
typename Stream,
typename Operation>
45 template<
typename K,
typename V,
typename Size = u
int32_t>
55 typedef typename list_t::iterator
list_it;
57 typedef typename list_t::const_iterator
list_cit;
59 typedef std::map<K, list_it>
map_t;
61 typedef typename map_t::iterator
map_it;
63 typedef typename map_t::const_iterator
map_cit;
106 bool Insert(
const K& key,
const V& value)
124 bool Get(
const K& key, V& value)
const 130 item_t& item = *(it->second);
159 template <
typename Stream,
typename Operation>
164 if(ser_action.ForRead()) {
std::list< item_t > list_t
bool HasKey(const K &key) const
const list_t & GetItemList() const
size_type GetMaxSize() const
void SerializationOp(Stream &s, Operation ser_action)
CacheMap(size_type nMaxSizeIn=0)
CacheItem(const K &keyIn, const V &valueIn)
bool Get(const K &key, V &value) const
Map like container that keeps the N most recently added items.
Serializable structure for key/value items.
void SetMaxSize(size_type nMaxSizeIn)
list_t::const_iterator list_cit
void SerializationOp(Stream &s, Operation ser_action)
bool Insert(const K &key, const V &value)
size_type GetSize() const
map_t::const_iterator map_cit
std::map< K, list_it > map_t
CacheMap< K, V > & operator=(const CacheMap< K, V > &other)
CacheMap(const CacheMap< K, V > &other)