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 |
| 駒台の情報を除いて同じかどうか. | |
| 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には触らない | |
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.
| osl::hash::GeneralHashKey< BoardKeyBase >::GeneralHashKey | ( | ) | [inline] |
Definition at line 127 of file boardKey.h.
| const PieceStand osl::hash::GeneralHashKey< BoardKeyBase >::blackStand | ( | ) | const [inline] |
Definition at line 172 of file boardKey.h.
References osl::hash::GeneralHashKey< BoardKeyBase >::piece_stand.
| const base_t& osl::hash::GeneralHashKey< BoardKeyBase >::boardKey | ( | ) | const [inline] |
Definition at line 130 of file boardKey.h.
References osl::hash::GeneralHashKey< BoardKeyBase >::board_key.
Referenced by osl::hash::GeneralHashKey< BoardKeyBase >::isSameBoard().
| void osl::hash::GeneralHashKey< BoardKeyBase >::changeTurn | ( | ) | [inline] |
Definition at line 176 of file boardKey.h.
References osl::hash::GeneralHashKey< BoardKeyBase >::board_key.
| bool osl::hash::GeneralHashKey< BoardKeyBase >::isPlayerOfTurn | ( | Player | p | ) | const [inline] |
Definition at line 184 of file boardKey.h.
References osl::hash::GeneralHashKey< BoardKeyBase >::board_key.
Referenced by osl::hash::GeneralHashKey< BoardKeyBase >::turn().
| bool osl::hash::GeneralHashKey< BoardKeyBase >::isSameBoard | ( | const GeneralHashKey< BoardKeyBase > & | key | ) | const [inline] |
駒台の情報を除いて同じかどうか.
手番が異なるものは異なると定義する
Definition at line 156 of file boardKey.h.
References osl::hash::GeneralHashKey< BoardKeyBase >::board_key, and osl::hash::GeneralHashKey< BoardKeyBase >::boardKey().
| GeneralHashKey& osl::hash::GeneralHashKey< BoardKeyBase >::operator+= | ( | const GeneralHashKey< BoardKeyBase > & | r | ) | [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.
| GeneralHashKey& osl::hash::GeneralHashKey< BoardKeyBase >::operator-= | ( | const GeneralHashKey< BoardKeyBase > & | r | ) | [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().
| int_t osl::hash::GeneralHashKey< BoardKeyBase >::operator[] | ( | size_t | i | ) | const [inline] |
Definition at line 146 of file boardKey.h.
References osl::hash::GeneralHashKey< BoardKeyBase >::board_key.
| int_t& osl::hash::GeneralHashKey< BoardKeyBase >::operator[] | ( | size_t | i | ) | [inline] |
Definition at line 149 of file boardKey.h.
References osl::hash::GeneralHashKey< BoardKeyBase >::board_key.
| const PieceStand& osl::hash::GeneralHashKey< BoardKeyBase >::pieceStand | ( | ) | const [inline] |
Definition at line 137 of file boardKey.h.
References osl::hash::GeneralHashKey< BoardKeyBase >::piece_stand.
| void osl::hash::GeneralHashKey< BoardKeyBase >::setPieceStand | ( | const PieceStand & | p | ) | [inline] |
Definition at line 140 of file boardKey.h.
References osl::hash::GeneralHashKey< BoardKeyBase >::piece_stand.
| void osl::hash::GeneralHashKey< BoardKeyBase >::setPlayer | ( | Player | p | ) | [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.
| unsigned int osl::hash::GeneralHashKey< BoardKeyBase >::signature | ( | ) | const [inline] |
Definition at line 133 of file boardKey.h.
References osl::hash::GeneralHashKey< BoardKeyBase >::board_key.
| size_t osl::hash::GeneralHashKey< BoardKeyBase >::size | ( | ) | const [inline] |
Definition at line 143 of file boardKey.h.
References osl::hash::GeneralHashKey< BoardKeyBase >::board_key.
| Player osl::hash::GeneralHashKey< BoardKeyBase >::turn | ( | ) | const [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().
1.7.6.1