All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
osl::eval::ppair::PiecePairTable< T > Class Template Reference

駒の関係毎の評価値を格納した表. More...

#include <piecePairTable.h>

Inheritance diagram for osl::eval::ppair::PiecePairTable< T >:
Inheritance graph
[legend]
Collaboration diagram for osl::eval::ppair::PiecePairTable< T >:
Collaboration graph
[legend]

Public Types

typedef T value_type
 

Public Member Functions

int value (unsigned int i) const
 
value_typevalueOf (unsigned int i1, unsigned int i2)
 
value_typevalueOf (Piece p1, Piece p2)
 
int valueOf (unsigned int i1, unsigned int i2) const
 
int valueOf (Piece p1, Piece p2) const
 
- Public Member Functions inherited from osl::eval::ppair::PiecePairIndex
template<class F >
void forEachRelation (F f)
 

Protected Member Functions

 PiecePairTable ()
 
 ~PiecePairTable ()
 

Protected Attributes

CArray< value_type, maxPairIndexvalues
 const object に対して,データの変更は不可,読み込みは許可するために mutable にする. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from osl::eval::ppair::PiecePairIndex
static unsigned int selfIndexOf (unsigned int i)
 
static unsigned int indexOf (unsigned int i1, unsigned int i2)
 
static unsigned int canonicalIndexOf (unsigned int i1, unsigned int i2)
 
static void meltIndex (size_t index, size_t &i1, size_t &i2)
 逆変換 More...
 
static unsigned int positionIndexOf (Square pos)
 
static unsigned int ptypeOIndexOf (PtypeO ptypeo)
 
static unsigned int indexOf (Square pos, PtypeO ptypeo)
 
static void meltIndex (size_t index, Square &pos, PtypeO &ptypeo)
 逆変換 More...
 
static unsigned int indexOf (Piece piece)
 
static unsigned int indexOf (Piece p1, Piece p2)
 
static unsigned int indexOfPieceNum (const SimpleState &s, int id)
 
template<class F >
static void forEachRelation (F f)
 全ての関係についてfを実行する.重複する関係は訪れない More...
 
- Static Public Attributes inherited from osl::eval::ppair::PiecePairIndex
static const unsigned int maxSquareIndex = 82
 
static const unsigned int maxPtypeOIndex = PTYPEO_SIZE
 
static const unsigned int maxPieceIndex = maxSquareIndex*maxPtypeOIndex
 
static const unsigned int maxPairIndex = maxPieceIndex*maxPieceIndex
 

Detailed Description

template<class T>
class osl::eval::ppair::PiecePairTable< T >

駒の関係毎の評価値を格納した表.

[Square*(Player*Ptype==PtypeO)] ^2

Parameters
Tsigned な char, int などが想定されている

Definition at line 21 of file piecePairTable.h.

Member Typedef Documentation

template<class T>
typedef T osl::eval::ppair::PiecePairTable< T >::value_type

Definition at line 24 of file piecePairTable.h.

Constructor & Destructor Documentation

template<class T>
osl::eval::ppair::PiecePairTable< T >::PiecePairTable ( )
inlineprotected

Definition at line 31 of file piecePairTable.h.

template<class T>
osl::eval::ppair::PiecePairTable< T >::~PiecePairTable ( )
inlineprotected

Definition at line 32 of file piecePairTable.h.

Member Function Documentation

template<class T>
int osl::eval::ppair::PiecePairTable< T >::value ( unsigned int  i) const
inline

Definition at line 34 of file piecePairTable.h.

template<class T>
value_type& osl::eval::ppair::PiecePairTable< T >::valueOf ( unsigned int  i1,
unsigned int  i2 
)
inline

Definition at line 38 of file piecePairTable.h.

template<class T>
value_type& osl::eval::ppair::PiecePairTable< T >::valueOf ( Piece  p1,
Piece  p2 
)
inline

Definition at line 43 of file piecePairTable.h.

template<class T>
int osl::eval::ppair::PiecePairTable< T >::valueOf ( unsigned int  i1,
unsigned int  i2 
) const
inline

Definition at line 48 of file piecePairTable.h.

template<class T>
int osl::eval::ppair::PiecePairTable< T >::valueOf ( Piece  p1,
Piece  p2 
) const
inline

Definition at line 53 of file piecePairTable.h.

Member Data Documentation

template<class T>
CArray<value_type, maxPairIndex> osl::eval::ppair::PiecePairTable< T >::values
mutableprotected

const object に対して,データの変更は不可,読み込みは許可するために mutable にする.

Definition at line 30 of file piecePairTable.h.

Referenced by osl::eval::ppair::PiecePairTable< signed char >::PiecePairTable(), osl::eval::ppair::PiecePairTable< signed char >::value(), and osl::eval::ppair::PiecePairTable< signed char >::valueOf().


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