My Project
core
osl
bits
pieceMask.cc
Go to the documentation of this file.
1
#include "
osl/bits/pieceMask.h
"
2
#include <iostream>
3
#include <iomanip>
4
#include <bitset>
5
6
static_assert
(
sizeof
(
osl::PieceMask
) == 8,
"piecemask size"
);
7
8
#ifndef MINIMAL
9
std::ostream&
osl::operator<<
(std::ostream& os,
const
PieceMask
& pieceMask){
10
os <<
'('
<< std::setbase(16) << std::setfill(
'0'
)
11
<< std::setw(12) << pieceMask.
getMask
(0).value()
12
<< std::setbase(10) <<
')'
;
13
os << std::bitset<64>(pieceMask.
getMask
(0).value());
14
return
os;
15
}
16
#endif
17
18
// ;;; Local Variables:
19
// ;;; mode:c++
20
// ;;; c-basic-offset:2
21
// ;;; End:
osl::PieceMask
駒番号のビットセット.
Definition
pieceMask.h:21
osl::PieceMask::getMask
const mask_t getMask(int num) const
Definition
pieceMask.h:59
osl::operator<<
std::ostream & operator<<(std::ostream &os, Player player)
Definition
basic_type.cc:14
pieceMask.h
Generated by
1.9.8