My Project
|
#include <mask.h>
Static Public Member Functions | |
template<class Integer > | |
static int | bsf (Integer mask) |
template<class Integer > | |
static int | bsr (Integer mask) |
template<class Integer > | |
static int | takeOneBit (Integer &mask) |
template<class Integer > | |
static int | countBit (Integer mask) |
template<class Integer > | |
static bool | hasMultipleBit (Integer mask) |
template<class Integer > | |
static Integer | lowestBit (Integer mask) |
non-zeroのmaskのsetされているビットをLSBから探し,そのビットだけがsetされたmaskを返す. | |
|
inlinestatic |
Definition at line 138 of file mask.h.
Referenced by osl::misc::GeneralMask< Integer >::bsf(), osl::move_probability::KingBlockade::match(), osl::move_probability::AddEffectLong::match(), and takeOneBit().
|
inlinestatic |
Definition at line 143 of file mask.h.
Referenced by osl::misc::GeneralMask< Integer >::bsr().
|
inlinestatic |
Definition at line 160 of file mask.h.
Referenced by osl::PieceStand::atMostOneKind(), osl::checkmate::Dfpn::attack(), osl::misc::GeneralMask< Integer >::countBit(), osl::checkmate::ProofNumberTable::countLiberty(), osl::checkmate::Dfpn::defense(), osl::checkmate::EdgeTable::resetEdgeFromLiberty(), and osl::checkmate::DfpnTable::List::testTable().
|
inlinestatic |
Definition at line 171 of file mask.h.
Referenced by osl::misc::GeneralMask< Integer >::hasMultipleBit().
|
inlinestatic |
non-zeroのmaskのsetされているビットをLSBから探し,そのビットだけがsetされたmaskを返す.
Definition at line 179 of file mask.h.
Referenced by osl::misc::GeneralMask< Integer >::lowestBit().
|
inlinestatic |
Definition at line 148 of file mask.h.
References bsf().
Referenced by osl::container::BoardMask::takeOneBit(), and osl::misc::GeneralMask< Integer >::takeOneBit().