Pyrogenesis
13997
|
#include <cache_adt.h>
Public Member Functions | |
Cache () | |
void | add (const Key &key, const Item &item, size_t size, size_t cost) |
void | remove (const Key &key) |
bool | retrieve (const Key &key, Item &item, size_t *psize=0, bool refill_credit=true) |
bool | peek (const Key &key, Item &item, size_t *psize=0) |
bool | remove_least_valuable (Item *pItem=0, size_t *pSize=0) |
bool | empty () const |
Private Types | |
typedef CacheEntry< Item, Divider > | Entry |
Private Attributes | |
std::list< Entry > | entries_awaiting_eviction |
Manager< Key, Entry > | mgr |
Definition at line 657 of file cache_adt.h.
|
private |
Definition at line 737 of file cache_adt.h.
|
inline |
Definition at line 660 of file cache_adt.h.
|
inline |
Definition at line 662 of file cache_adt.h.
|
inline |
Definition at line 731 of file cache_adt.h.
|
inline |
Definition at line 699 of file cache_adt.h.
|
inline |
Definition at line 671 of file cache_adt.h.
|
inline |
Definition at line 706 of file cache_adt.h.
|
inline |
Definition at line 683 of file cache_adt.h.
|
private |
Definition at line 740 of file cache_adt.h.
|
private |
Definition at line 742 of file cache_adt.h.