Inviwo  0.9.10.1
Inviwo documentation
inviwo::util::KeepTrueWhileInScope Class Reference

sets the given bool variable to true and restores its state when leaving the scope More...

#include <raiiutils.h>

Public Member Functions

 KeepTrueWhileInScope (bool *b)
 

Detailed Description

sets the given bool variable to true and restores its state when leaving the scope

An instance of this class will set a given bool variable to true upon construction. It restores the previous state of the bool variable when leaving the current scope.


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