Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

GoRestoreKoRule Class Reference

#include <GoBoardUtil.h>

List of all members.


Detailed Description

Used to restore GoBoard::Rules()GetKoRule() 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 906 of file GoBoardUtil.h.

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


Constructor & Destructor Documentation

GoRestoreKoRule::GoRestoreKoRule ( GoBoard board  ) 

Definition at line 925 of file GoBoardUtil.h.

GoRestoreKoRule::~GoRestoreKoRule (  ) 

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

GoBoard& GoRestoreKoRule::m_board [private]

Definition at line 914 of file GoBoardUtil.h.

Referenced by ~GoRestoreKoRule().

GoRules::KoRule GoRestoreKoRule::m_koRule [private]

Definition at line 916 of file GoBoardUtil.h.

Referenced by ~GoRestoreKoRule().


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


17 Jun 2010 Doxygen 1.4.7