My Project
|
#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 std::unordered_map< HashKey, moves_t, std::hash< HashKey > > | 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 14 of file bookInMemory.h.
|
private |
Definition at line 16 of file bookInMemory.h.
|
private |
Definition at line 17 of file bookInMemory.h.
osl::book::BookInMemory::~BookInMemory | ( | ) |
Definition at line 16 of file bookInMemory.cc.
|
explicitprivate |
Definition at line 10 of file bookInMemory.cc.
void osl::book::BookInMemory::find | ( | const HashKey & | key, |
MoveVector & | out | ||
) | const |
Definition at line 64 of file bookInMemory.cc.
References osl::FixedCapacityVector< T, Capacity >::push_back().
Referenced by osl::move_probability::StateInfo::finishUpdate().
|
static |
Definition at line 76 of file bookInMemory.cc.
|
private |
Definition at line 55 of file bookInMemory.cc.
References osl::book::WeightedBook::startState().
|
private |
Definition at line 21 of file bookInMemory.cc.
References osl::FixedCapacityVector< T, Capacity >::begin(), osl::book::WeightedBook::blackWinCount(), osl::FixedCapacityVector< T, Capacity >::capacity(), osl::FixedCapacityVector< T, Capacity >::empty(), osl::FixedCapacityVector< T, Capacity >::end(), osl::CArray< T, Capacity >::fill(), osl::book::WeightedBook::moves(), osl::hash::HashKey::newMakeMove(), osl::FixedCapacityVector< T, Capacity >::push_back(), osl::CArray< T, Capacity >::size(), osl::FixedCapacityVector< T, Capacity >::size(), and osl::book::WeightedBook::whiteWinCount().
|
inline |
Definition at line 23 of file bookInMemory.h.
References table.
|
private |
Definition at line 18 of file bookInMemory.h.
Referenced by size().