Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

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


Inner Classes, Typedefs, and Enums
class Landlord::Map
          
typedef Landlord::MapCIt
          
typedef Landlord::MapIt
          
 
Field Summary
protected Landlord::Map map
          
private McdCalc< Entry, Landlord::Map > mcd_calc
          
 
Method Summary
 void add( Key key, const Entry& entry )
          
protected Landlord::MapIt add_( Key key, const Entry& entry )
          
protected void charge( Entry& entry, float delta )
          
protected void charge_all( float delta )
          
 bool empty() const
          
 bool find( Key key, const Entry** pentry ) const
          
 void on_access( Entry& entry )
          
 void remove( Key key )
          
protected void remove_( Landlord::MapIt it )
          
 void remove_least_valuable( std::list< Entry >& entry_list )
          
protected bool should_evict( const Entry& entry )
          
 

Field Detail

map

protected Landlord::Map map;

mcd_calc

private McdCalc< Entry, Landlord::Map > mcd_calc;


Method Detail

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 );

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:14
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD