クラス osl::container::NearMask

ޥ10˵(8˵+Ϥ)ζ̵ͭɽbitset. [詳細]

#include <nearMask.h>

すべてのメンバ一覧

Public メソッド

 NearMask ()
NearMaskoperator|= (NearMask r)
NearMaskoperator &= (NearMask r)
unsigned int spaceMask () const
bool isSet (int n) const
int takeOneBit ()
 on bit offˤindex֤
bool any () const
unsigned int uintValue () const

Static Public メソッド

static const NearMask makeDirect (unsigned int value)
template<typename State, Player P, Direction Dir>
static const NearMask make (State const &state, Position target)
 ޥ,Ĥ褦Ȥ, 10˵ξ֤֤
template<typename State, Player P>
static const NearMask make (State const &state, Position target)

Private メソッド

 NearMask (unsigned int value)

Private 変数

unsigned int mask


説明

ޥ10˵(8˵+Ϥ)ζ̵ͭɽbitset.

֤¦θ 0-9 bit - Direction(UL=0, .., UUR=9)бޥޤŨλ1 16-25 bit - Direction+16(UL=16, .., UUR=25)бޥλ1 ֤ǡޥ(3,3)ܤƤˡULбޥϡ(4,2)ǤϤʤ (2,4)ؤ(2,4)UḶζ֤(3,3)򹶷Ǥ뤫

nearMask.h21 行で定義されています。


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

osl::container::NearMask::NearMask ( unsigned int  value  )  [inline, explicit, private]

nearMask.h24 行で定義されています。

osl::container::NearMask::NearMask (  )  [inline]

nearMask.h26 行で定義されています。

参照元 make(), と makeDirect().


関数

static const NearMask osl::container::NearMask::makeDirect ( unsigned int  value  )  [inline, static]

nearMask.h27 行で定義されています。

参照先 NearMask().

template<typename State, Player P, Direction Dir>
static const NearMask osl::container::NearMask::make ( State const &  state,
Position  target 
) [inline, static]

ޥ,Ĥ褦Ȥ, 10˵ξ֤֤

引数:
P(template) - ¦Υץ쥤䡼
Dir(template) - θĤΥޥ
state - ̤ɽ
target - Ĥޥ
戻り値:
16ӥå(10ӥå)϶ޤŨλ1,ʳ0 16ӥå(10ӥå) ϶λ1, ʳ0

⤹¦Υޥ

nearMask.h41 行で定義されています。

参照先 osl::Piece::canMoveOn(), osl::Piece::isEmpty(), と NearMask().

template<typename State, Player P>
static const NearMask osl::container::NearMask::make ( State const &  state,
Position  target 
) [inline, static]

10˵ζξ֤å NOTE: Statesignature effectλˤü첽®С ٤

nearMask.h53 行で定義されています。

NearMask& osl::container::NearMask::operator|= ( NearMask  r  )  [inline]

nearMask.h73 行で定義されています。

参照先 mask.

NearMask& osl::container::NearMask::operator &= ( NearMask  r  )  [inline]

nearMask.h74 行で定義されています。

参照先 mask.

unsigned int osl::container::NearMask::spaceMask (  )  const [inline]

nearMask.h76 行で定義されています。

参照先 mask.

bool osl::container::NearMask::isSet ( int  n  )  const [inline]

nearMask.h77 行で定義されています。

参照先 mask.

int osl::container::NearMask::takeOneBit (  )  [inline]

on bit offˤindex֤

nearMask.h84 行で定義されています。

参照先 mask, と osl::misc::BitOp::takeOneBit().

bool osl::container::NearMask::any (  )  const [inline]

nearMask.h88 行で定義されています。

参照先 mask.

unsigned int osl::container::NearMask::uintValue (  )  const [inline]

nearMask.h89 行で定義されています。

参照先 mask.

参照元 osl::container::operator<(), osl::container::operator<<(), と osl::container::operator==().


変数

unsigned int osl::container::NearMask::mask [private]

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

参照元 any(), isSet(), operator &=(), operator|=(), spaceMask(), takeOneBit(), と uintValue().


このクラスの説明は次のファイルから生成されました:

Thu Oct 8 05:01:16 2009に生成されました。  doxygen 1.5.6