Public Member Functions | |
DfpnPathTable () | |
template<Player Attack> | |
DfpnPathRecord * | allocate (const HashKey &key, int depth, LoopToDominance &loop) |
const DfpnPathRecord * | probe (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 |
typedef hash_map<BoardKey, DfpnPathList > osl::checkmate::DfpnPathTable::table_t [private] |
osl::checkmate::DfpnPathTable::DfpnPathTable | ( | ) | [inline] |
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] |
const DfpnPathRecord* osl::checkmate::DfpnPathTable::probe | ( | const HashKey & | key | ) | const [inline] |
void osl::checkmate::DfpnPathTable::rehash | ( | size_t | bucket_size | ) | [inline] |
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.
size_t osl::checkmate::DfpnPathTable::gc_threshold [private] |
table_t osl::checkmate::DfpnPathTable::table [private] |
size_t osl::checkmate::DfpnPathTable::total_size [private] |
Definition at line 290 of file dfpn.cc.
Referenced by allocate(), runGC(), and size().