Classes | Public Member Functions | Private Member Functions | Private Attributes

unwind_protect Class Reference

#include "unwind-prot.h"

Inheritance diagram for unwind_protect:
Inheritance graph
[legend]
Collaboration diagram for unwind_protect:
Collaboration graph
[legend]

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)
 ~unwind_protect (void)
void add (elem *new_elem)
void add (void(*fcn)(void *), void *ptr=0)
template<class T >
void add_delete (T *obj)
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))
void discard (void)
void discard_top (int num)
void discard_top (void)
 operator bool (void) const
template<class T >
void protect_var (T &var, const T &val)
template<class T >
void protect_var (T &var)
void run (void)
void run_top (int num)
void run_top (void)

Private Member Functions

 unwind_protect (const unwind_protect &)
unwind_protectoperator= (const unwind_protect &)

Private Attributes

elemhead

Detailed Description

Definition at line 33 of file unwind-prot.h.


Constructor & Destructor Documentation

unwind_protect::unwind_protect ( void   )  [inline]

Definition at line 185 of file unwind-prot.h.

unwind_protect::~unwind_protect ( void   )  [inline]

Definition at line 301 of file unwind-prot.h.

unwind_protect::unwind_protect ( const unwind_protect  )  [private]

Member Function Documentation

void unwind_protect::add ( elem new_elem  )  [inline]

Definition at line 187 of file unwind-prot.h.

References unwind_protect::elem::next.

Referenced by call_mex().

void unwind_protect::add ( void(*)(void *)  fcn,
void *  ptr = 0 
) [inline]

Definition at line 194 of file unwind-prot.h.

template<class T >
void unwind_protect::add_delete ( T *  obj  )  [inline]

Definition at line 229 of file unwind-prot.h.

Referenced by get_data_and_bytesize(), and run_command_and_return_output().

template<class T >
void unwind_protect::add_fcn ( void(*)(T)  action,
val 
) [inline]

Definition at line 207 of file unwind-prot.h.

template<class T >
void unwind_protect::add_fcn ( void(*)(const T &)  action,
val 
) [inline]

Definition at line 214 of file unwind-prot.h.

void unwind_protect::add_fcn ( void(*)(void)  fcn  )  [inline]
template<class T >
void unwind_protect::add_method ( T *  obj,
void(T::*)(void)  method 
) [inline]

Definition at line 221 of file unwind-prot.h.

Referenced by octave_user_function::do_multi_index_op().

void unwind_protect::discard ( void   )  [inline]

Definition at line 292 of file unwind-prot.h.

Referenced by DEFUN_DLD().

void unwind_protect::discard_top ( void   )  [inline]
void unwind_protect::discard_top ( int  num  )  [inline]

Definition at line 280 of file unwind-prot.h.

unwind_protect::operator bool ( void   )  const [inline]

Definition at line 248 of file unwind-prot.h.

unwind_protect& unwind_protect::operator= ( const unwind_protect  )  [private]
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]

Definition at line 243 of file unwind-prot.h.

void unwind_protect::run ( void   )  [inline]
void unwind_protect::run_top ( int  num  )  [inline]

Definition at line 264 of file unwind-prot.h.

void unwind_protect::run_top ( void   )  [inline]

Member Data Documentation

Definition at line 308 of file unwind-prot.h.


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