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

GoRestoreKoRule Class Reference

Used to restore the ko rule to its current value in an exception-safe way. More...

#include <GoBoardUtil.h>

List of all members.

Public Member Functions

 GoRestoreKoRule (GoBoard &board)
 ~GoRestoreKoRule ()

Private Member Functions

 GoRestoreKoRule (const GoRestoreKoRule &)
 Not implemented.
GoRestoreKoRuleoperator= (const GoRestoreKoRule &)
 Not implemented.

Private Attributes

GoBoardm_board
GoRules::KoRule m_koRule

Detailed Description

Used to restore the ko rule to its current value in an exception-safe way.

To use it, just declare a variable of this type on the stack for the desired scope.

Definition at line 878 of file GoBoardUtil.h.


Constructor & Destructor Documentation

GoRestoreKoRule::GoRestoreKoRule ( GoBoard board  ) 

Definition at line 897 of file GoBoardUtil.h.

GoRestoreKoRule::~GoRestoreKoRule (  ) 

Definition at line 903 of file GoBoardUtil.h.

References m_board, m_koRule, GoBoard::Rules(), and GoRules::SetKoRule().

GoRestoreKoRule::GoRestoreKoRule ( const GoRestoreKoRule  )  [private]

Not implemented.


Member Function Documentation

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

Not implemented.


Member Data Documentation

Definition at line 886 of file GoBoardUtil.h.

Referenced by ~GoRestoreKoRule().

Definition at line 888 of file GoBoardUtil.h.

Referenced by ~GoRestoreKoRule().


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


Sun Mar 13 2011 Doxygen 1.7.1