Children of a dfpn state. More...
#include <DfpnSolver.hpp>
Public Member Functions | |
DfpnChildren () | |
void | SetChildren (const std::vector< HexPoint > &children) |
std::size_t | Size () const |
HexPoint | FirstMove (int index) const |
void | PlayMove (int index, HexState &state) const |
void | UndoMove (int index, HexState &state) const |
Private Attributes | |
std::vector< HexPoint > | m_children |
Friends | |
class | DfpnData |
class | DfpnSolver |
Children of a dfpn state.
Definition at line 160 of file DfpnSolver.hpp.
DfpnChildren::DfpnChildren | ( | ) |
Definition at line 49 of file DfpnSolver.cpp.
HexPoint DfpnChildren::FirstMove | ( | int | index | ) | const [inline] |
Definition at line 187 of file DfpnSolver.hpp.
References m_children.
Referenced by DfpnSolver::GuiFx::DoWrite(), DfpnSolver::MID(), and PerfectPlayer::Search().
void DfpnChildren::PlayMove | ( | int | index, | |
HexState & | state | |||
) | const |
Definition at line 58 of file DfpnSolver.cpp.
References m_children, and HexState::PlayMove().
Referenced by DfpnSolver::LookupData(), DfpnSolver::MID(), and PerfectPlayer::Search().
void DfpnChildren::SetChildren | ( | const std::vector< HexPoint > & | children | ) |
Definition at line 53 of file DfpnSolver.cpp.
References m_children.
Referenced by DfpnSolver::MID(), and DfpnData::Unpack().
std::size_t DfpnChildren::Size | ( | ) | const [inline] |
Definition at line 182 of file DfpnSolver.hpp.
References m_children.
Referenced by DfpnSolver::DeleteChildren(), DfpnSolver::GuiFx::DoWrite(), DfpnSolver::MID(), DfpnData::PackedSize(), DfpnData::Print(), DfpnSolver::PropagateBackwards(), and PerfectPlayer::Search().
void DfpnChildren::UndoMove | ( | int | index, | |
HexState & | state | |||
) | const |
Definition at line 63 of file DfpnSolver.cpp.
References m_children, and HexState::UndoMove().
Referenced by DfpnSolver::LookupData(), DfpnSolver::MID(), and PerfectPlayer::Search().
friend class DfpnData [friend] |
Definition at line 176 of file DfpnSolver.hpp.
friend class DfpnSolver [friend] |
Definition at line 177 of file DfpnSolver.hpp.
std::vector<HexPoint> DfpnChildren::m_children [private] |
Definition at line 179 of file DfpnSolver.hpp.
Referenced by DfpnSolver::DeleteChildren(), FirstMove(), DfpnSolver::MID(), DfpnData::Pack(), PlayMove(), DfpnData::Rotate(), SetChildren(), Size(), and UndoMove().