![]() |
Raven Core
3.0.0
P2P Digital Currency
|
#include <assettypes.h>
Public Types | |
| typedef std::pair< cache_key_t, cache_value_t > | key_value_pair_t |
| typedef std::list< key_value_pair_t >::iterator | list_iterator_t |
Public Member Functions | |
| CLRUCache (size_t max_size) | |
| CLRUCache () | |
| void | Put (const cache_key_t &key, const cache_value_t &value) |
| void | Erase (const cache_key_t &key) |
| const cache_value_t & | Get (const cache_key_t &key) |
| bool | Exists (const cache_key_t &key) const |
| size_t | Size () const |
| void | Clear () |
| void | SetNull () |
| size_t | MaxSize () const |
| void | SetSize (const size_t size) |
| const std::unordered_map< cache_key_t, list_iterator_t > & | GetItemsMap () |
| const std::list< key_value_pair_t > & | GetItemsList () |
| CLRUCache (const CLRUCache &cache) | |
Private Attributes | |
| std::list< key_value_pair_t > | cacheItemsList |
| std::unordered_map< cache_key_t, list_iterator_t > | cacheItemsMap |
| size_t | maxSize |
Definition at line 539 of file assettypes.h.
| typedef std::pair<cache_key_t, cache_value_t> CLRUCache< cache_key_t, cache_value_t >::key_value_pair_t |
Definition at line 542 of file assettypes.h.
| typedef std::list<key_value_pair_t>::iterator CLRUCache< cache_key_t, cache_value_t >::list_iterator_t |
Definition at line 543 of file assettypes.h.
|
inline |
Definition at line 545 of file assettypes.h.
|
inline |
Definition at line 548 of file assettypes.h.
|
inline |
Definition at line 642 of file assettypes.h.
|
inline |
Definition at line 608 of file assettypes.h.
|
inline |
Definition at line 573 of file assettypes.h.
|
inline |
Definition at line 597 of file assettypes.h.
|
inline |
Definition at line 583 of file assettypes.h.
|
inline |
Definition at line 636 of file assettypes.h.
|
inline |
Definition at line 631 of file assettypes.h.
|
inline |
Definition at line 620 of file assettypes.h.
|
inline |
Definition at line 553 of file assettypes.h.
|
inline |
Definition at line 614 of file assettypes.h.
|
inline |
Definition at line 626 of file assettypes.h.
|
inline |
Definition at line 602 of file assettypes.h.
|
private |
Definition at line 650 of file assettypes.h.
|
private |
Definition at line 651 of file assettypes.h.
|
private |
Definition at line 652 of file assettypes.h.
1.8.13