駒の関係毎の評価値を格納した表. More...
#include <piecePairTable.h>


Public Types | |
| typedef T | value_type |
Public Member Functions | |
| int | value (unsigned int i) const |
| value_type & | valueOf (unsigned int i1, unsigned int i2) |
| value_type & | valueOf (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, maxPairIndex > | values |
| 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 |
駒の関係毎の評価値を格納した表.
[Square*(Player*Ptype==PtypeO)] ^2
| T | signed な char, int などが想定されている |
Definition at line 21 of file piecePairTable.h.
| typedef T osl::eval::ppair::PiecePairTable< T >::value_type |
Definition at line 24 of file piecePairTable.h.
|
inlineprotected |
Definition at line 31 of file piecePairTable.h.
|
inlineprotected |
Definition at line 32 of file piecePairTable.h.
|
inline |
Definition at line 34 of file piecePairTable.h.
|
inline |
Definition at line 38 of file piecePairTable.h.
|
inline |
Definition at line 43 of file piecePairTable.h.
|
inline |
Definition at line 48 of file piecePairTable.h.
|
inline |
Definition at line 53 of file piecePairTable.h.
|
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().
1.8.4