CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
OdSaveStateFunc< ObjType, ValType > Class Template Reference

#include <SaveState.h>

Public Member Functions

 OdSaveStateFunc (ObjType *pObj, ValType(ObjType::*getFunc)() const, void(ObjType::*setFunc)(ValType))
 
 OdSaveStateFunc (ObjType *pObj, ValType(ObjType::*getFunc)() const, void(ObjType::*setFunc)(ValType), ValType newValue)
 
 ~OdSaveStateFunc ()
 

Protected Attributes

ObjType * m_pObj
 
ValType(ObjType::* m_getFunc )() const
 
void(ObjType::* m_setFunc )(ValType)
 
ValType m_oldValue
 

Detailed Description

template<typename ObjType, typename ValType>
class OdSaveStateFunc< ObjType, ValType >

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

<group Other_Classes>

Definition at line 216 of file SaveState.h.

Constructor & Destructor Documentation

◆ OdSaveStateFunc() [1/2]

template<typename ObjType , typename ValType >
OdSaveStateFunc< ObjType, ValType >::OdSaveStateFunc ( ObjType *  pObj,
ValType(ObjType::*)() const  getFunc,
void(ObjType::*)(ValType)  setFunc 
)
inline

Constructor for objects of the OdSaveStateFunc class.

Definition at line 222 of file SaveState.h.

◆ OdSaveStateFunc() [2/2]

template<typename ObjType , typename ValType >
OdSaveStateFunc< ObjType, ValType >::OdSaveStateFunc ( ObjType *  pObj,
ValType(ObjType::*)() const  getFunc,
void(ObjType::*)(ValType)  setFunc,
ValType  newValue 
)
inline

Constructor for objects of the OdSaveStateFunc class.

Definition at line 232 of file SaveState.h.

◆ ~OdSaveStateFunc()

template<typename ObjType , typename ValType >
OdSaveStateFunc< ObjType, ValType >::~OdSaveStateFunc ( )
inline

Destructor for objects of the OdSaveStateFunc class. Restores the old value of a function.

Definition at line 244 of file SaveState.h.

Member Data Documentation

◆ m_getFunc

template<typename ObjType , typename ValType >
ValType(ObjType::* OdSaveStateFunc< ObjType, ValType >::m_getFunc) () const
protected

Definition at line 250 of file SaveState.h.

◆ m_oldValue

template<typename ObjType , typename ValType >
ValType OdSaveStateFunc< ObjType, ValType >::m_oldValue
protected

Definition at line 252 of file SaveState.h.

◆ m_pObj

template<typename ObjType , typename ValType >
ObjType* OdSaveStateFunc< ObjType, ValType >::m_pObj
protected

Definition at line 249 of file SaveState.h.

◆ m_setFunc

template<typename ObjType , typename ValType >
void(ObjType::* OdSaveStateFunc< ObjType, ValType >::m_setFunc) (ValType)
protected

Definition at line 251 of file SaveState.h.


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