CFx SDK Documentation 2024 SP0
|
#include <SaveState.h>
Public Member Functions | |
OdSaveStateFlagImpl (T &variable) | |
OdSaveStateFlagImpl (T &variable, bool bNewValue) | |
~OdSaveStateFlagImpl () | |
operator bool () const | |
This template class implements SaveState objects which save and restore flags.
<group Other_Classes>
Definition at line 109 of file SaveState.h.
|
inline |
Constructor for objects of the OdSaveStateFlagImpl class. Saves a flag without assigning it a new value.
variable | [in] Flag to save. |
Definition at line 121 of file SaveState.h.
|
inline |
Constructor for objects of the OdSaveStateFlagImpl class. Saves a flag and assigns it a new value.
variable | [in] Flag to save. |
newValue | [in] New value for a flag. |
Definition at line 133 of file SaveState.h.
|
inline |
Destructor for objects of the OdSaveStateFlagImpl class. Restores the old value of a flag.
Definition at line 143 of file SaveState.h.
|
inline |
Returns the saved value of the flag.
Definition at line 151 of file SaveState.h.