foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
pfc::vartoggle_t< T >

#include <other.h>

Public Member Functions

 vartoggle_t (T &p_var, const T &val)
 
 ~vartoggle_t ()
 

Private Attributes

T oldval
 
Tvar
 

Detailed Description

template<class T>
class pfc::vartoggle_t< T >

Definition at line 6 of file other.h.

Constructor & Destructor Documentation

template<class T>
pfc::vartoggle_t< T >::vartoggle_t ( T p_var,
const T val 
)
inline

Definition at line 9 of file other.h.

9  : var(p_var) {
10  oldval = var;
11  var = val;
12  }
template<class T>
pfc::vartoggle_t< T >::~vartoggle_t ( )
inline

Definition at line 13 of file other.h.

13 {var = oldval;}

Field Documentation

template<class T>
T pfc::vartoggle_t< T >::oldval
private

Definition at line 7 of file other.h.

template<class T>
T& pfc::vartoggle_t< T >::var
private

Definition at line 7 of file other.h.


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