Audacity  2.3.1
Public Member Functions | Private Attributes | List of all members
VarSetter< T > Class Template Reference

Public Member Functions

 VarSetter (T *var, T val_entry, T val_exit)
 
 ~VarSetter ()
 

Private Attributes

T * mVar
 
mValExit
 

Detailed Description

template<typename T>
class VarSetter< T >

Definition at line 227 of file Project.cpp.

Constructor & Destructor Documentation

template<typename T>
VarSetter< T >::VarSetter ( T *  var,
val_entry,
val_exit 
)
inline

Definition at line 230 of file Project.cpp.

References VarSetter< T >::mValExit, and VarSetter< T >::mVar.

231  {
232  mVar = var;
233  mValExit = val_exit;
234  *var = val_entry;
235  }
T * mVar
Definition: Project.cpp:242
template<typename T>
VarSetter< T >::~VarSetter ( )
inline

Definition at line 237 of file Project.cpp.

References VarSetter< T >::mValExit, and VarSetter< T >::mVar.

238  {
239  *mVar = mValExit;
240  }
T * mVar
Definition: Project.cpp:242

Member Data Documentation

template<typename T>
T VarSetter< T >::mValExit
private

Definition at line 243 of file Project.cpp.

Referenced by VarSetter< T >::VarSetter(), and VarSetter< T >::~VarSetter().

template<typename T>
T* VarSetter< T >::mVar
private

Definition at line 242 of file Project.cpp.

Referenced by VarSetter< T >::VarSetter(), and VarSetter< T >::~VarSetter().


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