My Project
Public Types | Static Public Member Functions | Static Private Member Functions | Static Private Attributes | Friends | List of all members
osl::eval::ml::BishopHead Class Reference

#include <majorPiece.h>

Public Types

enum  { ONE_DIM = 32 , DIM = ONE_DIM * EvalStages }
 

Static Public Member Functions

static void setUp (const Weights &weights)
 
static MultiInt eval (const NumEffectState &state)
 

Static Private Member Functions

static int indexK (Player player, PtypeO ptypeO, int x_diff, int y_diff)
 
template<Player P>
static int indexX (PtypeO ptypeO, int x)
 

Static Private Attributes

static CArray< MultiInt, 32 > table
 
static CArray< MultiInt, 4896 > king_table
 
static CArray< MultiInt, 160 > x_table
 

Friends

class BishopHeadKingRelative
 
class BishopHeadX
 

Detailed Description

Definition at line 426 of file majorPiece.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ONE_DIM 
DIM 

Definition at line 431 of file majorPiece.h.

Member Function Documentation

◆ eval()

MultiInt osl::eval::ml::BishopHead::eval ( const NumEffectState state)
static

◆ indexK()

static int osl::eval::ml::BishopHead::indexK ( Player  player,
PtypeO  ptypeO,
int  x_diff,
int  y_diff 
)
inlinestaticprivate

Definition at line 435 of file majorPiece.h.

References osl::ptypeOIndex(), and osl::WHITE.

◆ indexX()

template<Player P>
static int osl::eval::ml::BishopHead::indexX ( PtypeO  ptypeO,
int  x 
)
inlinestaticprivate

Definition at line 448 of file majorPiece.h.

References osl::altIfPiece(), osl::ptypeOIndex(), and osl::WHITE.

◆ setUp()

void osl::eval::ml::BishopHead::setUp ( const Weights weights)
static

Definition at line 664 of file majorPiece.cc.

References osl::NStages, and osl::eval::ml::Weights::value().

Friends And Related Symbol Documentation

◆ BishopHeadKingRelative

friend class BishopHeadKingRelative
friend

Definition at line 428 of file majorPiece.h.

◆ BishopHeadX

friend class BishopHeadX
friend

Definition at line 429 of file majorPiece.h.

Member Data Documentation

◆ king_table

osl::CArray< MultiInt, 4896 > osl::eval::ml::BishopHead::king_table
staticprivate

Definition at line 461 of file majorPiece.h.

Referenced by osl::eval::ml::BishopHeadKingRelative::setUp().

◆ table

osl::CArray< MultiInt, 32 > osl::eval::ml::BishopHead::table
staticprivate

Definition at line 460 of file majorPiece.h.

Referenced by osl::eval::ml::BishopHeadKingRelative::setUp().

◆ x_table

osl::CArray< MultiInt, 160 > osl::eval::ml::BishopHead::x_table
staticprivate

Definition at line 462 of file majorPiece.h.

Referenced by osl::eval::ml::BishopHeadX::setUp().


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