My Project
Public Member Functions | Private Attributes | List of all members
osl::PathEncoding Class Reference

#include <pathEncoding.h>

Public Member Functions

 PathEncoding (int d=0)
 
 PathEncoding (Player turn, int d=0)
 
 PathEncoding (const PathEncoding &org, Move m)
 
Player turn () const
 
void pushMove (Move m)
 
void popMove (Move m)
 
unsigned long long getPath () const
 
int getDepth () const
 

Private Attributes

unsigned long long path
 
int depth
 

Detailed Description

Definition at line 39 of file pathEncoding.h.

Constructor & Destructor Documentation

◆ PathEncoding() [1/3]

osl::PathEncoding::PathEncoding ( int  d = 0)
inlineexplicit

Definition at line 44 of file pathEncoding.h.

◆ PathEncoding() [2/3]

osl::PathEncoding::PathEncoding ( Player  turn,
int  d = 0 
)
inlineexplicit

Definition at line 47 of file pathEncoding.h.

◆ PathEncoding() [3/3]

osl::PathEncoding::PathEncoding ( const PathEncoding org,
Move  m 
)
inline

Definition at line 51 of file pathEncoding.h.

References pushMove().

Member Function Documentation

◆ getDepth()

int osl::PathEncoding::getDepth ( ) const
inline

Definition at line 70 of file pathEncoding.h.

References depth.

Referenced by osl::checkmate::Dfpn::attack(), osl::checkmate::Dfpn::defense(), and osl::operator<<().

◆ getPath()

unsigned long long osl::PathEncoding::getPath ( ) const
inline

Definition at line 69 of file pathEncoding.h.

References path.

Referenced by osl::operator<<(), and osl::operator==().

◆ popMove()

void osl::PathEncoding::popMove ( Move  m)
inline

◆ pushMove()

void osl::PathEncoding::pushMove ( Move  m)
inline

◆ turn()

Player osl::PathEncoding::turn ( ) const
inline

Definition at line 56 of file pathEncoding.h.

References osl::BLACK, path, and osl::WHITE.

Referenced by popMove(), and pushMove().

Member Data Documentation

◆ depth

int osl::PathEncoding::depth
private

Definition at line 42 of file pathEncoding.h.

Referenced by getDepth(), popMove(), and pushMove().

◆ path

unsigned long long osl::PathEncoding::path
private

Definition at line 41 of file pathEncoding.h.

Referenced by getPath(), osl::checkmate::Dfpn::Tree::newVisit(), popMove(), pushMove(), and turn().


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