22 void set(
int x) { mask |= (1 << x); }
23 void clear(
int x) { mask &= ~(1 << x); }
25 void set(
Square position) {
set(position.x()); }
28 bool isSet(
int x)
const {
return mask & (1<<x); }
int x() const
将棋としてのX座標を返す.
bool operator<(BitXmask l, BitXmask r)
void clear(Square position)
bool operator==(BitXmask l, BitXmask r)
bool operator!=(BitXmask l, BitXmask r)
std::ostream & operator<<(std::ostream &, const BitXmask)