pieceMask.cc
Go to the documentation of this file.
#include "osl/bits/pieceMask.h"
#include <iostream>
#include <iomanip>
#include <bitset>
static_assert(sizeof(osl::PieceMask) == 8, "piecemask size");
#ifndef MINIMAL
std::ostream& osl::operator<<(std::ostream& os,const PieceMask& pieceMask){
os << '(' << std::setbase(16) << std::setfill('0')
<< std::setw(12) << pieceMask.getMask(0).value()
<< std::setbase(10) << ')';
os << std::bitset<64>(pieceMask.getMask(0).value());
return os;
}
#endif
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
osl::PieceMask
駒番号のビットセット.
Definition pieceMask.h:21
osl::PieceMask::getMask
const mask_t getMask(int num) const
Definition pieceMask.h:59
osl::misc::GeneralMask::value
Integer value() const
Definition mask.h:299
osl::operator<<
std::ostream & operator<<(std::ostream &os, Player player)
Definition basic_type.cc:14
pieceMask.h