LLVM API Documentation

Public Member Functions
llvm::SaveAndRestore< T > Struct Template Reference

A utility class that uses RAII to save and restore the value of a variable. More...

#include <SaveAndRestore.h>

List of all members.

Public Member Functions

 SaveAndRestore (T &X)
 SaveAndRestore (T &X, const T &NewValue)
 ~SaveAndRestore ()
T get ()

Detailed Description

template<typename T>
struct llvm::SaveAndRestore< T >

A utility class that uses RAII to save and restore the value of a variable.

Definition at line 22 of file SaveAndRestore.h.


Constructor & Destructor Documentation

template<typename T>
llvm::SaveAndRestore< T >::SaveAndRestore ( T X) [inline]

Definition at line 23 of file SaveAndRestore.h.

template<typename T>
llvm::SaveAndRestore< T >::SaveAndRestore ( T X,
const T NewValue 
) [inline]

Definition at line 24 of file SaveAndRestore.h.

template<typename T>
llvm::SaveAndRestore< T >::~SaveAndRestore ( ) [inline]

Definition at line 27 of file SaveAndRestore.h.


Member Function Documentation

template<typename T>
T llvm::SaveAndRestore< T >::get ( ) [inline]

Definition at line 28 of file SaveAndRestore.h.


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