#include <bookInMemory.h>
Public Member Functions | |
void | find (const HashKey &key, MoveVector &out) const |
size_t | size () const |
Static Public Member Functions | |
static const BookInMemory & | instance () |
Private Types | |
typedef CArray< Move, 8 > | moves_t |
typedef hash_map< HashKey, moves_t > | table_t |
Private Member Functions | |
BookInMemory () | |
~BookInMemory () | |
void | readAll () |
int | readRecursive (const HashKey &key, int index, WeightedBook &book, int, int) |
Private Attributes | |
table_t | table |
Definition at line 15 of file bookInMemory.h.
typedef CArray<Move,8> osl::record::opening::BookInMemory::moves_t [private] |
Definition at line 17 of file bookInMemory.h.
typedef hash_map<HashKey,moves_t> osl::record::opening::BookInMemory::table_t [private] |
Definition at line 18 of file bookInMemory.h.
osl::record::opening::BookInMemory::BookInMemory | ( | ) | [private] |
Definition at line 10 of file bookInMemory.cc.
osl::record::opening::BookInMemory::~BookInMemory | ( | ) | [private] |
Definition at line 16 of file bookInMemory.cc.
void osl::record::opening::BookInMemory::find | ( | const HashKey & | key, |
MoveVector & | out | ||
) | const |
Definition at line 65 of file bookInMemory.cc.
References osl::Move::isNormal().
const osl::record::opening::BookInMemory & osl::record::opening::BookInMemory::instance | ( | ) | [static] |
Definition at line 77 of file bookInMemory.cc.
References book().
void osl::record::opening::BookInMemory::readAll | ( | ) | [private] |
Definition at line 56 of file bookInMemory.cc.
References book(), and osl::record::opening::WeightedBook::getStartState().
int osl::record::opening::BookInMemory::readRecursive | ( | const HashKey & | key, |
int | index, | ||
WeightedBook & | book, | ||
int | depth, | ||
int | |||
) | [private] |
Definition at line 21 of file bookInMemory.cc.
References book(), osl::record::opening::WeightedBook::getBlackWinCount(), osl::record::opening::WMove::getMove(), osl::record::opening::WeightedBook::getMoves(), osl::record::opening::WMove::getStateIndex(), osl::record::opening::WeightedBook::getWhiteWinCount(), moves, and store().
size_t osl::record::opening::BookInMemory::size | ( | ) | const [inline] |
Definition at line 22 of file bookInMemory.h.
References table.
Definition at line 19 of file bookInMemory.h.
Referenced by size().