35#ifndef _CHOMP_STRUCT_LOCALVAR_H_
36#define _CHOMP_STRUCT_LOCALVAR_H_
52template <
class varType>
61 local_var (varType &_variable,
const varType &_newValue);
78template <
class varType>
80 var (_variable), value (_variable)
85template <
class varType>
87 const varType &_newValue): var (_variable), value (_variable)
89 _variable = _newValue;
93template <
class varType>
const varType value
The original value of the variable which is going to be restored upon destruction of the guardian obj...
varType & var
Reference to the global variable.
local_var(varType &_variable)
The constructor of a local variable guardian.
~local_var()
The destructor of a local variable guardian.
This namespace contains the entire CHomP library interface.