Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

DfsDB Class Reference

Database for use in DfsSolver. More...

#include <DfsSolver.hpp>

Inheritance diagram for DfsDB:
StateDB< DfsData >

List of all members.

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.

Detailed Description

Database for use in DfsSolver.

Definition at line 28 of file DfsSolver.hpp.


Constructor & Destructor Documentation

DfsDB::DfsDB ( const std::string &  filename  )  [inline]

Definition at line 33 of file DfsSolver.hpp.


Member Function Documentation

std::string StateDB< DfsData >::BDBStatistics (  )  [inherited]
bool StateDB< DfsData >::Exists ( const HexState pos  )  const [inherited]

Returns true if position exists in database.

void StateDB< DfsData >::Flush (  )  [inherited]
bool StateDB< DfsData >::Get ( const HexState pos,
DfsData data 
) const [inherited]

Returns true if get is successful.

Statistics StateDB< DfsData >::GetStatistics (  )  const [inherited]
bool StateDB< DfsData >::Put ( const HexState brd,
const DfsData data 
) [inherited]

Returns true if put is successful.


Member Data Documentation

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.


The documentation for this class was generated from the following files:


6 Jan 2011 Doxygen 1.6.3