Base Module VST 3.7
SDK for developing VST plug-in
|
Class definition for objects that help resetting boolean variables. More...
#include <fcleanup.h>
Public Member Functions | |
FBooleanSetter (T &_toSet) | |
Constructor. More... | |
~FBooleanSetter () | |
Destructor. Resets the at construction time passed boolean to FALSE. More... | |
Public Attributes | |
T & | toSet |
Remembers the boolean that is to be reset during destruction. More... | |
Class definition for objects that help resetting boolean variables.
A stack allocated object of this type automatically sets an at construction time passed boolean variable immediately to TRUE and resets the same variable to FALSE when it reaches the end of its own scope.
Intended usage:
|
inline |
Constructor.
_toSet is a reference to the boolean that is set to TRUE immediately in this constructor call and gets reset to FALSE when this FBoolSetter object's destructor is executed.
|
inline |
Destructor. Resets the at construction time passed boolean to FALSE.
T& toSet |
Remembers the boolean that is to be reset during destruction.