#include <cstdarg>
#include <cstdlib>
#include <cstring>
#include <cctype>
#include <limits>
#include <map>
#include <set>
#include <string>
#include "f77-fcn.h"
#include "lo-ieee.h"
#include "oct-locbuf.h"
#include "quit.h"
#include "Cell.h"
#include "error.h"
#include "interpreter-private.h"
#include "interpreter.h"
#include "mxarray.h"
#include "mexproto.h"
#include "oct-map.h"
#include "ovl.h"
#include "ov.h"
#include "ov-classdef.h"
#include "ov-mex-fcn.h"
#include "ov-usr-fcn.h"
#include "pager.h"
#include "parse.h"
#include "unwind-prot.h"
#include "utils.h"
#include "variables.h"
#include "graphics.h"
Go to the source code of this file.
Classes | |
class | mex |
class | mxArray_cell |
class | mxArray_matlab |
class | mxArray_number |
class | mxArray_octave_value |
class | mxArray_sparse |
class | mxArray_struct |
Typedefs | |
typedef void(* | cmex_fptr) (int nlhs, mxArray **plhs, int nrhs, mxArray **prhs) |
typedef F77_RET_T(* | fmex_fptr) (F77_INT &nlhs, mxArray **plhs, F77_INT &nrhs, mxArray **prhs) |
Functions | |
static mwIndex | calc_single_subscript_internal (mwSize ndims, const mwSize *dims, mwSize nsubs, const mwIndex *subs) |
octave_value_list | call_mex (octave_mex_function &mex_fcn, const octave_value_list &args, int nargout_arg) |
static mwSize | max_str_len (mwSize m, const char **str) |
static mxArray * | maybe_mark_array (mxArray *ptr) |
static void * | maybe_mark_foreign (void *ptr) |
static void * | maybe_unmark (void *ptr) |
static mxArray * | maybe_unmark_array (mxArray *ptr) |
int | mexAtExit (void(*f)(void)) |
int | mexCallMATLAB (int nargout, mxArray *argout[], int nargin, mxArray *argin[], const char *fname) |
mxArray * | mexCallMATLABWithTrap (int nargout, mxArray *argout[], int nargin, mxArray *argin[], const char *fname) |
void | mexErrMsgIdAndTxt (const char *id, const char *fmt,...) |
void | mexErrMsgTxt (const char *s) |
int | mexEvalString (const char *s) |
mxArray * | mexEvalStringWithTrap (const char *s) |
const char * | mexFunctionName (void) |
const mxArray * | mexGet (double handle, const char *property) |
mxArray * | mexGetVariable (const char *space, const char *name) |
const mxArray * | mexGetVariablePtr (const char *space, const char *name) |
int | mexIsGlobal (const mxArray *ptr) |
int | mexIsLocked (void) |
void | mexLock (void) |
void | mexMakeArrayPersistent (mxArray *ptr) |
void | mexMakeMemoryPersistent (void *ptr) |
int | mexPrintf (const char *fmt,...) |
int | mexPutVariable (const char *space, const char *name, const mxArray *ptr) |
int | mexSet (double handle, const char *property, mxArray *val) |
void | mexSetTrapFlag (int flag) |
void | mexUnlock (void) |
void | mexWarnMsgIdAndTxt (const char *id, const char *fmt,...) |
void | mexWarnMsgTxt (const char *s) |
int | mxAddField (mxArray *ptr, const char *key) |
char * | mxArrayToString (const mxArray *ptr) |
mwIndex | mxCalcSingleSubscript (const mxArray *ptr, mwSize nsubs, mwIndex *subs) |
void * | mxCalloc (size_t n, size_t size) |
mxArray * | mxCreateCellArray (mwSize ndims, const mwSize *dims) |
mxArray * | mxCreateCellMatrix (mwSize m, mwSize n) |
mxArray * | mxCreateCharArray (mwSize ndims, const mwSize *dims) |
mxArray * | mxCreateCharMatrixFromStrings (mwSize m, const char **str) |
mxArray * | mxCreateDoubleMatrix (mwSize m, mwSize n, mxComplexity flag) |
mxArray * | mxCreateDoubleScalar (double val) |
mxArray * | mxCreateLogicalArray (mwSize ndims, const mwSize *dims) |
mxArray * | mxCreateLogicalMatrix (mwSize m, mwSize n) |
mxArray * | mxCreateLogicalScalar (mxLogical val) |
mxArray * | mxCreateNumericArray (mwSize ndims, const mwSize *dims, mxClassID class_id, mxComplexity flag) |
mxArray * | mxCreateNumericMatrix (mwSize m, mwSize n, mxClassID class_id, mxComplexity flag) |
mxArray * | mxCreateSparse (mwSize m, mwSize n, mwSize nzmax, mxComplexity flag) |
mxArray * | mxCreateSparseLogicalMatrix (mwSize m, mwSize n, mwSize nzmax) |
mxArray * | mxCreateString (const char *str) |
mxArray * | mxCreateStructArray (mwSize ndims, const mwSize *dims, int num_keys, const char **keys) |
mxArray * | mxCreateStructMatrix (mwSize m, mwSize n, int num_keys, const char **keys) |
mxArray * | mxCreateUninitNumericArray (mwSize ndims, const mwSize *dims, mxClassID class_id, mxComplexity flag) |
mxArray * | mxCreateUninitNumericMatrix (mwSize m, mwSize n, mxClassID class_id, mxComplexity flag) |
void | mxDestroyArray (mxArray *ptr) |
mxArray * | mxDuplicateArray (const mxArray *ptr) |
void | mxFree (void *ptr) |
mxArray * | mxGetCell (const mxArray *ptr, mwIndex idx) |
mxChar * | mxGetChars (const mxArray *ptr) |
mxClassID | mxGetClassID (const mxArray *ptr) |
const char * | mxGetClassName (const mxArray *ptr) |
void * | mxGetData (const mxArray *ptr) |
const mwSize * | mxGetDimensions (const mxArray *ptr) |
size_t | mxGetElementSize (const mxArray *ptr) |
double | mxGetEps (void) |
mxArray * | mxGetField (const mxArray *ptr, mwIndex index, const char *key) |
mxArray * | mxGetFieldByNumber (const mxArray *ptr, mwIndex index, int key_num) |
const char * | mxGetFieldNameByNumber (const mxArray *ptr, int key_num) |
int | mxGetFieldNumber (const mxArray *ptr, const char *key) |
void * | mxGetImagData (const mxArray *ptr) |
double | mxGetInf (void) |
mwIndex * | mxGetIr (const mxArray *ptr) |
mwIndex * | mxGetJc (const mxArray *ptr) |
mxLogical * | mxGetLogicals (const mxArray *ptr) |
size_t | mxGetM (const mxArray *ptr) |
size_t | mxGetN (const mxArray *ptr) |
double | mxGetNaN (void) |
mwSize | mxGetNumberOfDimensions (const mxArray *ptr) |
size_t | mxGetNumberOfElements (const mxArray *ptr) |
int | mxGetNumberOfFields (const mxArray *ptr) |
mwSize | mxGetNzmax (const mxArray *ptr) |
double * | mxGetPi (const mxArray *ptr) |
double * | mxGetPr (const mxArray *ptr) |
mxArray * | mxGetProperty (const mxArray *ptr, mwIndex idx, const char *property_name) |
double | mxGetScalar (const mxArray *ptr) |
int | mxGetString (const mxArray *ptr, char *buf, mwSize buflen) |
bool | mxIsCell (const mxArray *ptr) |
bool | mxIsChar (const mxArray *ptr) |
bool | mxIsClass (const mxArray *ptr, const char *name) |
bool | mxIsComplex (const mxArray *ptr) |
bool | mxIsDouble (const mxArray *ptr) |
bool | mxIsEmpty (const mxArray *ptr) |
bool | mxIsFinite (const double v) |
bool | mxIsFromGlobalWS (const mxArray *) |
bool | mxIsFunctionHandle (const mxArray *ptr) |
bool | mxIsInf (const double v) |
bool | mxIsInt16 (const mxArray *ptr) |
bool | mxIsInt32 (const mxArray *ptr) |
bool | mxIsInt64 (const mxArray *ptr) |
bool | mxIsInt8 (const mxArray *ptr) |
bool | mxIsLogical (const mxArray *ptr) |
bool | mxIsLogicalScalar (const mxArray *ptr) |
bool | mxIsLogicalScalarTrue (const mxArray *ptr) |
bool | mxIsNaN (const double v) |
bool | mxIsNumeric (const mxArray *ptr) |
bool | mxIsScalar (const mxArray *ptr) |
bool | mxIsSingle (const mxArray *ptr) |
bool | mxIsSparse (const mxArray *ptr) |
bool | mxIsStruct (const mxArray *ptr) |
bool | mxIsUint16 (const mxArray *ptr) |
bool | mxIsUint32 (const mxArray *ptr) |
bool | mxIsUint64 (const mxArray *ptr) |
bool | mxIsUint8 (const mxArray *ptr) |
void * | mxMalloc (size_t n) |
void * | mxRealloc (void *ptr, size_t size) |
void | mxRemoveField (mxArray *ptr, int key_num) |
void | mxSetCell (mxArray *ptr, mwIndex idx, mxArray *val) |
void | mxSetClassName (mxArray *ptr, const char *name) |
void | mxSetData (mxArray *ptr, void *pr) |
int | mxSetDimensions (mxArray *ptr, const mwSize *dims, mwSize ndims) |
void | mxSetField (mxArray *ptr, mwIndex index, const char *key, mxArray *val) |
void | mxSetFieldByNumber (mxArray *ptr, mwIndex index, int key_num, mxArray *val) |
void | mxSetImagData (mxArray *ptr, void *pi) |
void | mxSetIr (mxArray *ptr, mwIndex *ir) |
void | mxSetJc (mxArray *ptr, mwIndex *jc) |
void | mxSetM (mxArray *ptr, mwSize m) |
void | mxSetN (mxArray *ptr, mwSize n) |
void | mxSetNzmax (mxArray *ptr, mwSize nzmax) |
void | mxSetPi (mxArray *ptr, double *pi) |
void | mxSetPr (mxArray *ptr, double *pr) |
void | mxSetProperty (mxArray *ptr, mwIndex idx, const char *property_name, const mxArray *property_value) |
static int | valid_key (const char *key) |
static void | xfree (void *ptr) |
Variables | |
mex * | mex_context = nullptr |
std::map< std::string, int > | mex_lock_count |
|
static |
Definition at line 116 of file mex.cc.
Referenced by mxArray_octave_value::calc_single_subscript(), and mxArray_matlab::calc_single_subscript().
octave_value_list call_mex | ( | octave_mex_function & | mex_fcn, |
const octave_value_list & | args, | ||
int | nargout_arg | ||
) |
Definition at line 3155 of file mex.cc.
References mxArray::as_octave_value(), octave::context, octave_mex_function::is_fmex(), octave_value_list::length(), mex_context, octave_mex_function::mex_fcn_ptr(), OCTAVE_LOCAL_BUFFER, octave::action_container::protect_var(), Array< T >::resize(), and retval.
Referenced by octave_mex_function::execute().
Definition at line 2576 of file mex.cc.
References mex::mark_array(), and mex_context.
Referenced by mxCreateCellArray(), mxCreateCellMatrix(), mxCreateCharArray(), mxCreateCharMatrixFromStrings(), mxCreateDoubleMatrix(), mxCreateDoubleScalar(), mxCreateLogicalArray(), mxCreateLogicalMatrix(), mxCreateLogicalScalar(), mxCreateNumericArray(), mxCreateNumericMatrix(), mxCreateSparse(), mxCreateSparseLogicalMatrix(), mxCreateString(), mxCreateStructArray(), mxCreateStructMatrix(), mxCreateUninitNumericArray(), mxCreateUninitNumericMatrix(), and mxDuplicateArray().
|
inlinestatic |
Definition at line 2464 of file mex.cc.
References mex::mark_foreign(), and mex_context.
Referenced by mxArray_octave_value::get_data(), mxArray_octave_value::get_ir(), and mxArray_octave_value::get_jc().
|
inlinestatic |
Definition at line 2482 of file mex.cc.
References mex_context, and mex::unmark().
Referenced by mexMakeMemoryPersistent(), mxSetData(), mxSetDimensions(), mxSetImagData(), mxSetIr(), mxSetJc(), mxSetPi(), and mxSetPr().
Definition at line 2473 of file mex.cc.
References mex_context, and mex::unmark_array().
Referenced by mexMakeArrayPersistent(), mxArray_cell::set_cell(), and mxArray_struct::set_field_by_number().
int mexAtExit | ( | void(*)(void) | f | ) |
Definition at line 3628 of file mex.cc.
References octave_mex_function::atexit(), mex::current_mex_function(), f, and mex_context.
int mexCallMATLAB | ( | int | nargout, |
mxArray * | argout[], | ||
int | nargin, | ||
mxArray * | argin[], | ||
const char * | fname | ||
) |
Definition at line 3232 of file mex.cc.
References octave::__get_interpreter__(), mxArray::as_octave_value(), octave::feval(), octave::interpreter::get_evaluator(), octave::tree_evaluator::lvalue_list(), mex::make_value(), mex_context, octave::interpreter::recover_from_exception(), Array< T >::resize(), octave_value_list::resize(), retval, octave::tree_evaluator::set_lvalue_list(), and mex::trap_feval_error.
Referenced by mexCallMATLABWithTrap().
mxArray* mexCallMATLABWithTrap | ( | int | nargout, |
mxArray * | argout[], | ||
int | nargin, | ||
mxArray * | argin[], | ||
const char * | fname | ||
) |
Definition at line 3311 of file mex.cc.
References mex_context, mexCallMATLAB(), mexSetTrapFlag(), mxCreateCellMatrix(), mxCreateString(), mxCreateStructMatrix(), mxSetFieldByNumber(), and mex::trap_feval_error.
void mexErrMsgIdAndTxt | ( | const char * | id, |
const char * | fmt, | ||
... | |||
) |
Definition at line 3432 of file mex.cc.
References error(), len, mexFunctionName(), OCTAVE_LOCAL_BUFFER, strlen(), and verror_with_id().
void mexErrMsgTxt | ( | const char * | s | ) |
Definition at line 3409 of file mex.cc.
References error(), len, mexFunctionName(), and strlen().
Referenced by mexGetVariable(), mexPutVariable(), and mxIsFromGlobalWS().
int mexEvalString | ( | const char * | s | ) |
Definition at line 3342 of file mex.cc.
References octave::__get_interpreter__(), octave::interpreter::eval_string(), octave::interpreter::recover_from_exception(), and retval.
mxArray* mexEvalStringWithTrap | ( | const char * | s | ) |
Definition at line 3371 of file mex.cc.
References octave::__get_interpreter__(), octave::interpreter::eval_string(), mxCreateCellMatrix(), mxCreateString(), mxCreateStructMatrix(), mxSetFieldByNumber(), and octave::interpreter::recover_from_exception().
const char* mexFunctionName | ( | void | ) |
Definition at line 3226 of file mex.cc.
References mex::function_name(), and mex_context.
Referenced by mexErrMsgIdAndTxt(), mexErrMsgTxt(), mexIsLocked(), mexLock(), mexUnlock(), and mexWarnMsgIdAndTxt().
const mxArray* mexGet | ( | double | handle, |
const char * | property | ||
) |
Definition at line 3643 of file mex.cc.
References octave_value::as_mxArray(), get_property_from_handle(), octave_value::is_defined(), and m.
mxArray* mexGetVariable | ( | const char * | space, |
const char * | name | ||
) |
Definition at line 3507 of file mex.cc.
References octave::__get_interpreter__(), octave::action_container::add_method(), octave::tree_evaluator::current_call_stack_frame_number(), octave::interpreter::get_evaluator(), octave::interpreter::global_varval(), octave::tree_evaluator::goto_base_frame(), octave_value::is_defined(), mex::make_value(), mex_context, mexErrMsgTxt(), name, octave::tree_evaluator::restore_frame(), retval, octave::string::strcmp(), and octave::interpreter::varval().
Referenced by mexGetVariablePtr().
const mxArray* mexGetVariablePtr | ( | const char * | space, |
const char * | name | ||
) |
Definition at line 3558 of file mex.cc.
References mexGetVariable(), and name.
int mexIsGlobal | ( | const mxArray * | ptr | ) |
Definition at line 3656 of file mex.cc.
References mxIsFromGlobalWS().
int mexIsLocked | ( | void | ) |
Definition at line 3662 of file mex.cc.
References octave::__get_interpreter__(), mex_context, mexFunctionName(), octave::interpreter::mislocked(), and retval.
void mexLock | ( | void | ) |
Definition at line 3681 of file mex.cc.
References octave::__get_interpreter__(), mex_context, mex_lock_count, mexFunctionName(), and octave::interpreter::mlock().
void mexMakeArrayPersistent | ( | mxArray * | ptr | ) |
Definition at line 3616 of file mex.cc.
References maybe_unmark_array().
void mexMakeMemoryPersistent | ( | void * | ptr | ) |
Definition at line 3622 of file mex.cc.
References maybe_unmark().
int mexPrintf | ( | const char * | fmt, |
... | |||
) |
Definition at line 3496 of file mex.cc.
References octave_stdout, retval, and octave::vformat().
int mexPutVariable | ( | const char * | space, |
const char * | name, | ||
const mxArray * | ptr | ||
) |
Definition at line 3564 of file mex.cc.
References octave::__get_interpreter__(), octave::action_container::add_method(), mxArray::as_octave_value(), octave::interpreter::assign(), octave::tree_evaluator::current_call_stack_frame_number(), octave::interpreter::get_evaluator(), mxArray::get_name(), octave::interpreter::global_assign(), octave::tree_evaluator::goto_base_frame(), mexErrMsgTxt(), name, octave::tree_evaluator::restore_frame(), and octave::string::strcmp().
int mexSet | ( | double | handle, |
const char * | property, | ||
mxArray * | val | ||
) |
Definition at line 3699 of file mex.cc.
References mxArray::as_octave_value(), and set_property_in_handle().
void mexSetTrapFlag | ( | int | flag | ) |
Definition at line 3335 of file mex.cc.
References mex_context, and mex::trap_feval_error.
Referenced by mexCallMATLABWithTrap().
void mexUnlock | ( | void | ) |
Definition at line 3708 of file mex.cc.
References octave::__get_interpreter__(), mex_context, mex_lock_count, mexFunctionName(), and octave::interpreter::munlock().
void mexWarnMsgIdAndTxt | ( | const char * | id, |
const char * | fmt, | ||
... | |||
) |
Definition at line 3477 of file mex.cc.
References len, mexFunctionName(), OCTAVE_LOCAL_BUFFER, strlen(), and vwarning_with_id().
void mexWarnMsgTxt | ( | const char * | s | ) |
int mxAddField | ( | mxArray * | ptr, |
const char * | key | ||
) |
Definition at line 3069 of file mex.cc.
References mxArray::add_field().
char* mxArrayToString | ( | const mxArray * | ptr | ) |
Definition at line 3131 of file mex.cc.
References mxArray::array_to_string().
Definition at line 3137 of file mex.cc.
References mxArray::calc_single_subscript().
void* mxCalloc | ( | size_t | n, |
size_t | size | ||
) |
Definition at line 2548 of file mex.cc.
References mex::calloc(), mex_context, and n.
Definition at line 2583 of file mex.cc.
References maybe_mark_array().
Definition at line 2589 of file mex.cc.
References m, maybe_mark_array(), and n.
Referenced by mexCallMATLABWithTrap(), and mexEvalStringWithTrap().
Definition at line 2595 of file mex.cc.
References maybe_mark_array(), and mxCHAR_CLASS.
Definition at line 2601 of file mex.cc.
References m, and maybe_mark_array().
mxArray* mxCreateDoubleMatrix | ( | mwSize | m, |
mwSize | n, | ||
mxComplexity | flag | ||
) |
Definition at line 2607 of file mex.cc.
References m, maybe_mark_array(), mxDOUBLE_CLASS, and n.
mxArray* mxCreateDoubleScalar | ( | double | val | ) |
Definition at line 2613 of file mex.cc.
References maybe_mark_array(), and mxDOUBLE_CLASS.
Definition at line 2619 of file mex.cc.
References maybe_mark_array(), and mxLOGICAL_CLASS.
Definition at line 2625 of file mex.cc.
References m, maybe_mark_array(), mxLOGICAL_CLASS, and n.
Definition at line 2631 of file mex.cc.
References maybe_mark_array(), and mxLOGICAL_CLASS.
mxArray* mxCreateNumericArray | ( | mwSize | ndims, |
const mwSize * | dims, | ||
mxClassID | class_id, | ||
mxComplexity | flag | ||
) |
Definition at line 2637 of file mex.cc.
References maybe_mark_array().
mxArray* mxCreateNumericMatrix | ( | mwSize | m, |
mwSize | n, | ||
mxClassID | class_id, | ||
mxComplexity | flag | ||
) |
Definition at line 2644 of file mex.cc.
References m, maybe_mark_array(), and n.
mxArray* mxCreateSparse | ( | mwSize | m, |
mwSize | n, | ||
mwSize | nzmax, | ||
mxComplexity | flag | ||
) |
Definition at line 2665 of file mex.cc.
References m, maybe_mark_array(), mxDOUBLE_CLASS, and n.
Definition at line 2671 of file mex.cc.
References m, maybe_mark_array(), mxLOGICAL_CLASS, and n.
mxArray* mxCreateString | ( | const char * | str | ) |
Definition at line 2677 of file mex.cc.
References maybe_mark_array().
Referenced by mexCallMATLABWithTrap(), and mexEvalStringWithTrap().
mxArray* mxCreateStructArray | ( | mwSize | ndims, |
const mwSize * | dims, | ||
int | num_keys, | ||
const char ** | keys | ||
) |
Definition at line 2683 of file mex.cc.
References maybe_mark_array().
Definition at line 2690 of file mex.cc.
References m, maybe_mark_array(), and n.
Referenced by mexCallMATLABWithTrap(), and mexEvalStringWithTrap().
mxArray* mxCreateUninitNumericArray | ( | mwSize | ndims, |
const mwSize * | dims, | ||
mxClassID | class_id, | ||
mxComplexity | flag | ||
) |
Definition at line 2651 of file mex.cc.
References maybe_mark_array().
mxArray* mxCreateUninitNumericMatrix | ( | mwSize | m, |
mwSize | n, | ||
mxClassID | class_id, | ||
mxComplexity | flag | ||
) |
Definition at line 2658 of file mex.cc.
References m, maybe_mark_array(), and n.
void mxDestroyArray | ( | mxArray * | ptr | ) |
Definition at line 2704 of file mex.cc.
References mex::free_value(), and mex_context.
Definition at line 2697 of file mex.cc.
References mxArray::dup(), and maybe_mark_array().
void mxFree | ( | void * | ptr | ) |
Definition at line 2567 of file mex.cc.
References mex::free(), mex_context, and xfree().
Referenced by mex::~mex(), mxArray::~mxArray(), mxArray_cell::~mxArray_cell(), mxArray_matlab::~mxArray_matlab(), mxArray_number::~mxArray_number(), mxArray_octave_value::~mxArray_octave_value(), mxArray_sparse::~mxArray_sparse(), mxArray_struct::~mxArray_struct(), mxArray_struct::add_field(), mxArray_octave_value::as_mxArray(), mxArray_struct::remove_field(), mxArray_matlab::set_class_name(), mxArray_matlab::set_dimensions(), and mxArray::set_name().
Definition at line 3019 of file mex.cc.
References mxArray::get_cell().
Definition at line 2934 of file mex.cc.
References mxArray::get_data(), and mxIsChar().
Definition at line 2987 of file mex.cc.
References mxArray::get_class_id().
const char* mxGetClassName | ( | const mxArray * | ptr | ) |
Definition at line 2993 of file mex.cc.
References mxArray::get_class_name().
void* mxGetData | ( | const mxArray * | ptr | ) |
Definition at line 2949 of file mex.cc.
References mxArray::get_data().
Definition at line 2876 of file mex.cc.
References mxArray::get_dimensions().
size_t mxGetElementSize | ( | const mxArray * | ptr | ) |
Definition at line 3143 of file mex.cc.
References mxArray::get_element_size().
Definition at line 3081 of file mex.cc.
References mxGetFieldByNumber(), and mxGetFieldNumber().
Definition at line 3088 of file mex.cc.
References mxArray::get_field_by_number().
Referenced by mxGetField().
const char* mxGetFieldNameByNumber | ( | const mxArray * | ptr, |
int | key_num | ||
) |
Definition at line 3113 of file mex.cc.
References mxArray::get_field_name_by_number().
int mxGetFieldNumber | ( | const mxArray * | ptr, |
const char * | key | ||
) |
Definition at line 3119 of file mex.cc.
References mxArray::get_field_number().
Referenced by mxGetField(), and mxSetField().
void* mxGetImagData | ( | const mxArray * | ptr | ) |
Definition at line 2955 of file mex.cc.
References mxArray::get_imag_data().
double mxGetInf | ( | void | ) |
Definition at line 2535 of file mex.cc.
References lo_ieee_inf_value().
Definition at line 3032 of file mex.cc.
References mxArray::get_ir().
Definition at line 3038 of file mex.cc.
References mxArray::get_jc().
Definition at line 2943 of file mex.cc.
References mxArray::get_data().
size_t mxGetM | ( | const mxArray * | ptr | ) |
Definition at line 2864 of file mex.cc.
References mxArray::get_m().
size_t mxGetN | ( | const mxArray * | ptr | ) |
Definition at line 2870 of file mex.cc.
References mxArray::get_n().
double mxGetNaN | ( | void | ) |
Definition at line 2541 of file mex.cc.
References lo_ieee_nan_value().
Definition at line 2882 of file mex.cc.
References mxArray::get_number_of_dimensions().
size_t mxGetNumberOfElements | ( | const mxArray * | ptr | ) |
Definition at line 2888 of file mex.cc.
References mxArray::get_number_of_elements().
int mxGetNumberOfFields | ( | const mxArray * | ptr | ) |
Definition at line 3107 of file mex.cc.
References mxArray::get_number_of_fields().
Definition at line 3044 of file mex.cc.
References mxArray::get_nzmax().
double* mxGetPi | ( | const mxArray * | ptr | ) |
Definition at line 2922 of file mex.cc.
References mxArray::get_imag_data().
double* mxGetPr | ( | const mxArray * | ptr | ) |
Definition at line 2916 of file mex.cc.
References mxArray::get_data().
Definition at line 3012 of file mex.cc.
References mxArray::get_property().
double mxGetScalar | ( | const mxArray * | ptr | ) |
Definition at line 2928 of file mex.cc.
References mxArray::get_scalar().
Definition at line 3125 of file mex.cc.
References mxArray::get_string().
bool mxIsCell | ( | const mxArray * | ptr | ) |
Definition at line 2712 of file mex.cc.
References mxArray::iscell().
bool mxIsChar | ( | const mxArray * | ptr | ) |
bool mxIsClass | ( | const mxArray * | ptr, |
const char * | name | ||
) |
Definition at line 2724 of file mex.cc.
References mxArray::is_class(), and name.
bool mxIsComplex | ( | const mxArray * | ptr | ) |
Definition at line 2730 of file mex.cc.
References mxArray::is_complex().
bool mxIsDouble | ( | const mxArray * | ptr | ) |
Definition at line 2736 of file mex.cc.
References mxArray::is_double().
bool mxIsEmpty | ( | const mxArray * | ptr | ) |
Definition at line 2841 of file mex.cc.
References mxArray::isempty().
bool mxIsFinite | ( | const double | v | ) |
Definition at line 2511 of file mex.cc.
References lo_ieee_finite.
bool mxIsFromGlobalWS | ( | const mxArray * | ptr | ) |
bool mxIsFunctionHandle | ( | const mxArray * | ptr | ) |
Definition at line 2742 of file mex.cc.
References mxArray::is_function_handle().
bool mxIsInf | ( | const double | v | ) |
Definition at line 2517 of file mex.cc.
References lo_ieee_isinf.
bool mxIsInt16 | ( | const mxArray * | ptr | ) |
Definition at line 2748 of file mex.cc.
References mxArray::is_int16().
bool mxIsInt32 | ( | const mxArray * | ptr | ) |
Definition at line 2754 of file mex.cc.
References mxArray::is_int32().
bool mxIsInt64 | ( | const mxArray * | ptr | ) |
Definition at line 2760 of file mex.cc.
References mxArray::is_int64().
bool mxIsInt8 | ( | const mxArray * | ptr | ) |
Definition at line 2766 of file mex.cc.
References mxArray::is_int8().
bool mxIsLogical | ( | const mxArray * | ptr | ) |
Definition at line 2772 of file mex.cc.
References mxArray::is_logical().
bool mxIsLogicalScalar | ( | const mxArray * | ptr | ) |
Definition at line 2827 of file mex.cc.
References mxArray::is_logical_scalar().
bool mxIsLogicalScalarTrue | ( | const mxArray * | ptr | ) |
Definition at line 2834 of file mex.cc.
References mxArray::is_logical_scalar_true().
bool mxIsNaN | ( | const double | v | ) |
Definition at line 2523 of file mex.cc.
References lo_ieee_isnan.
bool mxIsNumeric | ( | const mxArray * | ptr | ) |
Definition at line 2778 of file mex.cc.
References mxArray::is_numeric().
bool mxIsScalar | ( | const mxArray * | ptr | ) |
Definition at line 2847 of file mex.cc.
References mxArray::is_scalar().
bool mxIsSingle | ( | const mxArray * | ptr | ) |
Definition at line 2784 of file mex.cc.
References mxArray::is_single().
bool mxIsSparse | ( | const mxArray * | ptr | ) |
Definition at line 2790 of file mex.cc.
References mxArray::is_sparse().
bool mxIsStruct | ( | const mxArray * | ptr | ) |
Definition at line 2796 of file mex.cc.
References mxArray::is_struct().
bool mxIsUint16 | ( | const mxArray * | ptr | ) |
Definition at line 2802 of file mex.cc.
References mxArray::is_uint16().
bool mxIsUint32 | ( | const mxArray * | ptr | ) |
Definition at line 2808 of file mex.cc.
References mxArray::is_uint32().
bool mxIsUint64 | ( | const mxArray * | ptr | ) |
Definition at line 2814 of file mex.cc.
References mxArray::is_uint64().
bool mxIsUint8 | ( | const mxArray * | ptr | ) |
Definition at line 2820 of file mex.cc.
References mxArray::is_uint8().
void* mxMalloc | ( | size_t | n | ) |
Definition at line 2554 of file mex.cc.
References mex::malloc(), malloc(), mex_context, and n.
void* mxRealloc | ( | void * | ptr, |
size_t | size | ||
) |
Definition at line 2560 of file mex.cc.
References mex_context, and mex::realloc().
Referenced by mxArray_struct::add_field().
void mxRemoveField | ( | mxArray * | ptr, |
int | key_num | ||
) |
Definition at line 3075 of file mex.cc.
References mxArray::remove_field().
Definition at line 3025 of file mex.cc.
References mxArray::set_cell().
void mxSetClassName | ( | mxArray * | ptr, |
const char * | name | ||
) |
Definition at line 2999 of file mex.cc.
References name, and mxArray::set_class_name().
void mxSetData | ( | mxArray * | ptr, |
void * | pr | ||
) |
Definition at line 2974 of file mex.cc.
References maybe_unmark(), and mxArray::set_data().
Definition at line 2907 of file mex.cc.
References maybe_unmark(), and mxArray::set_dimensions().
Definition at line 3094 of file mex.cc.
References mxGetFieldNumber(), and mxSetFieldByNumber().
Definition at line 3101 of file mex.cc.
References mxArray::set_field_by_number().
Referenced by mexCallMATLABWithTrap(), mexEvalStringWithTrap(), and mxSetField().
void mxSetImagData | ( | mxArray * | ptr, |
void * | pi | ||
) |
Definition at line 2980 of file mex.cc.
References maybe_unmark(), octave::math::pi, and mxArray::set_imag_data().
Definition at line 3050 of file mex.cc.
References maybe_unmark(), and mxArray::set_ir().
Definition at line 3056 of file mex.cc.
References maybe_unmark(), and mxArray::set_jc().
Definition at line 2895 of file mex.cc.
References m, and mxArray::set_m().
Definition at line 2901 of file mex.cc.
References n, and mxArray::set_n().
Definition at line 3062 of file mex.cc.
References mxArray::set_nzmax().
void mxSetPi | ( | mxArray * | ptr, |
double * | pi | ||
) |
Definition at line 2968 of file mex.cc.
References maybe_unmark(), octave::math::pi, and mxArray::set_imag_data().
void mxSetPr | ( | mxArray * | ptr, |
double * | pr | ||
) |
Definition at line 2962 of file mex.cc.
References maybe_unmark(), and mxArray::set_data().
void mxSetProperty | ( | mxArray * | ptr, |
mwIndex | idx, | ||
const char * | property_name, | ||
const mxArray * | property_value | ||
) |
Definition at line 3005 of file mex.cc.
References mxArray::set_property().
|
static |
Definition at line 90 of file mex.cc.
References retval, and strlen().
Referenced by mxArray_struct::add_field().
|
static |
Definition at line 68 of file mex.cc.
References free().
Referenced by mex::~mex(), mex::free(), and mxFree().
mex* mex_context = nullptr |
Definition at line 2449 of file mex.cc.
Referenced by call_mex(), mxArray::calloc(), mxArray::malloc(), maybe_mark_array(), maybe_mark_foreign(), maybe_unmark(), maybe_unmark_array(), mexAtExit(), mexCallMATLAB(), mexCallMATLABWithTrap(), mexFunctionName(), mexGetVariable(), mexIsLocked(), mexLock(), mexSetTrapFlag(), mexUnlock(), mxCalloc(), mxDestroyArray(), mxFree(), mxMalloc(), and mxRealloc().
std::map<std::string,int> mex_lock_count |
Definition at line 3678 of file mex.cc.
Referenced by mexLock(), and mexUnlock().