lib
Class Landlord
in cache_adt.h
- Direct Known Subclasses:
- Landlord_Cached, Landlord_Naive
- template < typename Key , typename Entry , template < class Entry , class Entries > class McdCalc = McdCalc_Cached > class Landlord
map
protected Landlord::Map map;
mcd_calc
private McdCalc< Entry, Landlord::Map > mcd_calc;
add
public void add( Key key, const Entry& entry );
add_
protected Landlord::MapIt add_( Key key, const Entry& entry );
charge
protected void charge( Entry& entry, float delta );
charge_all
protected void charge_all( float delta );
empty
public bool empty() const;
find
public bool find( Key key, const Entry** pentry ) const;
on_access
public void on_access( Entry& entry );
remove
public void remove( Key key );
remove_
protected void remove_( Landlord::MapIt it );
remove_least_valuable
public void remove_least_valuable( std::list< Entry >& entry_list );
should_evict
protected bool should_evict( const Entry& entry );