All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | List of all members
osl::search::StandElements Struct Reference

Moveを分解した差分要素のうち持駒の増減のみを管理する. 相手の持ち駒が増えたか,損得なしかを高速に判定できる. More...

#include <moveStackRejections.h>

Collaboration diagram for osl::search::StandElements:
Collaboration graph
[legend]

Public Member Functions

 StandElements ()
 
void add (Ptype ptype)
 altPにとって増える More...
 
void sub (Ptype ptype)
 altPにとって減る More...
 
bool isZero () const
 
bool gtZero () const
 
bool geZero () const
 

Public Attributes

union {
   CArray< char, 8 >   c8
 
   unsigned long long   l8
 
v
 

Detailed Description

Moveを分解した差分要素のうち持駒の増減のみを管理する. 相手の持ち駒が増えたか,損得なしかを高速に判定できる.

Definition at line 39 of file moveStackRejections.h.

Constructor & Destructor Documentation

osl::search::StandElements::StandElements ( )
inline

Definition at line 44 of file moveStackRejections.h.

References v.

Member Function Documentation

void osl::search::StandElements::add ( Ptype  ptype)
inline

altPにとって増える

Definition at line 48 of file moveStackRejections.h.

References osl::PTYPE_BASIC_MIN, and v.

Referenced by osl::search::StateElements::canReject().

bool osl::search::StandElements::geZero ( ) const
inline
bool osl::search::StandElements::gtZero ( ) const
inline

Definition at line 62 of file moveStackRejections.h.

References geZero(), and isZero().

bool osl::search::StandElements::isZero ( ) const
inline
void osl::search::StandElements::sub ( Ptype  ptype)
inline

altPにとって減る

Definition at line 55 of file moveStackRejections.h.

References osl::PTYPE_BASIC_MIN, and v.

Referenced by osl::search::StateElements::canReject().

Member Data Documentation

CArray<char,8> osl::search::StandElements::c8

Definition at line 41 of file moveStackRejections.h.

Referenced by osl::search::operator<<().

unsigned long long osl::search::StandElements::l8

Definition at line 42 of file moveStackRejections.h.

union { ... } osl::search::StandElements::v

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