Navigation

Operators and Keywords

Function List:

C++ API

onCleanup.cc File Reference

#include "defun-dld.h"
#include "ov-base.h"
#include "ov.h"
#include "ov-fcn.h"
#include "ov-usr-fcn.h"
#include "pt-misc.h"
#include "toplev.h"
Include dependency graph for onCleanup.cc:

Classes

class  octave_oncleanup

Functions

 DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (octave_oncleanup,"onCleanup","onCleanup")
 DEFUN_DLD (onCleanup, args,,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {@var{c} =} onCleanup (@var{action})\n\ Create a special object that executes a given function upon destruction.\n\ If the object is copied to multiple variables (or cell or struct array\n\ elements) or returned from a function, @var{action} will be executed after\n\ clearing the last copy of the object. Note that if multiple local onCleanup\n\ variables are created, the order in which they are called is unspecified.\n\ @seealso{unwind_protect}\n\ @end deftypefn")

Function Documentation

DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA ( octave_oncleanup  ,
"onCleanup"  ,
"onCleanup"   
)
DEFUN_DLD ( onCleanup  ,
args   
)
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines