All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Public Attributes | List of all members
osl::hash::GeneralHashKey< BoardKeyBase > Struct Template Reference

BoardKey + 駒台(piece stand) More...

#include <boardKey.h>

Collaboration diagram for osl::hash::GeneralHashKey< BoardKeyBase >:
Collaboration graph
[legend]

Public Types

typedef BoardKeyBase base_t
 
typedef BoardKeyBase::int_t int_t
 

Public Member Functions

 GeneralHashKey ()
 
const base_tboardKey () const
 
unsigned int signature () const
 
const PieceStandpieceStand () const
 
void setPieceStand (const PieceStand &p)
 
size_t size () const
 
int_t operator[] (size_t i) const
 
int_toperator[] (size_t i)
 
bool isSameBoard (const GeneralHashKey &key) const
 駒台の情報を除いて同じかどうか. More...
 
GeneralHashKeyoperator+= (const GeneralHashKey &r)
 
GeneralHashKeyoperator-= (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
 

Detailed Description

template<typename BoardKeyBase>
struct osl::hash::GeneralHashKey< BoardKeyBase >

BoardKey + 駒台(piece stand)

Definition at line 119 of file boardKey.h.

Member Typedef Documentation

template<typename BoardKeyBase>
typedef BoardKeyBase osl::hash::GeneralHashKey< BoardKeyBase >::base_t

Definition at line 121 of file boardKey.h.

template<typename BoardKeyBase>
typedef BoardKeyBase::int_t osl::hash::GeneralHashKey< BoardKeyBase >::int_t

Definition at line 125 of file boardKey.h.

Constructor & Destructor Documentation

template<typename BoardKeyBase>
osl::hash::GeneralHashKey< BoardKeyBase >::GeneralHashKey ( )
inline

Definition at line 127 of file boardKey.h.

Member Function Documentation

template<typename BoardKeyBase>
const PieceStand osl::hash::GeneralHashKey< BoardKeyBase >::blackStand ( ) const
inline
template<typename BoardKeyBase>
const base_t& osl::hash::GeneralHashKey< BoardKeyBase >::boardKey ( ) const
inline
template<typename BoardKeyBase>
void osl::hash::GeneralHashKey< BoardKeyBase >::changeTurn ( )
inline

Definition at line 176 of file boardKey.h.

References osl::hash::GeneralHashKey< BoardKeyBase >::board_key.

template<typename BoardKeyBase>
bool osl::hash::GeneralHashKey< BoardKeyBase >::isPlayerOfTurn ( Player  p) const
inline
template<typename BoardKeyBase>
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().

template<typename BoardKeyBase>
GeneralHashKey& osl::hash::GeneralHashKey< BoardKeyBase >::operator+= ( const GeneralHashKey< BoardKeyBase > &  r)
inline
template<typename BoardKeyBase>
GeneralHashKey& osl::hash::GeneralHashKey< BoardKeyBase >::operator-= ( const GeneralHashKey< BoardKeyBase > &  r)
inline
template<typename BoardKeyBase>
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.

template<typename BoardKeyBase>
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.

template<typename BoardKeyBase>
const PieceStand& osl::hash::GeneralHashKey< BoardKeyBase >::pieceStand ( ) const
inline
template<typename BoardKeyBase>
void osl::hash::GeneralHashKey< BoardKeyBase >::setPieceStand ( const PieceStand p)
inline
template<typename BoardKeyBase>
void osl::hash::GeneralHashKey< BoardKeyBase >::setPlayer ( Player  p)
inline

Definition at line 180 of file boardKey.h.

References osl::hash::GeneralHashKey< BoardKeyBase >::board_key.

template<typename SignatureBoardKeyBase >
void osl::hash::GeneralHashKey< SignatureBoardKeyBase >::setRandom ( )

pieceStandには触らない

Definition at line 24 of file boardKey.tcc.

template<typename BoardKeyBase>
unsigned int osl::hash::GeneralHashKey< BoardKeyBase >::signature ( ) const
inline

Definition at line 133 of file boardKey.h.

References osl::hash::GeneralHashKey< BoardKeyBase >::board_key.

template<typename BoardKeyBase>
size_t osl::hash::GeneralHashKey< BoardKeyBase >::size ( ) const
inline

Definition at line 143 of file boardKey.h.

References osl::hash::GeneralHashKey< BoardKeyBase >::board_key.

template<typename BoardKeyBase>
Player osl::hash::GeneralHashKey< BoardKeyBase >::turn ( ) const
inline

Member Data Documentation

template<typename BoardKeyBase>
BoardKeyBase osl::hash::GeneralHashKey< BoardKeyBase >::board_key
template<typename BoardKeyBase>
PieceStand osl::hash::GeneralHashKey< BoardKeyBase >::piece_stand

The documentation for this struct was generated from the following files: