Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ScopedBool Class Reference

The ScopedBool class allows you to initialize a boolean value within a scope, when the variable leaves the scope, the boolean value is reversed. More...

#include <ScopedBool.h>

List of all members.

Public Methods

 ScopedBool (bool *boolVar)
 ScopedBool (bool *boolVar, bool value)
 ~ScopedBool ()

Private Attributes

bool * m_bool
bool m_value


Detailed Description

The ScopedBool class allows you to initialize a boolean value within a scope, when the variable leaves the scope, the boolean value is reversed.

Definition at line 4 of file ScopedBool.h.


Constructor & Destructor Documentation

ScopedBool::ScopedBool bool * boolVar
 

Definition at line 10 of file ScopedBool.cpp.

ScopedBool::ScopedBool bool * boolVar,
bool value
 

Definition at line 16 of file ScopedBool.cpp.

ScopedBool::~ScopedBool
 

Definition at line 23 of file ScopedBool.cpp.


Member Data Documentation

bool* ScopedBool::m_bool [private]
 

Definition at line 11 of file ScopedBool.h.

bool ScopedBool::m_value [private]
 

Definition at line 12 of file ScopedBool.h.


The documentation for this class was generated from the following files:
Generated at Thu Jul 11 13:31:58 2002 for Peekabooty by doxygen1.2.9 written by Dimitri van Heesch, © 1997-2001