SAVERESTORE< _CT > Class Template Reference

mi32/saverest.h - Save / Restore value class More...

#include <mi32/saverest.h>

List of all members.

Public Member Functions

 SAVERESTORE (_CT &item, _CT tempval)
 SAVERESTORE (_CT &item)
 ~SAVERESTORE ()

Detailed Description

template<class _CT>
class SAVERESTORE< _CT >

mi32/saverest.h - Save / Restore value class

Class to store the original value of the object, possibly set the object to a new value, and restore the object to the original value when instance goes out of scope


Constructor & Destructor Documentation

template<class _CT >
SAVERESTORE< _CT >::SAVERESTORE ( _CT &  item  )  [inline, explicit]

Constructor to save original values.

template<class _CT >
SAVERESTORE< _CT >::SAVERESTORE ( _CT &  item,
_CT  tempval 
) [inline]

Constructor to save original value and change to a new value.

template<class _CT >
SAVERESTORE< _CT >::~SAVERESTORE (  )  [inline]

Destructor to revert back to the original value.


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

Generated on Sun Oct 7 21:33:49 2012 for TNTsdk 2012 by  doxygen 1.6.1