|
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 |
| void osl::book::BookInMemory::find | ( | const HashKey & | key, |
| MoveVector & | out ) const |
Definition at line 64 of file bookInMemory.cc.
References osl::Move::isNormal(), osl::FixedCapacityVector< T, Capacity >::push_back(), and table.
|
static |
Definition at line 76 of file bookInMemory.cc.
References BookInMemory(), and table.
|
private |
Definition at line 55 of file bookInMemory.cc.
References osl::OslConfig::openingBook(), and readRecursive().
Referenced by BookInMemory().
|
private |
Definition at line 21 of file bookInMemory.cc.
References osl::FixedCapacityVector< T, Capacity >::begin(), osl::FixedCapacityVector< T, Capacity >::capacity(), osl::FixedCapacityVector< T, Capacity >::empty(), osl::FixedCapacityVector< T, Capacity >::end(), osl::CArray< T, Capacity >::fill(), osl::hash::HashKey::newMakeMove(), osl::FixedCapacityVector< T, Capacity >::push_back(), readRecursive(), osl::CArray< T, Capacity >::size(), osl::FixedCapacityVector< T, Capacity >::size(), and table.
Referenced by readAll(), and readRecursive().
|
inline |
Definition at line 23 of file bookInMemory.h.
References table.
Definition at line 18 of file bookInMemory.h.
Referenced by find(), instance(), readRecursive(), and size().