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

GoRestoreToPlay Class Reference

Used to restore ToPlay to its current value in an exception-safe way. More...

#include <GoBoardUtil.h>

List of all members.

Public Member Functions

 GoRestoreToPlay (GoBoard &board)
 ~GoRestoreToPlay ()

Private Member Functions

 GoRestoreToPlay (const GoRestoreToPlay &)
 Not implemented.
GoRestoreToPlayoperator= (const GoRestoreToPlay &)
 Not implemented.

Private Attributes

GoBoardm_board
SgBlackWhite m_oldToPlay

Detailed Description

Used to restore ToPlay to its current value in an exception-safe way.

To use it, just declare a RestoreToPlay variable on the stack for the desired scope.

Definition at line 913 of file GoBoardUtil.h.


Constructor & Destructor Documentation

GoRestoreToPlay::GoRestoreToPlay ( GoBoard board  ) 

Definition at line 916 of file GoBoardUtil.h.

GoRestoreToPlay::~GoRestoreToPlay (  ) 

Definition at line 921 of file GoBoardUtil.h.

References m_board, m_oldToPlay, and GoBoard::SetToPlay().

GoRestoreToPlay::GoRestoreToPlay ( const GoRestoreToPlay  )  [private]

Not implemented.


Member Function Documentation

GoRestoreToPlay& GoRestoreToPlay::operator= ( const GoRestoreToPlay  )  [private]

Not implemented.


Member Data Documentation

Definition at line 927 of file GoBoardUtil.h.

Referenced by ~GoRestoreToPlay().

Definition at line 929 of file GoBoardUtil.h.

Referenced by ~GoRestoreToPlay().


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


Sun Mar 13 2011 Doxygen 1.7.1