CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
OdSaveStateFlagImpl< T, flag > Class Template Reference

#include <SaveState.h>

Public Member Functions

 OdSaveStateFlagImpl (T &variable)
 
 OdSaveStateFlagImpl (T &variable, bool bNewValue)
 
 ~OdSaveStateFlagImpl ()
 
 operator bool () const
 

Detailed Description

template<class T, T flag>
class OdSaveStateFlagImpl< T, flag >

This template class implements SaveState objects which save and restore flags.

<group Other_Classes>

Definition at line 109 of file SaveState.h.

Constructor & Destructor Documentation

◆ OdSaveStateFlagImpl() [1/2]

template<class T , T flag>
OdSaveStateFlagImpl< T, flag >::OdSaveStateFlagImpl ( T &  variable)
inline

Constructor for objects of the OdSaveStateFlagImpl class. Saves a flag without assigning it a new value.

Parameters
variable[in] Flag to save.

Definition at line 121 of file SaveState.h.

◆ OdSaveStateFlagImpl() [2/2]

template<class T , T flag>
OdSaveStateFlagImpl< T, flag >::OdSaveStateFlagImpl ( T &  variable,
bool  bNewValue 
)
inline

Constructor for objects of the OdSaveStateFlagImpl class. Saves a flag and assigns it a new value.

Parameters
variable[in] Flag to save.
newValue[in] New value for a flag.

Definition at line 133 of file SaveState.h.

◆ ~OdSaveStateFlagImpl()

template<class T , T flag>
OdSaveStateFlagImpl< T, flag >::~OdSaveStateFlagImpl ( )
inline

Destructor for objects of the OdSaveStateFlagImpl class. Restores the old value of a flag.

Definition at line 143 of file SaveState.h.

Member Function Documentation

◆ operator bool()

template<class T , T flag>
OdSaveStateFlagImpl< T, flag >::operator bool ( ) const
inline

Returns the saved value of the flag.

Definition at line 151 of file SaveState.h.


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