Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SolverDB< HASH, DB, DATA > Class Template Reference

Combines a hash table and a position database. More...

#include <SolverDB.hpp>

List of all members.

Public Member Functions

 SolverDB (boost::scoped_ptr< HASH > &hashTable, boost::scoped_ptr< DB > &database, const SolverDBParameters &param)
 ~SolverDB ()
bool Get (const HexState &state, DATA &data)
void Put (const HexState &state, const DATA &data)
HASH * HashTable ()
DB * Database ()
const SolverDBParametersParameters () const
SolverDBParametersParameters ()
void SetParameters (const SolverDBParameters &param)

Private Member Functions

bool UseDatabase () const
bool UseHashTable () const

Private Attributes

boost::scoped_ptr< HASH > & m_hashTable
boost::scoped_ptr< DB > & m_database
SolverDBParameters m_param

Detailed Description

template<class HASH, class DB, class DATA>
class SolverDB< HASH, DB, DATA >

Combines a hash table and a position database.

Definition at line 46 of file SolverDB.hpp.


Constructor & Destructor Documentation

template<class HASH, class DB, class DATA >
SolverDB< HASH, DB, DATA >::SolverDB ( boost::scoped_ptr< HASH > &  hashTable,
boost::scoped_ptr< DB > &  database,
const SolverDBParameters param 
) [inline]

Definition at line 85 of file SolverDB.hpp.

template<class HASH , class DB , class DATA >
SolverDB< HASH, DB, DATA >::~SolverDB (  )  [inline]

Definition at line 95 of file SolverDB.hpp.


Member Function Documentation

template<class HASH , class DB , class DATA >
DB * SolverDB< HASH, DB, DATA >::Database (  )  [inline]
template<class HASH , class DB , class DATA>
bool SolverDB< HASH, DB, DATA >::Get ( const HexState state,
DATA &  data 
) [inline]
template<class HASH , class DB , class DATA >
HASH * SolverDB< HASH, DB, DATA >::HashTable (  )  [inline]
template<class HASH , class DB , class DATA >
SolverDBParameters & SolverDB< HASH, DB, DATA >::Parameters (  )  [inline]

Definition at line 119 of file SolverDB.hpp.

References SolverDB< HASH, DB, DATA >::m_param.

template<class HASH , class DB , class DATA >
const SolverDBParameters & SolverDB< HASH, DB, DATA >::Parameters (  )  const [inline]
template<class HASH , class DB , class DATA>
void SolverDB< HASH, DB, DATA >::Put ( const HexState state,
const DATA &  data 
) [inline]
template<class HASH , class DB , class DATA >
void SolverDB< HASH, DB, DATA >::SetParameters ( const SolverDBParameters param  )  [inline]

Definition at line 125 of file SolverDB.hpp.

References SolverDB< HASH, DB, DATA >::m_param.

template<class HASH , class DB , class DATA >
bool SolverDB< HASH, DB, DATA >::UseDatabase (  )  const [inline, private]
template<class HASH , class DB , class DATA >
bool SolverDB< HASH, DB, DATA >::UseHashTable (  )  const [inline, private]

Member Data Documentation

template<class HASH, class DB, class DATA>
boost::scoped_ptr<DB>& SolverDB< HASH, DB, DATA >::m_database [private]
template<class HASH, class DB, class DATA>
boost::scoped_ptr<HASH>& SolverDB< HASH, DB, DATA >::m_hashTable [private]
template<class HASH, class DB, class DATA>
SolverDBParameters SolverDB< HASH, DB, DATA >::m_param [private]

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


6 Jan 2011 Doxygen 1.6.3