Used to restore the ko rule to its current value in an exception-safe way. More...
#include <GoBoardUtil.h>
Public Member Functions | |
GoRestoreKoRule (GoBoard &board) | |
~GoRestoreKoRule () | |
Private Member Functions | |
GoRestoreKoRule (const GoRestoreKoRule &) | |
Not implemented. | |
GoRestoreKoRule & | operator= (const GoRestoreKoRule &) |
Not implemented. | |
Private Attributes | |
GoBoard & | m_board |
GoRules::KoRule | m_koRule |
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.
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.
GoRestoreKoRule& GoRestoreKoRule::operator= | ( | const GoRestoreKoRule & | ) | [private] |
Not implemented.
GoBoard& GoRestoreKoRule::m_board [private] |
Definition at line 886 of file GoBoardUtil.h.
Referenced by ~GoRestoreKoRule().
GoRules::KoRule GoRestoreKoRule::m_koRule [private] |
Definition at line 888 of file GoBoardUtil.h.
Referenced by ~GoRestoreKoRule().