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 226 of file Project.cpp.

Constructor & Destructor Documentation

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

Definition at line 229 of file Project.cpp.

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

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

Definition at line 236 of file Project.cpp.

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

237  {
238  *mVar = mValExit;
239  }
T * mVar
Definition: Project.cpp:241

Member Data Documentation

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

Definition at line 242 of file Project.cpp.

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

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

Definition at line 241 of file Project.cpp.

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


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