Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  
Public Member Functions | Private Member Functions | Private Attributes

GoAutoBookState Class Reference

Tracks canonical hash. More...

#include <GoAutoBook.h>

List of all members.

Public Member Functions

 GoAutoBookState (const GoBoard &brd)
 ~GoAutoBookState ()
GoBoardBoard ()
const GoBoardBoard () const
void Play (SgMove move)
void Undo ()
SgHashCode GetHashCode () const
void Synchronize ()

Private Member Functions

void ComputeHashCode ()

Private Attributes

GoBoardSynchronizer m_synchronizer
GoBoard m_brd [8]
SgHashCode m_hash

Detailed Description

Tracks canonical hash.

Definition at line 21 of file GoAutoBook.h.


Constructor & Destructor Documentation

GoAutoBookState::GoAutoBookState ( const GoBoard brd  ) 

Definition at line 10 of file GoAutoBook.cpp.

References m_brd, m_synchronizer, and GoBoardSynchronizer::SetSubscriber().

GoAutoBookState::~GoAutoBookState (  ) 

Definition at line 16 of file GoAutoBook.cpp.


Member Function Documentation

GoBoard & GoAutoBookState::Board (  ) 
const GoBoard & GoAutoBookState::Board (  )  const

Definition at line 55 of file GoAutoBook.h.

References m_brd.

void GoAutoBookState::ComputeHashCode (  )  [private]

Definition at line 57 of file GoAutoBook.cpp.

References GoBoard::GetHashCodeInclToPlay(), m_brd, and m_hash.

Referenced by Play(), Synchronize(), and Undo().

SgHashCode GoAutoBookState::GetHashCode (  )  const
void GoAutoBookState::Play ( SgMove  move  ) 
void GoAutoBookState::Synchronize (  ) 
void GoAutoBookState::Undo (  ) 

Member Data Documentation

Definition at line 43 of file GoAutoBook.h.

Referenced by Board(), ComputeHashCode(), GoAutoBookState(), Play(), Synchronize(), and Undo().

Definition at line 45 of file GoAutoBook.h.

Referenced by ComputeHashCode(), GetHashCode(), and Play().

Definition at line 41 of file GoAutoBook.h.

Referenced by GoAutoBookState(), and Synchronize().


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


Sun Mar 13 2011 Doxygen 1.7.1