Public メソッド | Static Public 変数 | Private 型 | Private メソッド | Private 変数

クラス テンプレート osl::Offset32Base< Width, Width2 >

差が uniqになるような座標の差分. [詳細]

#include <offset32.h>

すべてのメンバ一覧

Public メソッド

 Offset32Base (Square to, Square from)
 Offset32Base (int dx, int dy)
unsigned int index () const
bool isValid () const
template<Player P>
const Offset32Base blackOffset32 () const
 Player P からみた offset を黒番のものに変更する.
const Offset32Base operator- () const

Static Public 変数

static const unsigned int SIZE = (MAX-MIN+1)

Private 型

enum  { MIN = -(Width*32+Width), MAX = (Width*32+Width) }

Private メソッド

 Offset32Base (int o)
int dx (Offset32Base offset32)
int dy (Offset32Base offset32)

Private 変数

int offset32

説明

template<int Width, int Width2>
class osl::Offset32Base< Width, Width2 >

差が uniqになるような座標の差分.

x*32+y同士の差を取る ちょっとだけ溢れても良い

offset32.h16 行で定義されています。


列挙型

template<int Width, int Width2>
anonymous enum [private]
列挙型の値:
MIN 
MAX 

offset32.h18 行で定義されています。


コンストラクタとデストラクタ

template<int Width, int Width2>
osl::Offset32Base< Width, Width2 >::Offset32Base ( int  o  )  [inline, explicit, private]
template<int Width, int Width2>
osl::Offset32Base< Width, Width2 >::Offset32Base ( Square  to,
Square  from 
) [inline]
template<int Width, int Width2>
osl::Offset32Base< Width, Width2 >::Offset32Base ( int  dx,
int  dy 
) [inline]

offset32.h37 行で定義されています。


関数

template<int Width, int Width2>
template<Player P>
const Offset32Base osl::Offset32Base< Width, Width2 >::blackOffset32 (  )  const [inline]

Player P からみた offset を黒番のものに変更する.

offset32.h52 行で定義されています。

参照先 osl::BLACK, osl::Offset32Base< Width, Width2 >::offset32, と osl::Offset32Base< Width, Width2 >::Offset32Base().

参照元 osl::BoardTable::getLongDirection().

template<int Width, int Width2>
int osl::Offset32Base< Width, Width2 >::dx ( Offset32Base< Width, Width2 >  offset32  )  [private]
template<int Width, int Width2>
int osl::Offset32Base< Width, Width2 >::dy ( Offset32Base< Width, Width2 >  offset32  )  [private]
template<int Width, int Width2>
unsigned int osl::Offset32Base< Width, Width2 >::index (  )  const [inline]
template<int Width, int Width2>
bool osl::Offset32Base< Width, Width2 >::isValid (  )  const [inline]
template<int Width, int Width2>
const Offset32Base osl::Offset32Base< Width, Width2 >::operator- (  )  const [inline]

変数

template<int Width, int Width2>
int osl::Offset32Base< Width, Width2 >::offset32 [private]
template<int Width, int Width2>
const unsigned int osl::Offset32Base< Width, Width2 >::SIZE = (MAX-MIN+1) [static]

offset32.h23 行で定義されています。


このクラスの説明は次のファイルから生成されました:
 全て クラス ネームスペース ファイル 関数 変数 型定義 列挙型 列挙型の値 フレンド マクロ定義