CFx SDK Documentation 2024 SP0
|
#include <SaveState.h>
Public Member Functions | |
OdSaveState (T &variable) | |
OdSaveState (T &variable, const T &newValue) | |
~OdSaveState () | |
operator const T & () const | |
This template class implements SaveState objects which save and restore variables.
<group Other_Classes>
Definition at line 39 of file SaveState.h.
|
inline |
Constructor for objects of the OdSaveState class. Saves a variable without assigning it a new value.
variable | [in] Variable to save. |
Definition at line 51 of file SaveState.h.
|
inline |
Constructor for objects of the OdSaveState class. Saves a variable and assigns it a new value.
variable | [in] Variable to save. |
newValue | [in] New value for a variable. |
Definition at line 64 of file SaveState.h.
|
inline |
Destructor for objects of the OdSaveState class. Restores the old value of a variable.
Definition at line 75 of file SaveState.h.
|
inline |
Returns the saved value of the variable.
Definition at line 83 of file SaveState.h.