Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  
Public Member Functions | Private Member Functions | Private Attributes

SgAssertRestored< T > Class Template Reference

Saves the current state of a variable of type T and asserts that the saved value equals the value upon leaving the scope. More...

#include <SgRestorer.h>

List of all members.

Public Member Functions

 SgAssertRestored (T *oldState)
 ~SgAssertRestored ()

Private Member Functions

 SgAssertRestored (const SgAssertRestored &)
 Not implemented.
SgAssertRestoredoperator= (const SgAssertRestored &)
 Not implemented.

Private Attributes

T * m_variable
m_oldState

Detailed Description

template<class T>
class SgAssertRestored< T >

Saves the current state of a variable of type T and asserts that the saved value equals the value upon leaving the scope.

Definition at line 45 of file SgRestorer.h.


Constructor & Destructor Documentation

template<class T >
SgAssertRestored< T >::SgAssertRestored ( T *  oldState  )  [explicit]

Definition at line 48 of file SgRestorer.h.

template<class T >
SgAssertRestored< T >::~SgAssertRestored (  ) 
template<class T >
SgAssertRestored< T >::SgAssertRestored ( const SgAssertRestored< T > &   )  [private]

Not implemented.


Member Function Documentation

template<class T >
SgAssertRestored& SgAssertRestored< T >::operator= ( const SgAssertRestored< T > &   )  [private]

Not implemented.


Member Data Documentation

template<class T >
T SgAssertRestored< T >::m_oldState [private]

Definition at line 61 of file SgRestorer.h.

Referenced by SgAssertRestored< T >::~SgAssertRestored().

template<class T >
T* SgAssertRestored< T >::m_variable [private]

Definition at line 59 of file SgRestorer.h.

Referenced by SgAssertRestored< T >::~SgAssertRestored().


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


Sun Mar 13 2011 Doxygen 1.7.1