#include <bookInMemory.h>
Public Member Functions | |
~BookInMemory () | |
void | find (const HashKey &key, MoveVector &out) const |
size_t | size () const |
Static Public Member Functions | |
static const BookInMemory & | instance (const std::string &filename="") |
Private Types | |
typedef CArray< Move, 8 > | moves_t |
typedef hash_map< HashKey, moves_t > | table_t |
Private Member Functions | |
BookInMemory (const std::string &filename) | |
void | readAll (const std::string &filename) |
int | readRecursive (const HashKey &key, int index, WeightedBook &book, int, int) |
Private Attributes | |
table_t | table |
Definition at line 15 of file bookInMemory.h.
|
private |
Definition at line 17 of file bookInMemory.h.
|
private |
Definition at line 18 of file bookInMemory.h.
osl::record::opening::BookInMemory::~BookInMemory | ( | ) |
Definition at line 17 of file bookInMemory.cc.
|
explicitprivate |
Definition at line 11 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().
|
static |
Definition at line 77 of file bookInMemory.cc.
References book().
|
private |
Definition at line 56 of file bookInMemory.cc.
References book(), and osl::record::opening::WeightedBook::getStartState().
|
private |
Definition at line 22 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::WMove::getWeight(), osl::record::opening::WeightedBook::getWhiteWinCount(), moves, and store().
|
inline |
Definition at line 24 of file bookInMemory.h.
References table.
|
private |
Definition at line 19 of file bookInMemory.h.
Referenced by size().