All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends
osl::ntesuki::Rzone Class Reference

#include <rzone.h>

List of all members.

Public Member Functions

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

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 の出力.

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.

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

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

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