My Project
Public Member Functions | Public Attributes | List of all members
osl::checkmate::Dfpn::Node Struct Reference
Inheritance diagram for osl::checkmate::Dfpn::Node:
osl::checkmate::Dfpn::NodeBase

Public Member Functions

const PieceStand nextWhiteStand (Player P, Move move) const
 
void clear ()
 
void allocate (int n)
 
void setLoopDetection ()
 
const PathEncoding newPath (int c) const
 
bool isLoop (int c) const
 
void setCheckmateAttack (Player attack, int best_i)
 
void setNoCheckmateDefense (Player attack, int best_i)
 
void setCheckmateDefense (Player attack, const NumEffectState &state)
 
void setNoCheckmateAttack (Player attack, const NumEffectState &state)
 
void setCheckmateChildInDefense (size_t i)
 
void setNoCheckmateChildInAttack (size_t i)
 

Public Attributes

DfpnMoveVector moves
 
FixedCapacityVector< DfpnRecord, DfpnMaxUniqMoveschildren
 
FixedCapacityVector< const DfpnPathRecord *, DfpnMaxUniqMoveschildren_path
 
CArray< HashKey, DfpnMaxUniqMoveshashes
 
FixedCapacityVector< int8_t, DfpnMaxUniqMovesproof_cost
 
size_t visit_time
 
- Public Attributes inherited from osl::checkmate::Dfpn::NodeBase
HashKey hash_key
 
PathEncoding path
 
ProofDisproof threshold
 
Move moved
 
PieceStand white_stand
 
DfpnRecord record
 
DfpnPathRecordpath_record
 

Detailed Description

Definition at line 349 of file dfpn.cc.

Member Function Documentation

◆ allocate()

void osl::checkmate::Dfpn::Node::allocate ( int  n)
inline

◆ clear()

void osl::checkmate::Dfpn::Node::clear ( )
inline

◆ isLoop()

bool osl::checkmate::Dfpn::Node::isLoop ( int  c) const
inline

◆ newPath()

const PathEncoding osl::checkmate::Dfpn::Node::newPath ( int  c) const
inline

Definition at line 385 of file dfpn.cc.

References moves, osl::checkmate::Dfpn::NodeBase::path, and osl::PathEncoding::pushMove().

Referenced by isLoop().

◆ nextWhiteStand()

const PieceStand osl::checkmate::Dfpn::Node::nextWhiteStand ( Player  P,
Move  move 
) const
inline

◆ setCheckmateAttack()

void osl::checkmate::Dfpn::Node::setCheckmateAttack ( Player  attack,
int  best_i 
)
inline

◆ setCheckmateChildInDefense()

void osl::checkmate::Dfpn::Node::setCheckmateChildInDefense ( size_t  i)
inline

◆ setCheckmateDefense()

void osl::checkmate::Dfpn::Node::setCheckmateDefense ( Player  attack,
const NumEffectState state 
)
inline

◆ setLoopDetection()

void osl::checkmate::Dfpn::Node::setLoopDetection ( )
inline

◆ setNoCheckmateAttack()

void osl::checkmate::Dfpn::Node::setNoCheckmateAttack ( Player  attack,
const NumEffectState state 
)
inline

◆ setNoCheckmateChildInAttack()

void osl::checkmate::Dfpn::Node::setNoCheckmateChildInAttack ( size_t  i)
inline

◆ setNoCheckmateDefense()

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

Member Data Documentation

◆ children

FixedCapacityVector<DfpnRecord,DfpnMaxUniqMoves> osl::checkmate::Dfpn::Node::children

◆ children_path

FixedCapacityVector<const DfpnPathRecord*,DfpnMaxUniqMoves> osl::checkmate::Dfpn::Node::children_path

◆ hashes

CArray<HashKey,DfpnMaxUniqMoves> osl::checkmate::Dfpn::Node::hashes

◆ moves

DfpnMoveVector osl::checkmate::Dfpn::Node::moves

◆ proof_cost

FixedCapacityVector<int8_t,DfpnMaxUniqMoves> osl::checkmate::Dfpn::Node::proof_cost

Definition at line 355 of file dfpn.cc.

Referenced by allocate(), osl::checkmate::Dfpn::attack(), and clear().

◆ visit_time

size_t osl::checkmate::Dfpn::Node::visit_time

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