|
Base Module VST 3.7
SDK for developing VST plug-in
|
Template definition for classes that help resetting an object's value. More...
#include <fcleanup.h>
Public Member Functions | |
| FNuller (T &_toNull) | |
| Constructor. | |
| ~FNuller () | |
| Destructor. Assigns 0 to the at construction time passed object reference. | |
Public Attributes | |
| T & | toNull |
| Remembers the object that is to be assigned 0 during destruction. | |
Template definition for classes that help resetting an object's value.
A stack allocated object of this type automatically resets the value of an at construction time passed object to null when it reaches the end of its scope.
Intended usage:
|
inline |
Constructor.
_toNull is a reference to the object that is to be assigned 0 when this FNuller object's destructor is executed.
|
inline |
Destructor. Assigns 0 to the at construction time passed object reference.
| T& toNull |
Remembers the object that is to be assigned 0 during destruction.