Public Member Functions | |
mex (const mex &)=delete | |
mex (octave_mex_function *f) | |
~mex (void) | |
void * | calloc (size_t n, size_t t) |
void * | calloc_unmarked (size_t n, size_t t) |
octave_mex_function * | current_mex_function (void) const |
void | free (void *ptr) |
bool | free_value (mxArray *ptr) |
const char * | function_name (void) const |
mxArray * | make_value (const octave_value &ov) |
void * | malloc (size_t n) |
void * | malloc_unmarked (size_t n) |
void | mark (void *ptr) |
mxArray * | mark_array (mxArray *ptr) |
void | mark_foreign (void *ptr) |
mex & | operator= (const mex &)=delete |
void * | realloc (void *ptr, size_t n) |
void | unmark (void *ptr) |
void | unmark_array (mxArray *ptr) |
void | unmark_foreign (void *ptr) |
Public Attributes | |
int | trap_feval_error = 0 |
Private Member Functions | |
void | global_mark (void *ptr) |
void | global_unmark (void *ptr) |
Private Attributes | |
std::set< mxArray * > | arraylist |
octave_mex_function * | curr_mex_fcn |
char * | fname |
std::set< void * > | foreign_memlist |
std::set< void * > | memlist |
Static Private Attributes | |
static std::set< void * > | global_memlist |
|
inline |
|
delete |
|
inline |
|
inline |
Definition at line 2225 of file mex.cc.
References calloc_unmarked(), mark(), and n.
Referenced by mxCalloc().
|
inline |
Definition at line 2215 of file mex.cc.
References malloc_unmarked(), and n.
Referenced by calloc(), and mxArray::calloc().
|
inline |
|
inline |
Definition at line 2270 of file mex.cc.
References foreign_memlist, global_memlist, unmark(), warning(), and xfree().
Referenced by mxFree().
|
inline |
Definition at line 2370 of file mex.cc.
References arraylist, and warning().
Referenced by mxDestroyArray().
|
inline |
Definition at line 2166 of file mex.cc.
References octave::__get_evaluator__(), octave::tree_evaluator::current_function(), fname, octave_function::name(), and mxArray::strsave().
Referenced by ~mex(), global_mark(), global_unmark(), malloc_unmarked(), mark(), mark_foreign(), mexFunctionName(), unmark(), and unmark_foreign().
|
inlineprivate |
Definition at line 2420 of file mex.cc.
References function_name(), global_memlist, and warning().
Referenced by malloc_unmarked().
|
inlineprivate |
Definition at line 2431 of file mex.cc.
References function_name(), global_memlist, and warning().
|
inline |
Definition at line 2364 of file mex.cc.
References mark_array().
Referenced by mexCallMATLAB(), and mexGetVariable().
|
inline |
Definition at line 2205 of file mex.cc.
References malloc_unmarked(), mark(), and n.
Referenced by mxMalloc(), and realloc().
|
inline |
Definition at line 2188 of file mex.cc.
References error(), function_name(), global_mark(), malloc(), and n.
Referenced by calloc_unmarked(), malloc(), and mxArray::malloc().
|
inline |
Definition at line 2323 of file mex.cc.
References arraylist.
Referenced by make_value(), and maybe_mark_array().
|
inline |
Definition at line 2338 of file mex.cc.
References foreign_memlist, function_name(), and warning().
Referenced by maybe_mark_foreign().
|
inline |
Definition at line 2237 of file mex.cc.
References global_memlist, malloc(), memlist, and n.
Referenced by mxRealloc().
|
inline |
Definition at line 2311 of file mex.cc.
References function_name(), memlist, and warning().
Referenced by free(), and maybe_unmark().
|
inline |
|
inline |
Definition at line 2349 of file mex.cc.
References foreign_memlist, function_name(), and warning().
|
private |
Definition at line 2407 of file mex.cc.
Referenced by ~mex(), free_value(), mark_array(), and unmark_array().
|
private |
Definition at line 2401 of file mex.cc.
Referenced by current_mex_function().
|
mutableprivate |
Definition at line 2414 of file mex.cc.
Referenced by ~mex(), and function_name().
|
private |
Definition at line 2411 of file mex.cc.
Referenced by free(), mark_foreign(), and unmark_foreign().
|
staticprivate |
Definition at line 2417 of file mex.cc.
Referenced by free(), global_mark(), global_unmark(), and realloc().
|
private |
int mex::trap_feval_error = 0 |
Definition at line 2396 of file mex.cc.
Referenced by mexCallMATLAB(), mexCallMATLABWithTrap(), and mexSetTrapFlag().