SourceForge.net Logo
AutoReset< T > Class Template Reference

#include <ContextHelpers.hpp>

Public Member Functions

 AutoReset (T &orig)
 ~AutoReset ()
void reset ()

Protected Attributes

T & orig_
old_

Constructor & Destructor Documentation

◆ AutoReset()

template<typename T>
AutoReset< T >::AutoReset ( T & orig)
inline

References old_, and orig_.

◆ ~AutoReset()

template<typename T>
AutoReset< T >::~AutoReset ( )
inline

References reset().

Member Function Documentation

◆ reset()

template<typename T>
void AutoReset< T >::reset ( )
inline

References old_, and orig_.

Referenced by ~AutoReset().

Member Data Documentation

◆ old_

template<typename T>
T AutoReset< T >::old_
protected

Referenced by AutoReset(), and reset().

◆ orig_

template<typename T>
T& AutoReset< T >::orig_
protected

Referenced by AutoReset(), and reset().


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