Database for use in DfsSolver. More...
#include <DfsSolver.hpp>
Public Member Functions | |
DfsDB (const std::string &filename) | |
bool | Exists (const HexState &pos) const |
Returns true if position exists in database. | |
bool | Get (const HexState &pos, DfsData &data) const |
Returns true if get is successful. | |
bool | Put (const HexState &brd, const DfsData &data) |
Returns true if put is successful. | |
void | Flush () |
Statistics | GetStatistics () const |
std::string | BDBStatistics () |
Static Public Attributes | |
static const std::string | DFS_DB_VERSION |
Current version of dfs database. |
Database for use in DfsSolver.
Definition at line 28 of file DfsSolver.hpp.
DfsDB::DfsDB | ( | const std::string & | filename | ) | [inline] |
Definition at line 33 of file DfsSolver.hpp.
Returns true if position exists in database.
Returns true if get is successful.
Returns true if put is successful.
const std::string DfsDB::DFS_DB_VERSION [static] |
Current version of dfs database.
Update this if DfsData is changes to prevent old out-of-data databases from being loaded.
Definition at line 31 of file DfsSolver.hpp.