My Project
Public Types | Public Member Functions | Static Public Member Functions | List of all members
osl::effect::NumBitmapEffect Class Reference

現在の定義 (2005/3/4以降) More...

#include <numBitmapEffect.h>

Inheritance diagram for osl::effect::NumBitmapEffect:
osl::PieceMask osl::container::PieceMask64

Public Types

enum  Op { Add , Sub }
 

Public Member Functions

 NumBitmapEffect ()
 
int countEffect (Player pl) const
 
template<Op OP>
NumBitmapEffectopEqual (NumBitmapEffect const &rhs)
 
const mask_t selectLong () const
 
bool hasLong () const
 
template<Ptype PTYPE>
const mask_t selectLong () const
 
template<Ptype PTYPE>
bool hasLong () const
 
template<Ptype PTYPE>
bool hasAny () const
 
- Public Member Functions inherited from osl::PieceMask
 PieceMask ()
 
 PieceMask (const PieceMaskBase &base)
 
void setMask (int index, mask_t val)
 
void xorMask (int index, mask_t val)
 
void orMask (int index, mask_t val)
 
bool test (int num) const
 
void set (int num)
 
void flip (int num)
 
void reset (int num)
 
bool any () const
 
const mask_t getMask (int num) const
 
template<Ptype PTYPE>
const mask_t getMask () const
 unpromote(PTYPE) の駒のbit を*含む*mask_tを取り出す
 
template<Ptype PTYPE>
const mask_t selectBit () const
 unpromote(PTYPE) の駒のbit だけ取り出す
 
template<Ptype PTYPE>
void clearBit ()
 unpromote(PTYPE) の駒のbit を消す
 
template<Ptype PTYPE>
void setBit ()
 unpromote(PTYPE) の駒のbit を立てる
 
- Public Member Functions inherited from osl::container::PieceMask64
 PieceMask64 ()
 
 PieceMask64 (misc::Mask64 const &m)
 
const misc::Mask64getMask (int) const
 
void resetAll ()
 
void setAll ()
 
PieceMask64operator^= (const PieceMask64 &o)
 
PieceMask64operator&= (const PieceMask64 &o)
 
PieceMask64operator|= (const PieceMask64 &o)
 
PieceMask64operator-= (const PieceMask64 &o)
 
PieceMask64operator+= (const PieceMask64 &o)
 
bool none () const
 
bool hasMultipleBit () const
 
int countBit2 () const
 bit の数を2まで数える
 
int countBit () const
 
int takeOneBit ()
 

Static Public Member Functions

template<Player P>
static NumBitmapEffect playerEffect ()
 
static NumBitmapEffect playerEffect (Player pl)
 
template<Player P>
static mask_t playerEffectMask ()
 
static mask_t playerEffectMask (Player pl)
 
template<Player P>
static NumBitmapEffect makeEffect (int num)
 
static const mask_t longEffectMask ()
 
static const mask_t makeLongMask (int num)
 
template<Player P>
static NumBitmapEffect makeLongEffect (int num)
 
static NumBitmapEffect makeLongEffect (Player pl, int num)
 
- Static Public Member Functions inherited from osl::PieceMask
static const mask_t numToMask (int num)
 
- Static Public Member Functions inherited from osl::container::PieceMask64
static int numToIndex (int)
 
static int numToOffset (int num)
 

Additional Inherited Members

- Protected Member Functions inherited from osl::container::PieceMask64
misc::Mask64mutableMask (int)
 
- Protected Attributes inherited from osl::container::PieceMask64
Mask64 mask
 

Detailed Description

現在の定義 (2005/3/4以降)

以前の定義 (2004/4/13以降)

以前の定義

Definition at line 28 of file numBitmapEffect.h.

Member Enumeration Documentation

◆ Op

Enumerator
Add 
Sub 

Definition at line 95 of file numBitmapEffect.h.

Constructor & Destructor Documentation

◆ NumBitmapEffect()

osl::effect::NumBitmapEffect::NumBitmapEffect ( )
inline

Definition at line 31 of file numBitmapEffect.h.

References osl::container::PieceMask64::resetAll().

Member Function Documentation

◆ countEffect()

int osl::effect::NumBitmapEffect::countEffect ( Player  pl) const
inline

◆ hasAny()

template<Ptype PTYPE>
bool osl::effect::NumBitmapEffect::hasAny ( ) const
inline

Definition at line 155 of file numBitmapEffect.h.

References osl::PieceMask::getMask().

◆ hasLong() [1/2]

bool osl::effect::NumBitmapEffect::hasLong ( ) const
inline

Definition at line 142 of file numBitmapEffect.h.

References selectLong().

◆ hasLong() [2/2]

template<Ptype PTYPE>
bool osl::effect::NumBitmapEffect::hasLong ( ) const
inline

Definition at line 151 of file numBitmapEffect.h.

◆ longEffectMask()

static const mask_t osl::effect::NumBitmapEffect::longEffectMask ( )
inlinestatic

Definition at line 107 of file numBitmapEffect.h.

Referenced by osl::NumEffectState::hasEffectInDirection(), and selectLong().

◆ makeEffect()

template<Player P>
static NumBitmapEffect osl::effect::NumBitmapEffect::makeEffect ( int  num)
inlinestatic

Definition at line 90 of file numBitmapEffect.h.

References osl::PieceMask::flip().

◆ makeLongEffect() [1/2]

template<Player P>
static NumBitmapEffect osl::effect::NumBitmapEffect::makeLongEffect ( int  num)
inlinestatic

Definition at line 124 of file numBitmapEffect.h.

References makeLongMask(), and osl::PieceMask::orMask().

◆ makeLongEffect() [2/2]

static NumBitmapEffect osl::effect::NumBitmapEffect::makeLongEffect ( Player  pl,
int  num 
)
inlinestatic

Definition at line 130 of file numBitmapEffect.h.

References makeLongMask(), osl::PieceMask::orMask(), and playerEffect().

◆ makeLongMask()

static const mask_t osl::effect::NumBitmapEffect::makeLongMask ( int  num)
inlinestatic

Definition at line 119 of file numBitmapEffect.h.

References osl::container::PieceMask64::numToOffset().

Referenced by makeLongEffect(), and makeLongEffect().

◆ opEqual()

template<Op OP>
NumBitmapEffect & osl::effect::NumBitmapEffect::opEqual ( NumBitmapEffect const &  rhs)
inline

Definition at line 99 of file numBitmapEffect.h.

References Add.

◆ playerEffect() [1/2]

template<Player P>
static NumBitmapEffect osl::effect::NumBitmapEffect::playerEffect ( )
inlinestatic

◆ playerEffect() [2/2]

static NumBitmapEffect osl::effect::NumBitmapEffect::playerEffect ( Player  pl)
inlinestatic

◆ playerEffectMask() [1/2]

template<Player P>
static mask_t osl::effect::NumBitmapEffect::playerEffectMask ( )
inlinestatic

◆ playerEffectMask() [2/2]

static mask_t osl::effect::NumBitmapEffect::playerEffectMask ( Player  pl)
inlinestatic

Definition at line 65 of file numBitmapEffect.h.

References osl::BLACK, osl::PieceMask::numToMask(), and osl::WHITE.

◆ selectLong() [1/2]

const mask_t osl::effect::NumBitmapEffect::selectLong ( ) const
inline

◆ selectLong() [2/2]

template<Ptype PTYPE>
const mask_t osl::effect::NumBitmapEffect::selectLong ( ) const
inline

Definition at line 146 of file numBitmapEffect.h.

References selectLong().


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