Quark  0.1
ScopedBool Class Reference

A simple wrapper object for a boolean value which sets the value to true in its constructor and to false in its destructor. More...

#include <ScopedBool.h++>

Public Member Functions

 ScopedBool (bool &value)
 Constructs a new ScopedBool for the given value. More...
 
 ~ScopedBool ()
 Destructor. More...
 

Detailed Description

A simple wrapper object for a boolean value which sets the value to true in its constructor and to false in its destructor.

Author
Mark Lindner

Constructor & Destructor Documentation

◆ ScopedBool()

ScopedBool ( bool &  value)
inline

Constructs a new ScopedBool for the given value.

The value is set to true.

◆ ~ScopedBool()

~ScopedBool ( )
inline

Destructor.

Sets the value to false.


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