A book is just a database of BookNodes. More...
#include <Book.hpp>
Public Member Functions | |
| Book (const std::string &filename) | |
| bool | Exists (const HexState &pos) const |
| Returns true if position exists in database. | |
| bool | Get (const HexState &pos, HexBookNode &data) const |
| Returns true if get is successful. | |
| bool | Put (const HexState &brd, const HexBookNode &data) |
| Returns true if put is successful. | |
| void | Flush () |
| Statistics | GetStatistics () const |
| std::string | BDBStatistics () |
Static Public Attributes | |
| static const std::string | BOOK_DB_VERSION = "BENZENE_BOOK_VER_0001" |
| Current version for book databases. | |
A book is just a database of BookNodes.
Definition at line 85 of file Book.hpp.
| std::string StateDB< HexBookNode >::BDBStatistics | ( | ) | [inherited] |
| bool StateDB< HexBookNode >::Exists | ( | const HexState & | pos | ) | const [inherited] |
Returns true if position exists in database.
| void StateDB< HexBookNode >::Flush | ( | ) | [inherited] |
| bool StateDB< HexBookNode >::Get | ( | const HexState & | pos, | |
| HexBookNode & | data | |||
| ) | const [inherited] |
Returns true if get is successful.
| Statistics StateDB< HexBookNode >::GetStatistics | ( | ) | const [inherited] |
| bool StateDB< HexBookNode >::Put | ( | const HexState & | brd, | |
| const HexBookNode & | data | |||
| ) | [inherited] |
Returns true if put is successful.
const std::string Book::BOOK_DB_VERSION = "BENZENE_BOOK_VER_0001" [static] |