All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
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]

List of all members.

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

Protected Member Functions

 PiecePairTable ()
 ~PiecePairTable ()

Protected Attributes

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

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 ( ) [inline, protected]

Definition at line 31 of file piecePairTable.h.

template<class T>
osl::eval::ppair::PiecePairTable< T >::~PiecePairTable ( ) [inline, protected]

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 [mutable, protected]

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines