Navigation

Operators and Keywords

Function List:

C++ API

unwind_protect Class Reference

#include <unwind-prot.h>

Inherited by unwind_protect_safe.

Collaboration diagram for unwind_protect:

List of all members.

Classes

class  delete_ptr_elem
class  elem
class  fcn_arg_elem
class  fcn_crefarg_elem
class  fcn_elem
class  method_elem
class  restore_var_elem

Public Member Functions

 unwind_protect (void)
void add (elem *new_elem)
void add (void(*fcn)(void *), void *ptr=0)
void add_fcn (void(*fcn)(void))
template<class T >
void add_fcn (void(*action)(T), T val)
template<class T >
void add_fcn (void(*action)(const T &), T val)
template<class T >
void add_method (T *obj, void(T::*method)(void))
template<class T >
void add_delete (T *obj)
template<class T >
void protect_var (T &var)
template<class T >
void protect_var (T &var, const T &val)
 operator bool (void) const
void run_top (void)
void run_top (int num)
void discard_top (void)
void discard_top (int num)
void run (void)
void discard (void)
 ~unwind_protect (void)

Constructor & Destructor Documentation

unwind_protect::unwind_protect ( void   )  [inline]
unwind_protect::~unwind_protect ( void   )  [inline]

Member Function Documentation

void unwind_protect::add ( elem new_elem  )  [inline]
void unwind_protect::add ( void(*)(void *)  fcn,
void *  ptr = 0 
) [inline]
template<class T >
void unwind_protect::add_delete ( T *  obj  )  [inline]
template<class T >
void unwind_protect::add_fcn ( void(*)(T)  action,
val 
) [inline]
template<class T >
void unwind_protect::add_fcn ( void(*)(const T &)  action,
val 
) [inline]
void unwind_protect::add_fcn ( void(*)(void)  fcn  )  [inline]
template<class T >
void unwind_protect::add_method ( T *  obj,
void(T::*)(void)  method 
) [inline]
void unwind_protect::discard ( void   )  [inline]
void unwind_protect::discard_top ( void   )  [inline]
void unwind_protect::discard_top ( int  num  )  [inline]
unwind_protect::operator bool ( void   )  const [inline]
template<class T >
void unwind_protect::protect_var ( T &  var  )  [inline]
template<class T >
void unwind_protect::protect_var ( T &  var,
const T &  val 
) [inline]
void unwind_protect::run ( void   )  [inline]
void unwind_protect::run_top ( void   )  [inline]
void unwind_protect::run_top ( int  num  )  [inline]

The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines