Audacity  2.2.2
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 224 of file Project.cpp.

Constructor & Destructor Documentation

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

Definition at line 227 of file Project.cpp.

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

228  {
229  mVar = var;
230  mValExit = val_exit;
231  *var = val_entry;
232  }
T * mVar
Definition: Project.cpp:239
template<typename T>
VarSetter< T >::~VarSetter ( )
inline

Definition at line 234 of file Project.cpp.

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

235  {
236  *mVar = mValExit;
237  }
T * mVar
Definition: Project.cpp:239

Member Data Documentation

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

Definition at line 240 of file Project.cpp.

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

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

Definition at line 239 of file Project.cpp.

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


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