Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

GoAutoBookState Class Reference

#include <GoAutoBook.h>

List of all members.


Detailed Description

Tracks canonical hash.

Definition at line 22 of file GoAutoBook.h.

Public Member Functions

 GoAutoBookState (const GoBoard &brd)
 ~GoAutoBookState ()
GoBoard & Board ()
const GoBoard & Board () 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


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

const GoBoard & GoAutoBookState::Board (  )  const

Definition at line 56 of file GoAutoBook.h.

References m_brd.

GoBoard & GoAutoBookState::Board (  ) 

Definition at line 51 of file GoAutoBook.h.

References m_brd.

Referenced by GoAutoBook::FindBestChild().

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

Definition at line 20 of file GoAutoBook.cpp.

References m_hash.

Referenced by GoAutoBook::Get(), and GoAutoBook::Put().

void GoAutoBookState::Play ( SgMove  move  ) 

Definition at line 42 of file GoAutoBook.cpp.

References ComputeHashCode(), GoBoard::GetHashCodeInclToPlay(), m_brd, m_hash, and SgPointUtil::Rotate().

Referenced by GoAutoBook::FindBestChild().

void GoAutoBookState::Synchronize (  ) 

Definition at line 25 of file GoAutoBook.cpp.

References ComputeHashCode(), Init(), m_brd, m_synchronizer, GoBoard::MoveNumber(), GoBoard::Play(), SgPointUtil::Rotate(), GoBoard::Size(), and GoBoardSynchronizer::UpdateSubscriber().

Referenced by GoAutoBook::LookupMove().

void GoAutoBookState::Undo (  ) 

Definition at line 50 of file GoAutoBook.cpp.

References ComputeHashCode(), and m_brd.

Referenced by GoAutoBook::FindBestChild().


Member Data Documentation

GoBoard GoAutoBookState::m_brd[8] [private]

Definition at line 44 of file GoAutoBook.h.

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

SgHashCode GoAutoBookState::m_hash [private]

Definition at line 46 of file GoAutoBook.h.

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

GoBoardSynchronizer GoAutoBookState::m_synchronizer [private]

Definition at line 42 of file GoAutoBook.h.

Referenced by GoAutoBookState(), and Synchronize().


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


17 Jun 2010 Doxygen 1.4.7