All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | List of all members
osl::checkmate::Dfpn::Tree Struct Reference
Collaboration diagram for osl::checkmate::Dfpn::Tree:
Collaboration graph
[legend]

Public Member Functions

 Tree (int max_depth)
 
bool inCheck (Player P) const
 
const Piece king (Player P) const
 
void newVisit (Player P, Move move, const HashKey &next_hash)
 
void setNoCheckmateChildInAttack (size_t best_i)
 
void setNoCheckmateDefense (Player attack, int best_i)
 
void dump (int lines, int depth=0) const
 

Public Attributes

NumEffectState state
 
int depth
 
boost::scoped_array< Nodenode
 
const int MaxDepth
 

Detailed Description

Definition at line 485 of file dfpn.cc.

Constructor & Destructor Documentation

osl::checkmate::Dfpn::Tree::Tree ( int  max_depth)
inline

Definition at line 499 of file dfpn.cc.

References max_depth.

Member Function Documentation

void osl::checkmate::Dfpn::Tree::dump ( int  lines,
int  depth = 0 
) const
inline
bool osl::checkmate::Dfpn::Tree::inCheck ( Player  P) const
inline

Definition at line 516 of file dfpn.cc.

const Piece osl::checkmate::Dfpn::Tree::king ( Player  P) const
inline

Definition at line 520 of file dfpn.cc.

void osl::checkmate::Dfpn::Tree::newVisit ( Player  P,
Move  move,
const HashKey &  next_hash 
)
inline

Definition at line 521 of file dfpn.cc.

References depth, osl::checkmate::Dfpn::NodeBase::moved, and osl::Move::player().

void osl::checkmate::Dfpn::Tree::setNoCheckmateChildInAttack ( size_t  best_i)
inline

Definition at line 533 of file dfpn.cc.

References depth, and osl::checkmate::Dfpn::Node::setNoCheckmateChildInAttack().

void osl::checkmate::Dfpn::Tree::setNoCheckmateDefense ( Player  attack,
int  best_i 
)
inline

Definition at line 538 of file dfpn.cc.

References depth, and osl::checkmate::Dfpn::Node::setNoCheckmateDefense().

Member Data Documentation

int osl::checkmate::Dfpn::Tree::depth

Definition at line 491 of file dfpn.cc.

const int osl::checkmate::Dfpn::Tree::MaxDepth

Definition at line 498 of file dfpn.cc.

boost::scoped_array<Node> osl::checkmate::Dfpn::Tree::node

Definition at line 496 of file dfpn.cc.

NumEffectState osl::checkmate::Dfpn::Tree::state

Definition at line 490 of file dfpn.cc.

Referenced by dump().


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