BoardKey + 駒台(piece stand) More...
#include <boardKey.h>
Public Types | |
typedef BoardKeyBase | base_t |
typedef BoardKeyBase::int_t | int_t |
Public Member Functions | |
GeneralHashKey () | |
const base_t & | boardKey () const |
unsigned int | signature () const |
const PieceStand & | pieceStand () const |
void | setPieceStand (const PieceStand &p) |
size_t | size () const |
int_t | operator[] (size_t i) const |
int_t & | operator[] (size_t i) |
bool | isSameBoard (const GeneralHashKey &key) const |
駒台の情報を除いて同じかどうか. More... | |
GeneralHashKey & | operator+= (const GeneralHashKey &r) |
GeneralHashKey & | operator-= (const GeneralHashKey &r) |
const PieceStand | blackStand () const |
void | changeTurn () |
void | setPlayer (Player p) |
bool | isPlayerOfTurn (Player p) const |
Player | turn () const |
void | setRandom () |
pieceStandには触らない More... | |
Public Attributes | |
BoardKeyBase | board_key |
PieceStand | piece_stand |
BoardKey + 駒台(piece stand)
Definition at line 119 of file boardKey.h.
typedef BoardKeyBase osl::hash::GeneralHashKey< BoardKeyBase >::base_t |
Definition at line 121 of file boardKey.h.
typedef BoardKeyBase::int_t osl::hash::GeneralHashKey< BoardKeyBase >::int_t |
Definition at line 125 of file boardKey.h.
|
inline |
Definition at line 127 of file boardKey.h.
|
inline |
Definition at line 172 of file boardKey.h.
References osl::hash::GeneralHashKey< BoardKeyBase >::piece_stand.
|
inline |
Definition at line 130 of file boardKey.h.
References osl::hash::GeneralHashKey< BoardKeyBase >::board_key.
Referenced by osl::hash::GeneralHashKey< BoardKeyBase >::isSameBoard().
|
inline |
Definition at line 176 of file boardKey.h.
References osl::hash::GeneralHashKey< BoardKeyBase >::board_key.
|
inline |
Definition at line 184 of file boardKey.h.
References osl::hash::GeneralHashKey< BoardKeyBase >::board_key.
Referenced by osl::hash::GeneralHashKey< BoardKeyBase >::turn().
|
inline |
駒台の情報を除いて同じかどうか.
手番が異なるものは異なると定義する
Definition at line 156 of file boardKey.h.
References osl::hash::GeneralHashKey< BoardKeyBase >::board_key, and osl::hash::GeneralHashKey< BoardKeyBase >::boardKey().
|
inline |
Definition at line 160 of file boardKey.h.
References osl::PieceStand::addAtmostOnePiece(), osl::hash::GeneralHashKey< BoardKeyBase >::board_key, and osl::hash::GeneralHashKey< BoardKeyBase >::piece_stand.
|
inline |
Definition at line 166 of file boardKey.h.
References osl::hash::GeneralHashKey< BoardKeyBase >::board_key, osl::hash::GeneralHashKey< BoardKeyBase >::piece_stand, and osl::PieceStand::subAtmostOnePiece().
|
inline |
Definition at line 146 of file boardKey.h.
References osl::hash::GeneralHashKey< BoardKeyBase >::board_key.
|
inline |
Definition at line 149 of file boardKey.h.
References osl::hash::GeneralHashKey< BoardKeyBase >::board_key.
|
inline |
Definition at line 137 of file boardKey.h.
References osl::hash::GeneralHashKey< BoardKeyBase >::piece_stand.
|
inline |
Definition at line 140 of file boardKey.h.
References osl::hash::GeneralHashKey< BoardKeyBase >::piece_stand.
|
inline |
Definition at line 180 of file boardKey.h.
References osl::hash::GeneralHashKey< BoardKeyBase >::board_key.
void osl::hash::GeneralHashKey< SignatureBoardKeyBase >::setRandom | ( | ) |
pieceStandには触らない
Definition at line 24 of file boardKey.tcc.
|
inline |
Definition at line 133 of file boardKey.h.
References osl::hash::GeneralHashKey< BoardKeyBase >::board_key.
|
inline |
Definition at line 143 of file boardKey.h.
References osl::hash::GeneralHashKey< BoardKeyBase >::board_key.
|
inline |
Definition at line 188 of file boardKey.h.
References osl::BLACK, osl::hash::GeneralHashKey< BoardKeyBase >::isPlayerOfTurn(), and osl::WHITE.
BoardKeyBase osl::hash::GeneralHashKey< BoardKeyBase >::board_key |
Definition at line 122 of file boardKey.h.
Referenced by osl::hash::GeneralHashKey< BoardKeyBase >::boardKey(), osl::hash::GeneralHashKey< BoardKeyBase >::changeTurn(), osl::hash::GeneralHashKey< BoardKeyBase >::isPlayerOfTurn(), osl::hash::GeneralHashKey< BoardKeyBase >::isSameBoard(), osl::hash::GeneralHashKey< BoardKeyBase >::operator+=(), osl::hash::GeneralHashKey< BoardKeyBase >::operator-=(), osl::hash::operator<(), osl::hash::operator==(), osl::hash::GeneralHashKey< BoardKeyBase >::operator[](), osl::hash::GeneralHashKey< BoardKeyBase >::setPlayer(), osl::hash::GeneralHashKey< BoardKeyBase >::signature(), and osl::hash::GeneralHashKey< BoardKeyBase >::size().
PieceStand osl::hash::GeneralHashKey< BoardKeyBase >::piece_stand |
Definition at line 123 of file boardKey.h.
Referenced by osl::hash::GeneralHashKey< BoardKeyBase >::blackStand(), osl::hash::GeneralHashKey< BoardKeyBase >::operator+=(), osl::hash::GeneralHashKey< BoardKeyBase >::operator-=(), osl::hash::operator==(), osl::hash::GeneralHashKey< BoardKeyBase >::pieceStand(), and osl::hash::GeneralHashKey< BoardKeyBase >::setPieceStand().