All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Types | Private Attributes | List of all members
osl::checkmate::DfpnPathTable Class Reference
Collaboration diagram for osl::checkmate::DfpnPathTable:
Collaboration graph
[legend]

Public Member Functions

 DfpnPathTable ()
 
template<Player Attack>
DfpnPathRecordallocate (const HashKey &key, int depth, LoopToDominance &loop)
 
const DfpnPathRecordprobe (const HashKey &key) const
 
void clear ()
 
size_t runGC ()
 
size_t size () const
 
void rehash (size_t bucket_size)
 

Private Types

typedef hash_map< BoardKey,
DfpnPathList
table_t
 

Private Attributes

table_t table
 
size_t total_size
 
size_t gc_threshold
 

Detailed Description

Definition at line 280 of file dfpn.cc.

Member Typedef Documentation

typedef hash_map<BoardKey, DfpnPathList > osl::checkmate::DfpnPathTable::table_t
private

Definition at line 288 of file dfpn.cc.

Constructor & Destructor Documentation

osl::checkmate::DfpnPathTable::DfpnPathTable ( )
inline

Definition at line 293 of file dfpn.cc.

Member Function Documentation

template<Player Attack>
DfpnPathRecord* osl::checkmate::DfpnPathTable::allocate ( const HashKey &  key,
int  depth,
LoopToDominance loop 
)
inline

Definition at line 297 of file dfpn.cc.

References osl::checkmate::DfpnPathList::allocate(), depth, table, and total_size.

void osl::checkmate::DfpnPathTable::clear ( )
inline

Definition at line 310 of file dfpn.cc.

References table.

const DfpnPathRecord* osl::checkmate::DfpnPathTable::probe ( const HashKey &  key) const
inline

Definition at line 303 of file dfpn.cc.

References table.

void osl::checkmate::DfpnPathTable::rehash ( size_t  bucket_size)
inline

Definition at line 327 of file dfpn.cc.

References table.

size_t osl::checkmate::DfpnPathTable::runGC ( )
inline

Definition at line 311 of file dfpn.cc.

References gc_threshold, osl::OslConfig::memoryUseRatio(), table, and total_size.

size_t osl::checkmate::DfpnPathTable::size ( ) const
inline

Definition at line 326 of file dfpn.cc.

References total_size.

Member Data Documentation

size_t osl::checkmate::DfpnPathTable::gc_threshold
private

Definition at line 291 of file dfpn.cc.

Referenced by runGC().

table_t osl::checkmate::DfpnPathTable::table
private

Definition at line 289 of file dfpn.cc.

Referenced by allocate(), clear(), probe(), rehash(), and runGC().

size_t osl::checkmate::DfpnPathTable::total_size
private

Definition at line 290 of file dfpn.cc.

Referenced by allocate(), runGC(), and size().


The documentation for this class was generated from the following file: