Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

DfpnHistory Class Reference
[Depth-First Proof Number Search]

History of moves played from root state to current state. More...

#include <DfpnSolver.hpp>

List of all members.

Public Member Functions

 DfpnHistory ()
void Push (HexPoint m_move, hash_t hash)
 Adds a new state to the history.
void Pop ()
 Removes last stated added from history.
int Depth () const
 Returns number of moves played so far.
hash_t LastHash () const
 Hash of last state.
HexPoint LastMove () const
 Move played from parent state to bring us to this state.

Private Attributes

std::vector< HexPointm_move
 Move played from state.
std::vector< hash_tm_hash
 Hash of state.

Detailed Description

History of moves played from root state to current state.

Definition at line 313 of file DfpnSolver.hpp.


Constructor & Destructor Documentation

DfpnHistory::DfpnHistory (  )  [inline]

Definition at line 342 of file DfpnSolver.hpp.

References INVALID_POINT, m_hash, and m_move.


Member Function Documentation

int DfpnHistory::Depth (  )  const [inline]

Returns number of moves played so far.

Definition at line 360 of file DfpnSolver.hpp.

References HexAssert, and m_move.

Referenced by DfpnSolver::MID().

hash_t DfpnHistory::LastHash (  )  const [inline]

Hash of last state.

Definition at line 366 of file DfpnSolver.hpp.

References m_hash.

HexPoint DfpnHistory::LastMove (  )  const [inline]

Move played from parent state to bring us to this state.

Definition at line 371 of file DfpnSolver.hpp.

References m_move.

void DfpnHistory::Pop (  )  [inline]

Removes last stated added from history.

Definition at line 354 of file DfpnSolver.hpp.

References m_hash, and m_move.

Referenced by DfpnSolver::MID().

void DfpnHistory::Push ( HexPoint  m_move,
hash_t  hash 
) [inline]

Adds a new state to the history.

Definition at line 348 of file DfpnSolver.hpp.

References m_hash, and m_move.

Referenced by DfpnSolver::MID().


Member Data Documentation

std::vector<hash_t> DfpnHistory::m_hash [private]

Hash of state.

Definition at line 339 of file DfpnSolver.hpp.

Referenced by DfpnHistory(), LastHash(), Pop(), and Push().

std::vector<HexPoint> DfpnHistory::m_move [private]

Move played from state.

Definition at line 336 of file DfpnSolver.hpp.

Referenced by Depth(), DfpnHistory(), LastMove(), Pop(), and Push().


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


6 Jan 2011 Doxygen 1.6.3