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

GoAssertBoardRestored Class Reference

Assert that the board has been restored to previous state. More...

#include <GoAssertBoardRestored.h>

List of all members.

Public Member Functions

 GoAssertBoardRestored ()
 Constructor for later explicit call of Init().
 GoAssertBoardRestored (const GoBoard &bd)
 Constructor, calls Init().
 ~GoAssertBoardRestored ()
 Destructor, calls CheckRestored().
void AssertRestored ()
 Checks with assertions that the state of the board is the same as it was at the last call to Init() or the constructor.
void Init (const GoBoard &bd)
void Clear ()
 Set to a state, in which the destructor does not call AssertRestored() anymore.

Private Member Functions

 GoAssertBoardRestored (const GoAssertBoardRestored &)
 Not implemented.
GoAssertBoardRestoredoperator= (const GoAssertBoardRestored &)
 Not implemented.

Private Attributes

const GoBoardm_bd
int m_size
SgBlackWhite m_toPlay
SgHashCode m_hash
 Hash code for this board position.
int m_moveNumber
 Current move number.
SgBWArray< int > m_numStones
GoRules m_rules
bool m_allowKoRepetition
bool m_allowAnyRepetition
bool m_koModifiesHash
SgEmptyBlackWhite m_koColor
int m_koLevel
SgEmptyBlackWhite m_koLoser

Detailed Description

Assert that the board has been restored to previous state.

Definition at line 13 of file GoAssertBoardRestored.h.


Constructor & Destructor Documentation

GoAssertBoardRestored::GoAssertBoardRestored (  ) 

Constructor for later explicit call of Init().

Definition at line 73 of file GoAssertBoardRestored.h.

References m_bd.

GoAssertBoardRestored::GoAssertBoardRestored ( const GoBoard bd  ) 

Constructor, calls Init().

Definition at line 80 of file GoAssertBoardRestored.h.

References Init(), and SG_DEBUG_ONLY.

GoAssertBoardRestored::~GoAssertBoardRestored (  ) 

Destructor, calls CheckRestored().

Definition at line 88 of file GoAssertBoardRestored.h.

References AssertRestored().

GoAssertBoardRestored::GoAssertBoardRestored ( const GoAssertBoardRestored  )  [private]

Not implemented.


Member Function Documentation

void GoAssertBoardRestored::AssertRestored (  ) 
void GoAssertBoardRestored::Clear (  ) 

Set to a state, in which the destructor does not call AssertRestored() anymore.

Definition at line 116 of file GoAssertBoardRestored.h.

References m_bd.

Referenced by GoModBoard::Lock().

void GoAssertBoardRestored::Init ( const GoBoard bd  ) 
GoAssertBoardRestored& GoAssertBoardRestored::operator= ( const GoAssertBoardRestored  )  [private]

Not implemented.


Member Data Documentation

Definition at line 50 of file GoAssertBoardRestored.h.

Referenced by AssertRestored(), and Init().

Definition at line 48 of file GoAssertBoardRestored.h.

Referenced by AssertRestored(), and Init().

Definition at line 32 of file GoAssertBoardRestored.h.

Referenced by AssertRestored(), Clear(), GoAssertBoardRestored(), and Init().

Hash code for this board position.

Definition at line 39 of file GoAssertBoardRestored.h.

Referenced by AssertRestored(), and Init().

Definition at line 54 of file GoAssertBoardRestored.h.

Referenced by AssertRestored(), and Init().

Definition at line 56 of file GoAssertBoardRestored.h.

Referenced by AssertRestored(), and Init().

Definition at line 58 of file GoAssertBoardRestored.h.

Referenced by AssertRestored(), and Init().

Definition at line 52 of file GoAssertBoardRestored.h.

Referenced by AssertRestored(), and Init().

Current move number.

Definition at line 42 of file GoAssertBoardRestored.h.

Referenced by AssertRestored(), and Init().

Definition at line 44 of file GoAssertBoardRestored.h.

Referenced by AssertRestored(), and Init().

Definition at line 46 of file GoAssertBoardRestored.h.

Referenced by AssertRestored(), and Init().

Definition at line 34 of file GoAssertBoardRestored.h.

Referenced by AssertRestored(), and Init().

Definition at line 36 of file GoAssertBoardRestored.h.

Referenced by AssertRestored(), and Init().


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


Sun Mar 13 2011 Doxygen 1.7.1