Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
#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) |
Public Member Functions inherited from Landlord< Key, Entry, McdCalc_Naive > | |
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 | |
Protected Types inherited from Landlord< Key, Entry, McdCalc_Naive > | |
typedef Map::iterator | MapIt |
typedef Map::const_iterator | MapCIt |
Protected Member Functions inherited from Landlord< Key, Entry, McdCalc_Naive > | |
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) |
Protected Attributes inherited from Landlord< Key, Entry, McdCalc_Naive > | |
Map | map |
|
private |
|
private |
|
private |
|
private |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
private |
|
private |