3 #ifndef OSL_BOOKINMEMORY_H 4 #define OSL_BOOKINMEMORY_H 6 #include <unordered_map> 17 typedef std::unordered_map<HashKey,moves_t,std::hash<HashKey>>
table_t;
23 size_t size()
const {
return table.size(); }
27 void readAll(
const std::string& filename);
CArray< Move, 8 > moves_t
void find(const HashKey &key, MoveVector &out) const
int readRecursive(const HashKey &key, int index, WeightedBook &book, int, int)
BookInMemory(const std::string &filename)
std::unordered_map< HashKey, moves_t, std::hash< HashKey > > table_t
static const BookInMemory & instance(const std::string &filename="")
void readAll(const std::string &filename)