Public Member Functions | |
mex (octave_mex_function *f) | |
mex (const mex &)=delete | |
~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 |
Definition at line 2213 of file mex.cc.
References calloc_unmarked(), mark(), and t.
Referenced by mxCalloc().
Definition at line 2203 of file mex.cc.
References malloc_unmarked(), and t.
Referenced by mxArray::calloc(), and calloc().
|
inline |
|
inline |
Definition at line 2256 of file mex.cc.
References foreign_memlist, global_memlist, p, unmark(), warning(), and xfree().
Referenced by mxFree().
|
inline |
Definition at line 2154 of file mex.cc.
References octave::__get_call_stack__(), cs, octave::call_stack::current(), fcn, fname, octave_function::name(), nm, string, and mxArray::strsave().
Referenced by global_mark(), global_unmark(), malloc_unmarked(), mark(), mark_foreign(), mexFunctionName(), unmark(), unmark_foreign(), and ~mex().
|
inlineprivate |
Definition at line 2406 of file mex.cc.
References function_name(), global_memlist, and warning().
Referenced by malloc_unmarked().
|
inlineprivate |
Definition at line 2417 of file mex.cc.
References function_name(), global_memlist, p, and warning().
|
inline |
Definition at line 2350 of file mex.cc.
References mark_array().
Referenced by mexCallMATLAB(), and mexGetVariable().
|
inline |
Definition at line 2193 of file mex.cc.
References malloc_unmarked(), and mark().
Referenced by mxMalloc(), and realloc().
|
inline |
Definition at line 2176 of file mex.cc.
References error(), function_name(), and global_mark().
Referenced by calloc_unmarked(), mxArray::malloc(), and malloc().
|
inline |
Definition at line 2309 of file mex.cc.
References arraylist.
Referenced by make_value(), and maybe_mark_array().
|
inline |
Definition at line 2324 of file mex.cc.
References foreign_memlist, function_name(), and warning().
Referenced by maybe_mark_foreign().
|
inline |
Definition at line 2225 of file mex.cc.
References global_memlist, malloc(), memlist, and p.
Referenced by mxRealloc().
|
inline |
Definition at line 2297 of file mex.cc.
References function_name(), memlist, p, and warning().
Referenced by free(), and maybe_unmark().
|
inline |
Definition at line 2315 of file mex.cc.
Referenced by maybe_unmark_array().
|
inline |
Definition at line 2335 of file mex.cc.
References foreign_memlist, function_name(), p, and warning().
Definition at line 2393 of file mex.cc.
Referenced by free_value(), mark_array(), unmark_array(), and ~mex().
|
private |
Definition at line 2387 of file mex.cc.
Referenced by current_mex_function().
|
mutableprivate |
Definition at line 2400 of file mex.cc.
Referenced by function_name(), and ~mex().
|
private |
Definition at line 2397 of file mex.cc.
Referenced by free(), mark_foreign(), and unmark_foreign().
|
staticprivate |
Definition at line 2403 of file mex.cc.
Referenced by free(), global_mark(), global_unmark(), and realloc().
|
private |
int mex::trap_feval_error = 0 |
Definition at line 2382 of file mex.cc.
Referenced by mexCallMATLAB(), mexCallMATLABWithTrap(), and mexSetTrapFlag().