All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
osl::ntesuki::Rzone Class Reference

#include <rzone.h>

Public Member Functions

 Rzone (NumEffectState state, Player p)
 state の玉の位置が mask された rzone. More...
 
 Rzone ()
 
 Rzone (const Square pos)
 
bool any () const
 rzone が一箇所でも set されているか調べる. More...
 
bool test (Square pos) const
 pos に rzone が set されているか調べる. More...
 
bool operator== (const Rzone rhs) const
 rzone の比較. More...
 
Rzone operator+ (const Rzone rhs) const
 rzone の和. More...
 
Rzone operator- (const Rzone rhs) const
 rzone の差. More...
 
Rzone update (const Rzone rhs)
 rzone の更新, 差を返す. More...
 

Private Types

typedef std::bitset< 0x100 > mask_t
 

Private Member Functions

 Rzone (mask_t _mask)
 

Private Attributes

mask_t mask
 

Friends

std::ostream & operator<< (std::ostream &os, const Rzone &rzone)
 rzone の出力. More...
 

Detailed Description

Definition at line 21 of file rzone.h.

Member Typedef Documentation

typedef std::bitset<0x100> osl::ntesuki::Rzone::mask_t
private

Definition at line 24 of file rzone.h.

Constructor & Destructor Documentation

osl::ntesuki::Rzone::Rzone ( NumEffectState  state,
Player  p 
)
inline

state の玉の位置が mask された rzone.

Definition at line 28 of file rzone.h.

References osl::Square::index(), osl::Square::indexMax(), osl::Square::isOnBoard(), and ntesuki_assert.

osl::ntesuki::Rzone::Rzone ( )
inline

Definition at line 38 of file rzone.h.

osl::ntesuki::Rzone::Rzone ( const Square  pos)
inline

Definition at line 40 of file rzone.h.

References osl::Square::index(), osl::Square::indexMax(), and ntesuki_assert.

osl::ntesuki::Rzone::Rzone ( mask_t  _mask)
inlineprivate

Definition at line 97 of file rzone.h.

Member Function Documentation

bool osl::ntesuki::Rzone::any ( ) const
inline

rzone が一箇所でも set されているか調べる.

Definition at line 48 of file rzone.h.

Referenced by osl::ntesuki::NtesukiMoveGenerator::generateWithRzone().

Rzone osl::ntesuki::Rzone::operator+ ( const Rzone  rhs) const
inline

rzone の和.

Definition at line 66 of file rzone.h.

References mask.

Rzone osl::ntesuki::Rzone::operator- ( const Rzone  rhs) const
inline

rzone の差.

Definition at line 73 of file rzone.h.

References mask, and ntesuki_assert.

bool osl::ntesuki::Rzone::operator== ( const Rzone  rhs) const
inline

rzone の比較.

Definition at line 60 of file rzone.h.

References mask.

bool osl::ntesuki::Rzone::test ( Square  pos) const
inline

pos に rzone が set されているか調べる.

Definition at line 54 of file rzone.h.

References osl::Square::index().

Referenced by osl::ntesuki::NtesukiMoveGenerator::generateWithRzone().

Rzone osl::ntesuki::Rzone::update ( const Rzone  rhs)
inline

rzone の更新, 差を返す.

Definition at line 81 of file rzone.h.

References mask.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Rzone rzone 
)
friend

rzone の出力.

Definition at line 91 of file rzone.h.

Member Data Documentation

mask_t osl::ntesuki::Rzone::mask
private

Definition at line 25 of file rzone.h.

Referenced by operator+(), operator-(), operator==(), and update().


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