mi32/saverest.h - Save / Restore value class More...
#include <mi32/saverest.h>
Public Member Functions | |
| SAVERESTORE (_CT &item, _CT tempval) | |
| SAVERESTORE (_CT &item) | |
| ~SAVERESTORE () | |
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
| SAVERESTORE< _CT >::SAVERESTORE | ( | _CT & | item | ) | [inline, explicit] |
Constructor to save original values.
| SAVERESTORE< _CT >::SAVERESTORE | ( | _CT & | item, | |
| _CT | tempval | |||
| ) | [inline] |
Constructor to save original value and change to a new value.
| SAVERESTORE< _CT >::~SAVERESTORE | ( | ) | [inline] |
Destructor to revert back to the original value.
1.6.1