State in hashtable. More...
#include <DfpnSolver.hpp>
Public Member Functions | |
| DfpnData () | |
| DfpnData (const DfpnBounds &bounds, const DfpnChildren &children, HexPoint bestMove, size_t work, bitset_t maxProofSet, float evaluationScore) | |
| ~DfpnData () | |
| std::string | Print () const |
TransTableStateConcept | |
| bool | Initialized () const |
| bool | ReplaceWith (const DfpnData &data) const |
PositionDBStateConcept | |
| int | PackedSize () const |
| byte * | Pack () const |
| void | Unpack (const byte *data) |
| void | Rotate (const ConstBoard &brd) |
Public Attributes | |
| DfpnBounds | m_bounds |
| DfpnChildren | m_children |
| HexPoint | m_bestMove |
| size_t | m_work |
| bitset_t | m_maxProofSet |
| float | m_evaluationScore |
Private Attributes | |
| bool | m_initialized |
State in hashtable.
Do not forget to update DFPN_DB_VERSION if this class changes in a way that invalidiates old databases.
Definition at line 199 of file DfpnSolver.hpp.
| DfpnData::DfpnData | ( | ) | [inline] |
Definition at line 253 of file DfpnSolver.hpp.
| DfpnData::DfpnData | ( | const DfpnBounds & | bounds, | |
| const DfpnChildren & | children, | |||
| HexPoint | bestMove, | |||
| size_t | work, | |||
| bitset_t | maxProofSet, | |||
| float | evaluationScore | |||
| ) | [inline] |
Definition at line 258 of file DfpnSolver.hpp.
| DfpnData::~DfpnData | ( | ) | [inline] |
Definition at line 272 of file DfpnSolver.hpp.
| bool DfpnData::Initialized | ( | ) | const [inline] |
Definition at line 296 of file DfpnSolver.hpp.
References m_initialized.
| byte * DfpnData::Pack | ( | ) | const |
Definition at line 182 of file DfpnSolver.cpp.
References byte, INVALID_POINT, m_bestMove, m_bounds, DfpnChildren::m_children, m_children, m_evaluationScore, m_maxProofSet, m_work, and PackedSize().
| int DfpnData::PackedSize | ( | ) | const |
Definition at line 172 of file DfpnSolver.cpp.
References m_bestMove, m_bounds, m_children, m_evaluationScore, m_maxProofSet, m_work, and DfpnChildren::Size().
Referenced by Pack().
| std::string DfpnData::Print | ( | ) | const [inline] |
Definition at line 276 of file DfpnSolver.hpp.
References m_bestMove, m_bounds, m_children, m_evaluationScore, m_work, and DfpnChildren::Size().
Referenced by operator<<().
| bool DfpnData::ReplaceWith | ( | const DfpnData & | data | ) | const [inline] |
Definition at line 290 of file DfpnSolver.hpp.
| void DfpnData::Rotate | ( | const ConstBoard & | brd | ) |
Definition at line 234 of file DfpnSolver.cpp.
References INVALID_POINT, m_bestMove, DfpnChildren::m_children, m_children, m_maxProofSet, and BoardUtils::Rotate().
| void DfpnData::Unpack | ( | const byte * | data | ) |
Definition at line 209 of file DfpnSolver.cpp.
References INVALID_POINT, m_bestMove, m_bounds, m_children, m_evaluationScore, m_maxProofSet, m_work, and DfpnChildren::SetChildren().
Definition at line 207 of file DfpnSolver.hpp.
Referenced by Pack(), PackedSize(), Print(), Rotate(), and Unpack().
Definition at line 203 of file DfpnSolver.hpp.
Referenced by DfpnCommands::CmdGetBounds(), DfpnSolver::LookupData(), DfpnSolver::MID(), Pack(), PackedSize(), Print(), DfpnSolver::PropagateBackwards(), PerfectPlayer::Search(), DfpnSolver::StartSearch(), DfpnSolver::TTWrite(), and Unpack().
Definition at line 205 of file DfpnSolver.hpp.
Referenced by DfpnSolver::MID(), Pack(), PackedSize(), Print(), DfpnSolver::PropagateBackwards(), Rotate(), PerfectPlayer::Search(), and Unpack().
Definition at line 213 of file DfpnSolver.hpp.
Referenced by DfpnSolver::MID(), Pack(), PackedSize(), Print(), and Unpack().
bool DfpnData::m_initialized [private] |
Definition at line 249 of file DfpnSolver.hpp.
Referenced by Initialized().
Definition at line 211 of file DfpnSolver.hpp.
Referenced by DfpnSolver::MID(), Pack(), PackedSize(), Rotate(), and Unpack().
| size_t DfpnData::m_work |
Definition at line 209 of file DfpnSolver.hpp.
Referenced by DfpnCommands::CmdGetWork(), DfpnSolver::LookupData(), DfpnSolver::MID(), Pack(), PackedSize(), Print(), PerfectPlayer::Search(), and Unpack().