Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

GoRestoreToPlay Class Reference

#include <GoBoardUtil.h>

List of all members.


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 942 of file GoBoardUtil.h.

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


Constructor & Destructor Documentation

GoRestoreToPlay::GoRestoreToPlay ( GoBoard board  ) 

Definition at line 945 of file GoBoardUtil.h.

GoRestoreToPlay::~GoRestoreToPlay (  ) 

Definition at line 950 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

GoBoard& GoRestoreToPlay::m_board [private]

Definition at line 956 of file GoBoardUtil.h.

Referenced by ~GoRestoreToPlay().

SgBlackWhite GoRestoreToPlay::m_oldToPlay [private]

Definition at line 958 of file GoBoardUtil.h.

Referenced by ~GoRestoreToPlay().


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


17 Jun 2010 Doxygen 1.4.7