Pyrogenesis
13997
|
#include <cache_adt.h>
Classes | |
struct | CD_greater |
class | PriQ |
Public Member Functions | |
Landlord_Lazy () | |
void | add (const Key &key, const Entry &entry) |
void | remove (const Key &key) |
void | on_access (Entry &entry) |
void | remove_least_valuable (std::list< Entry > &entry_list) |
![]() | |
bool | empty () const |
void | add (const Key &key, const Entry &entry) |
bool | find (const Key &key, const Entry **pentry) const |
void | remove (const Key &key) |
void | on_access (Entry &entry) |
void | remove_least_valuable (std::list< Entry > &entry_list) |
Private Types | |
typedef Landlord_Naive< Key, Entry >::Map | Map |
typedef Landlord_Naive< Key, Entry >::MapIt | MapIt |
typedef Landlord_Naive< Key, Entry >::MapCIt | MapCIt |
typedef Landlord_Naive< Key, Entry > | Parent |
Private Member Functions | |
void | commit_pending_delta () |
Private Attributes | |
PriQ | pri_q |
float | pending_delta |
Additional Inherited Members | |
![]() | |
typedef Map::iterator | MapIt |
typedef Map::const_iterator | MapCIt |
![]() | |
MapIt | add_ (const Key &key, const Entry &entry) |
void | remove_ (MapIt it) |
void | charge (Entry &entry, float delta) |
void | charge_all (float delta) |
bool | should_evict (const Entry &entry) |
![]() | |
Map | map |
Definition at line 393 of file cache_adt.h.
|
private |
Definition at line 395 of file cache_adt.h.
|
private |
Definition at line 397 of file cache_adt.h.
|
private |
Definition at line 396 of file cache_adt.h.
|
private |
Definition at line 454 of file cache_adt.h.
|
inline |
Definition at line 400 of file cache_adt.h.
|
inline |
Definition at line 402 of file cache_adt.h.
|
inlineprivate |
Definition at line 492 of file cache_adt.h.
|
inline |
Definition at line 425 of file cache_adt.h.
|
inline |
Definition at line 412 of file cache_adt.h.
|
inline |
Definition at line 434 of file cache_adt.h.
|
private |
Definition at line 490 of file cache_adt.h.
|
private |
Definition at line 486 of file cache_adt.h.