#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 | fp_type_traits< T > |
class | fp_type_traits< Complex > |
class | fp_type_traits< FloatComplex > |
class | mex |
class | mxArray_base_full |
class | mxArray_base_sparse |
class | mxArray_cell |
class | mxArray_interleaved_full |
class | mxArray_interleaved_sparse |
class | mxArray_matlab |
class | mxArray_octave_value |
class | mxArray_separate_full |
class | mxArray_separate_sparse |
class | mxArray_struct |
Macros | |
#define | CONST_MUTATION_METHOD(RET_TYPE, FCN_NAME, ARG_LIST, RET_VAL) RET_TYPE FCN_NAME ARG_LIST const { request_mutation (); return RET_VAL; } |
#define | CONST_VOID_MUTATION_METHOD(FCN_NAME, ARG_LIST) void FCN_NAME ARG_LIST const { request_mutation (); } |
#define | GET_DATA_METHOD(RT, FCN_NAME, ID, COMPLEXITY) RT * FCN_NAME (void) const { return get_data<RT> (ID, COMPLEXITY); } |
#define | MUTATION_METHOD(RET_TYPE, FCN_NAME, ARG_LIST, RET_VAL) RET_TYPE FCN_NAME ARG_LIST { request_mutation (); return RET_VAL; } |
#define | VOID_MUTATION_METHOD(FCN_NAME, ARG_LIST) void FCN_NAME ARG_LIST { request_mutation (); } |
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) |
template<typename T > | |
static T * | maybe_unmark (T *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) |
OCTINTERP_API const mxArray * | mexGet_interleaved (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) |
static octave_value_list | mx_to_ov_args (int nargin, mxArray *argin[]) |
int | mxAddField (mxArray *ptr, const char *key) |
char * | mxArrayToString (const mxArray *ptr) |
mwIndex | mxCalcSingleSubscript (const mxArray *ptr, mwSize nsubs, mwIndex *subs) |
void * | mxCalloc (std::size_t n, std::size_t size) |
OCTINTERP_API mxArray * | mxCreateCellArray (mwSize ndims, const mwSize *dims) |
OCTINTERP_API mxArray * | mxCreateCellArray_interleaved (mwSize ndims, const mwSize *dims) |
OCTINTERP_API mxArray * | mxCreateCellMatrix (mwSize m, mwSize n) |
OCTINTERP_API mxArray * | mxCreateCellMatrix_interleaved (mwSize m, mwSize n) |
OCTINTERP_API mxArray * | mxCreateCharArray (mwSize ndims, const mwSize *dims) |
OCTINTERP_API mxArray * | mxCreateCharArray_interleaved (mwSize ndims, const mwSize *dims) |
OCTINTERP_API mxArray * | mxCreateCharMatrixFromStrings (mwSize m, const char **str) |
OCTINTERP_API mxArray * | mxCreateCharMatrixFromStrings_interleaved (mwSize m, const char **str) |
OCTINTERP_API mxArray * | mxCreateDoubleMatrix (mwSize nr, mwSize nc, mxComplexity flag) |
OCTINTERP_API mxArray * | mxCreateDoubleMatrix_interleaved (mwSize nr, mwSize nc, mxComplexity flag) |
OCTINTERP_API mxArray * | mxCreateDoubleScalar (double val) |
OCTINTERP_API mxArray * | mxCreateDoubleScalar_interleaved (double val) |
OCTINTERP_API mxArray * | mxCreateLogicalArray (mwSize ndims, const mwSize *dims) |
OCTINTERP_API mxArray * | mxCreateLogicalArray_interleaved (mwSize ndims, const mwSize *dims) |
OCTINTERP_API mxArray * | mxCreateLogicalMatrix (mwSize m, mwSize n) |
OCTINTERP_API mxArray * | mxCreateLogicalMatrix_interleaved (mwSize m, mwSize n) |
OCTINTERP_API mxArray * | mxCreateLogicalScalar (mxLogical val) |
OCTINTERP_API mxArray * | mxCreateLogicalScalar_interleaved (mxLogical val) |
OCTINTERP_API mxArray * | mxCreateNumericArray (mwSize ndims, const mwSize *dims, mxClassID class_id, mxComplexity flag) |
OCTINTERP_API mxArray * | mxCreateNumericArray_interleaved (mwSize ndims, const mwSize *dims, mxClassID class_id, mxComplexity flag) |
OCTINTERP_API mxArray * | mxCreateNumericMatrix (mwSize m, mwSize n, mxClassID class_id, mxComplexity flag) |
OCTINTERP_API mxArray * | mxCreateNumericMatrix_interleaved (mwSize m, mwSize n, mxClassID class_id, mxComplexity flag) |
OCTINTERP_API mxArray * | mxCreateSparse (mwSize m, mwSize n, mwSize nzmax, mxComplexity flag) |
OCTINTERP_API mxArray * | mxCreateSparse_interleaved (mwSize m, mwSize n, mwSize nzmax, mxComplexity flag) |
OCTINTERP_API mxArray * | mxCreateSparseLogicalMatrix (mwSize m, mwSize n, mwSize nzmax) |
OCTINTERP_API mxArray * | mxCreateSparseLogicalMatrix_interleaved (mwSize m, mwSize n, mwSize nzmax) |
OCTINTERP_API mxArray * | mxCreateString (const char *str) |
OCTINTERP_API mxArray * | mxCreateString_interleaved (const char *str) |
OCTINTERP_API mxArray * | mxCreateStructArray (mwSize ndims, const mwSize *dims, int num_keys, const char **keys) |
OCTINTERP_API mxArray * | mxCreateStructArray_interleaved (mwSize ndims, const mwSize *dims, int num_keys, const char **keys) |
OCTINTERP_API mxArray * | mxCreateStructMatrix (mwSize rows, mwSize cols, int num_keys, const char **keys) |
OCTINTERP_API mxArray * | mxCreateStructMatrix_interleaved (mwSize rows, mwSize cols, int num_keys, const char **keys) |
OCTINTERP_API mxArray * | mxCreateUninitNumericArray (mwSize ndims, const mwSize *dims, mxClassID class_id, mxComplexity flag) |
OCTINTERP_API mxArray * | mxCreateUninitNumericArray_interleaved (mwSize ndims, const mwSize *dims, mxClassID class_id, mxComplexity flag) |
OCTINTERP_API mxArray * | mxCreateUninitNumericMatrix (mwSize m, mwSize n, mxClassID class_id, mxComplexity flag) |
OCTINTERP_API mxArray * | mxCreateUninitNumericMatrix_interleaved (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) |
OCTINTERP_API mxComplexDouble * | mxGetComplexDoubles (const mxArray *p) |
OCTINTERP_API mxComplexSingle * | mxGetComplexSingles (const mxArray *p) |
void * | mxGetData (const mxArray *ptr) |
const mwSize * | mxGetDimensions (const mxArray *ptr) |
OCTINTERP_API mxDouble * | mxGetDoubles (const mxArray *p) |
std::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) |
OCTINTERP_API void * | mxGetImagData (const mxArray *ptr) |
double | mxGetInf (void) |
OCTINTERP_API mxInt16 * | mxGetInt16s (const mxArray *p) |
OCTINTERP_API mxInt32 * | mxGetInt32s (const mxArray *p) |
OCTINTERP_API mxInt64 * | mxGetInt64s (const mxArray *p) |
OCTINTERP_API mxInt8 * | mxGetInt8s (const mxArray *p) |
mwIndex * | mxGetIr (const mxArray *ptr) |
mwIndex * | mxGetJc (const mxArray *ptr) |
mxLogical * | mxGetLogicals (const mxArray *ptr) |
std::size_t | mxGetM (const mxArray *ptr) |
std::size_t | mxGetN (const mxArray *ptr) |
double | mxGetNaN (void) |
mwSize | mxGetNumberOfDimensions (const mxArray *ptr) |
std::size_t | mxGetNumberOfElements (const mxArray *ptr) |
int | mxGetNumberOfFields (const mxArray *ptr) |
mwSize | mxGetNzmax (const mxArray *ptr) |
OCTINTERP_API 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) |
OCTINTERP_API mxSingle * | mxGetSingles (const mxArray *p) |
int | mxGetString (const mxArray *ptr, char *buf, mwSize buflen) |
OCTINTERP_API mxUint16 * | mxGetUint16s (const mxArray *p) |
OCTINTERP_API mxUint32 * | mxGetUint32s (const mxArray *p) |
OCTINTERP_API mxUint64 * | mxGetUint64s (const mxArray *p) |
OCTINTERP_API mxUint8 * | mxGetUint8s (const mxArray *p) |
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) |
OCTINTERP_API int | mxMakeArrayComplex (mxArray *ptr) |
OCTINTERP_API int | mxMakeArrayReal (mxArray *ptr) |
void * | mxMalloc (std::size_t n) |
void * | mxRealloc (void *ptr, std::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) |
OCTINTERP_API int | mxSetComplexDoubles (mxArray *p, mxComplexDouble *d) |
OCTINTERP_API int | mxSetComplexSingles (mxArray *p, mxComplexSingle *d) |
void | mxSetData (mxArray *ptr, void *pr) |
int | mxSetDimensions (mxArray *ptr, const mwSize *dims, mwSize ndims) |
OCTINTERP_API int | mxSetDoubles (mxArray *p, mxDouble *d) |
void | mxSetField (mxArray *ptr, mwIndex index, const char *key, mxArray *val) |
void | mxSetFieldByNumber (mxArray *ptr, mwIndex index, int key_num, mxArray *val) |
OCTINTERP_API void | mxSetImagData (mxArray *ptr, void *pi) |
OCTINTERP_API int | mxSetInt16s (mxArray *p, mxInt16 *d) |
OCTINTERP_API int | mxSetInt32s (mxArray *p, mxInt32 *d) |
OCTINTERP_API int | mxSetInt64s (mxArray *p, mxInt64 *d) |
OCTINTERP_API int | mxSetInt8s (mxArray *p, mxInt8 *d) |
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) |
OCTINTERP_API 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) |
OCTINTERP_API int | mxSetSingles (mxArray *p, mxSingle *d) |
OCTINTERP_API int | mxSetUint16s (mxArray *p, mxUint16 *d) |
OCTINTERP_API int | mxSetUint32s (mxArray *p, mxUint32 *d) |
OCTINTERP_API int | mxSetUint64s (mxArray *p, mxUint64 *d) |
OCTINTERP_API int | mxSetUint8s (mxArray *p, mxUint8 *d) |
static void | xfree (void *ptr) |
static void * | xmalloc (size_t n) |
static void * | xrealloc (void *ptr, size_t n) |
Variables | |
mex * | mex_context = nullptr |
std::map< std::string, int > | mex_lock_count |
#define CONST_MUTATION_METHOD | ( | RET_TYPE, | |
FCN_NAME, | |||
ARG_LIST, | |||
RET_VAL | |||
) | RET_TYPE FCN_NAME ARG_LIST const { request_mutation (); return RET_VAL; } |
#define CONST_VOID_MUTATION_METHOD | ( | FCN_NAME, | |
ARG_LIST | |||
) | void FCN_NAME ARG_LIST const { request_mutation (); } |
#define GET_DATA_METHOD | ( | RT, | |
FCN_NAME, | |||
ID, | |||
COMPLEXITY | |||
) | RT * FCN_NAME (void) const { return get_data<RT> (ID, COMPLEXITY); } |
#define MUTATION_METHOD | ( | RET_TYPE, | |
FCN_NAME, | |||
ARG_LIST, | |||
RET_VAL | |||
) | RET_TYPE FCN_NAME ARG_LIST { request_mutation (); return RET_VAL; } |
#define VOID_MUTATION_METHOD | ( | FCN_NAME, | |
ARG_LIST | |||
) | void FCN_NAME ARG_LIST { request_mutation (); } |
|
static |
Definition at line 407 of file mex.cc.
References n.
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 4787 of file mex.cc.
References mxArray::as_octave_value(), octave_mex_function::is_fmex(), octave_value_list::length(), mex::make_value(), mex_context, octave_mex_function::mex_fcn_ptr(), OCTAVE_LOCAL_BUFFER, and octave_value_list::resize().
Referenced by tree_evaluator::execute_mex_function().
|
static |
Definition at line 3881 of file mex.cc.
References mex::mark_array(), and mex_context.
Referenced by mxCreateCellArray(), mxCreateCellArray_interleaved(), mxCreateCellMatrix(), mxCreateCellMatrix_interleaved(), mxCreateCharArray(), mxCreateCharArray_interleaved(), mxCreateCharMatrixFromStrings(), mxCreateCharMatrixFromStrings_interleaved(), mxCreateDoubleMatrix(), mxCreateDoubleMatrix_interleaved(), mxCreateDoubleScalar(), mxCreateDoubleScalar_interleaved(), mxCreateLogicalArray(), mxCreateLogicalArray_interleaved(), mxCreateLogicalMatrix(), mxCreateLogicalMatrix_interleaved(), mxCreateLogicalScalar(), mxCreateLogicalScalar_interleaved(), mxCreateNumericArray(), mxCreateNumericArray_interleaved(), mxCreateNumericMatrix(), mxCreateNumericMatrix_interleaved(), mxCreateSparse(), mxCreateSparse_interleaved(), mxCreateSparseLogicalMatrix(), mxCreateSparseLogicalMatrix_interleaved(), mxCreateString(), mxCreateString_interleaved(), mxCreateStructArray(), mxCreateStructArray_interleaved(), mxCreateStructMatrix(), mxCreateStructMatrix_interleaved(), mxCreateUninitNumericArray(), mxCreateUninitNumericArray_interleaved(), mxCreateUninitNumericMatrix(), mxCreateUninitNumericMatrix_interleaved(), and mxDuplicateArray().
|
inlinestatic |
Definition at line 3753 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 3787 of file mex.cc.
References mex_context, and mex::unmark().
Referenced by mexMakeMemoryPersistent(), mxSetComplexDoubles(), mxSetComplexSingles(), mxSetData(), mxSetDimensions(), mxSetDoubles(), mxSetImagData(), mxSetInt16s(), mxSetInt32s(), mxSetInt64s(), mxSetInt8s(), mxSetIr(), mxSetJc(), mxSetPi(), mxSetPr(), mxSetSingles(), mxSetUint16s(), mxSetUint32s(), mxSetUint64s(), and mxSetUint8s().
Definition at line 3777 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 5306 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 4897 of file mex.cc.
References __get_interpreter__(), feval(), octave_value_list::length(), mex::make_value(), mex_context, mx_to_ov_args(), octave_value_list::resize(), and mex::trap_feval_error.
Referenced by mexCallMATLABWithTrap().
mxArray* mexCallMATLABWithTrap | ( | int | nargout, |
mxArray * | argout[], | ||
int | nargin, | ||
mxArray * | argin[], | ||
const char * | fname | ||
) |
Definition at line 4964 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 5085 of file mex.cc.
References error(), len, mexFunctionName(), OCTAVE_LOCAL_BUFFER, strlen(), and verror_with_id().
void mexErrMsgTxt | ( | const char * | s | ) |
Definition at line 5062 of file mex.cc.
References error(), len, mexFunctionName(), and strlen().
Referenced by mexGetVariable(), mexPutVariable(), and mxIsFromGlobalWS().
int mexEvalString | ( | const char * | s | ) |
Definition at line 4995 of file mex.cc.
References __get_interpreter__().
mxArray* mexEvalStringWithTrap | ( | const char * | s | ) |
Definition at line 5024 of file mex.cc.
References __get_interpreter__(), mxCreateCellMatrix(), mxCreateString(), mxCreateStructMatrix(), and mxSetFieldByNumber().
const char* mexFunctionName | ( | void | ) |
Definition at line 4862 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 5333 of file mex.cc.
References octave_value::as_mxArray(), get_property_from_handle(), octave_value::is_defined(), and m.
const mxArray * mexGet_interleaved | ( | double | handle, |
const char * | property | ||
) |
Definition at line 5319 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 5160 of file mex.cc.
References __get_interpreter__(), octave_value::is_defined(), mex::make_value(), mex_context, mexErrMsgTxt(), mxArray::set_name(), and strcmp().
Referenced by mexGetVariablePtr().
const mxArray* mexGetVariablePtr | ( | const char * | space, |
const char * | name | ||
) |
Definition at line 5211 of file mex.cc.
References mexGetVariable().
int mexIsGlobal | ( | const mxArray * | ptr | ) |
Definition at line 5347 of file mex.cc.
References mxIsFromGlobalWS().
int mexIsLocked | ( | void | ) |
Definition at line 5353 of file mex.cc.
References __get_interpreter__(), mex_context, and mexFunctionName().
void mexLock | ( | void | ) |
Definition at line 5372 of file mex.cc.
References __get_interpreter__(), mex_context, mex_lock_count, and mexFunctionName().
void mexMakeArrayPersistent | ( | mxArray * | ptr | ) |
Definition at line 5294 of file mex.cc.
References maybe_unmark_array().
void mexMakeMemoryPersistent | ( | void * | ptr | ) |
Definition at line 5300 of file mex.cc.
References maybe_unmark().
int mexPrintf | ( | const char * | fmt, |
... | |||
) |
Definition at line 5149 of file mex.cc.
References octave_stdout, and vformat().
int mexPutVariable | ( | const char * | space, |
const char * | name, | ||
const mxArray * | ptr | ||
) |
Definition at line 5217 of file mex.cc.
References __get_interpreter__(), mxArray::as_octave_value(), mxArray::get_name(), mexErrMsgTxt(), and strcmp().
int mexSet | ( | double | handle, |
const char * | property, | ||
mxArray * | val | ||
) |
Definition at line 5390 of file mex.cc.
References mxArray::as_octave_value(), and set_property_in_handle().
void mexSetTrapFlag | ( | int | flag | ) |
Definition at line 4988 of file mex.cc.
References mex_context, and mex::trap_feval_error.
Referenced by mexCallMATLABWithTrap().
void mexUnlock | ( | void | ) |
Definition at line 5411 of file mex.cc.
References __get_interpreter__(), mex_context, mex_lock_count, and mexFunctionName().
void mexWarnMsgIdAndTxt | ( | const char * | id, |
const char * | fmt, | ||
... | |||
) |
Definition at line 5130 of file mex.cc.
References len, mexFunctionName(), OCTAVE_LOCAL_BUFFER, strlen(), and vwarning_with_id().
void mexWarnMsgTxt | ( | const char * | s | ) |
|
inlinestatic |
Definition at line 4868 of file mex.cc.
References mxArray::as_octave_value().
Referenced by mexCallMATLAB().
int mxAddField | ( | mxArray * | ptr, |
const char * | key | ||
) |
Definition at line 4699 of file mex.cc.
References mxArray::add_field().
char* mxArrayToString | ( | const mxArray * | ptr | ) |
Definition at line 4761 of file mex.cc.
References mxArray::array_to_string().
mwIndex mxCalcSingleSubscript | ( | const mxArray * | ptr, |
mwSize | nsubs, | ||
mwIndex * | subs | ||
) |
Definition at line 4767 of file mex.cc.
References mxArray::calc_single_subscript().
void* mxCalloc | ( | std::size_t | n, |
std::size_t | size | ||
) |
Definition at line 3853 of file mex.cc.
References mex::calloc(), mex_context, and n.
mxArray * mxCreateCellArray | ( | mwSize | ndims, |
const mwSize * | dims | ||
) |
Definition at line 3894 of file mex.cc.
References maybe_mark_array().
mxArray * mxCreateCellArray_interleaved | ( | mwSize | ndims, |
const mwSize * | dims | ||
) |
Definition at line 3888 of file mex.cc.
References maybe_mark_array().
mxArray * mxCreateCellMatrix | ( | mwSize | m, |
mwSize | n | ||
) |
Definition at line 3906 of file mex.cc.
References m, maybe_mark_array(), and n.
Referenced by mexCallMATLABWithTrap(), and mexEvalStringWithTrap().
mxArray * mxCreateCellMatrix_interleaved | ( | mwSize | m, |
mwSize | n | ||
) |
Definition at line 3900 of file mex.cc.
References m, maybe_mark_array(), and n.
mxArray * mxCreateCharArray | ( | mwSize | ndims, |
const mwSize * | dims | ||
) |
Definition at line 3918 of file mex.cc.
References maybe_mark_array().
mxArray * mxCreateCharArray_interleaved | ( | mwSize | ndims, |
const mwSize * | dims | ||
) |
Definition at line 3912 of file mex.cc.
References maybe_mark_array().
mxArray * mxCreateCharMatrixFromStrings | ( | mwSize | m, |
const char ** | str | ||
) |
Definition at line 3930 of file mex.cc.
References m, and maybe_mark_array().
mxArray * mxCreateCharMatrixFromStrings_interleaved | ( | mwSize | m, |
const char ** | str | ||
) |
Definition at line 3924 of file mex.cc.
References m, and maybe_mark_array().
mxArray * mxCreateDoubleMatrix | ( | mwSize | nr, |
mwSize | nc, | ||
mxComplexity | flag | ||
) |
Definition at line 3942 of file mex.cc.
References m, maybe_mark_array(), and n.
mxArray * mxCreateDoubleMatrix_interleaved | ( | mwSize | nr, |
mwSize | nc, | ||
mxComplexity | flag | ||
) |
Definition at line 3936 of file mex.cc.
References m, maybe_mark_array(), and n.
mxArray * mxCreateDoubleScalar | ( | double | val | ) |
Definition at line 3954 of file mex.cc.
References maybe_mark_array().
mxArray * mxCreateDoubleScalar_interleaved | ( | double | val | ) |
Definition at line 3948 of file mex.cc.
References maybe_mark_array().
mxArray * mxCreateLogicalArray | ( | mwSize | ndims, |
const mwSize * | dims | ||
) |
Definition at line 3966 of file mex.cc.
References maybe_mark_array().
mxArray * mxCreateLogicalArray_interleaved | ( | mwSize | ndims, |
const mwSize * | dims | ||
) |
Definition at line 3960 of file mex.cc.
References maybe_mark_array().
mxArray * mxCreateLogicalMatrix | ( | mwSize | m, |
mwSize | n | ||
) |
Definition at line 3978 of file mex.cc.
References m, maybe_mark_array(), and n.
mxArray * mxCreateLogicalMatrix_interleaved | ( | mwSize | m, |
mwSize | n | ||
) |
Definition at line 3972 of file mex.cc.
References m, maybe_mark_array(), and n.
mxArray * mxCreateLogicalScalar | ( | mxLogical | val | ) |
Definition at line 3990 of file mex.cc.
References maybe_mark_array().
mxArray * mxCreateLogicalScalar_interleaved | ( | mxLogical | val | ) |
Definition at line 3984 of file mex.cc.
References maybe_mark_array().
mxArray * mxCreateNumericArray | ( | mwSize | ndims, |
const mwSize * | dims, | ||
mxClassID | class_id, | ||
mxComplexity | flag | ||
) |
Definition at line 4003 of file mex.cc.
References maybe_mark_array().
mxArray * mxCreateNumericArray_interleaved | ( | mwSize | ndims, |
const mwSize * | dims, | ||
mxClassID | class_id, | ||
mxComplexity | flag | ||
) |
Definition at line 3996 of file mex.cc.
References maybe_mark_array().
mxArray * mxCreateNumericMatrix | ( | mwSize | m, |
mwSize | n, | ||
mxClassID | class_id, | ||
mxComplexity | flag | ||
) |
Definition at line 4017 of file mex.cc.
References m, maybe_mark_array(), and n.
mxArray * mxCreateNumericMatrix_interleaved | ( | mwSize | m, |
mwSize | n, | ||
mxClassID | class_id, | ||
mxComplexity | flag | ||
) |
Definition at line 4010 of file mex.cc.
References m, maybe_mark_array(), and n.
mxArray * mxCreateSparse | ( | mwSize | m, |
mwSize | n, | ||
mwSize | nzmax, | ||
mxComplexity | flag | ||
) |
Definition at line 4061 of file mex.cc.
References m, maybe_mark_array(), and n.
mxArray * mxCreateSparse_interleaved | ( | mwSize | m, |
mwSize | n, | ||
mwSize | nzmax, | ||
mxComplexity | flag | ||
) |
Definition at line 4054 of file mex.cc.
References m, maybe_mark_array(), and n.
mxArray * mxCreateSparseLogicalMatrix | ( | mwSize | m, |
mwSize | n, | ||
mwSize | nzmax | ||
) |
Definition at line 4074 of file mex.cc.
References m, maybe_mark_array(), and n.
mxArray * mxCreateSparseLogicalMatrix_interleaved | ( | mwSize | m, |
mwSize | n, | ||
mwSize | nzmax | ||
) |
Definition at line 4068 of file mex.cc.
References m, maybe_mark_array(), and n.
mxArray * mxCreateString | ( | const char * | str | ) |
Definition at line 4086 of file mex.cc.
References maybe_mark_array().
Referenced by mexCallMATLABWithTrap(), and mexEvalStringWithTrap().
mxArray * mxCreateString_interleaved | ( | const char * | str | ) |
Definition at line 4080 of file mex.cc.
References maybe_mark_array().
mxArray * mxCreateStructArray | ( | mwSize | ndims, |
const mwSize * | dims, | ||
int | num_keys, | ||
const char ** | keys | ||
) |
Definition at line 4099 of file mex.cc.
References maybe_mark_array().
mxArray * mxCreateStructArray_interleaved | ( | mwSize | ndims, |
const mwSize * | dims, | ||
int | num_keys, | ||
const char ** | keys | ||
) |
Definition at line 4092 of file mex.cc.
References maybe_mark_array().
mxArray * mxCreateStructMatrix | ( | mwSize | rows, |
mwSize | cols, | ||
int | num_keys, | ||
const char ** | keys | ||
) |
Definition at line 4113 of file mex.cc.
References m, maybe_mark_array(), and n.
Referenced by mexCallMATLABWithTrap(), and mexEvalStringWithTrap().
mxArray * mxCreateStructMatrix_interleaved | ( | mwSize | rows, |
mwSize | cols, | ||
int | num_keys, | ||
const char ** | keys | ||
) |
Definition at line 4106 of file mex.cc.
References m, maybe_mark_array(), and n.
mxArray * mxCreateUninitNumericArray | ( | mwSize | ndims, |
const mwSize * | dims, | ||
mxClassID | class_id, | ||
mxComplexity | flag | ||
) |
Definition at line 4032 of file mex.cc.
References maybe_mark_array().
mxArray * mxCreateUninitNumericArray_interleaved | ( | mwSize | ndims, |
const mwSize * | dims, | ||
mxClassID | class_id, | ||
mxComplexity | flag | ||
) |
Definition at line 4024 of file mex.cc.
References maybe_mark_array().
mxArray * mxCreateUninitNumericMatrix | ( | mwSize | m, |
mwSize | n, | ||
mxClassID | class_id, | ||
mxComplexity | flag | ||
) |
Definition at line 4047 of file mex.cc.
References m, maybe_mark_array(), and n.
mxArray * mxCreateUninitNumericMatrix_interleaved | ( | mwSize | m, |
mwSize | n, | ||
mxClassID | class_id, | ||
mxComplexity | flag | ||
) |
Definition at line 4040 of file mex.cc.
References m, maybe_mark_array(), and n.
void mxDestroyArray | ( | mxArray * | ptr | ) |
Definition at line 4128 of file mex.cc.
References mex::free_value(), and mex_context.
Definition at line 4121 of file mex.cc.
References mxArray::dup(), and maybe_mark_array().
void mxFree | ( | void * | ptr | ) |
Definition at line 3872 of file mex.cc.
References mex::free(), mex_context, and xfree().
Referenced by mex::~mex(), mxArray::~mxArray(), mxArray_base_full::~mxArray_base_full(), mxArray_base_sparse::~mxArray_base_sparse(), mxArray_cell::~mxArray_cell(), mxArray_matlab::~mxArray_matlab(), mxArray_octave_value::~mxArray_octave_value(), mxArray_separate_full::~mxArray_separate_full(), mxArray_separate_sparse::~mxArray_separate_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 4649 of file mex.cc.
References mxArray::get_cell().
mxChar* mxGetChars | ( | const mxArray * | ptr | ) |
Definition at line 4352 of file mex.cc.
References mxArray::get_data(), and mxIsChar().
mxClassID mxGetClassID | ( | const mxArray * | ptr | ) |
Definition at line 4617 of file mex.cc.
References mxArray::get_class_id().
const char* mxGetClassName | ( | const mxArray * | ptr | ) |
Definition at line 4623 of file mex.cc.
References mxArray::get_class_name().
mxComplexDouble * mxGetComplexDoubles | ( | const mxArray * | p | ) |
Definition at line 4434 of file mex.cc.
References mxArray::get_complex_doubles().
mxComplexSingle * mxGetComplexSingles | ( | const mxArray * | p | ) |
Definition at line 4439 of file mex.cc.
References mxArray::get_complex_singles().
void* mxGetData | ( | const mxArray * | ptr | ) |
Definition at line 4367 of file mex.cc.
References mxArray::get_data().
const mwSize* mxGetDimensions | ( | const mxArray * | ptr | ) |
Definition at line 4300 of file mex.cc.
References mxArray::get_dimensions().
mxDouble * mxGetDoubles | ( | const mxArray * | p | ) |
Definition at line 4384 of file mex.cc.
References mxArray::get_doubles().
std::size_t mxGetElementSize | ( | const mxArray * | ptr | ) |
Definition at line 4773 of file mex.cc.
References mxArray::get_element_size().
Definition at line 4711 of file mex.cc.
References mxGetFieldByNumber(), and mxGetFieldNumber().
Definition at line 4718 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 4743 of file mex.cc.
References mxArray::get_field_name_by_number().
int mxGetFieldNumber | ( | const mxArray * | ptr, |
const char * | key | ||
) |
Definition at line 4749 of file mex.cc.
References mxArray::get_field_number().
Referenced by mxGetField(), and mxSetField().
void * mxGetImagData | ( | const mxArray * | ptr | ) |
Definition at line 4379 of file mex.cc.
References mxArray::get_imag_data().
double mxGetInf | ( | void | ) |
Definition at line 3840 of file mex.cc.
References lo_ieee_inf_value().
mxInt16 * mxGetInt16s | ( | const mxArray * | p | ) |
Definition at line 4399 of file mex.cc.
References mxArray::get_int16s().
mxInt32 * mxGetInt32s | ( | const mxArray * | p | ) |
Definition at line 4404 of file mex.cc.
References mxArray::get_int32s().
mxInt64 * mxGetInt64s | ( | const mxArray * | p | ) |
Definition at line 4409 of file mex.cc.
References mxArray::get_int64s().
mxInt8 * mxGetInt8s | ( | const mxArray * | p | ) |
Definition at line 4394 of file mex.cc.
References mxArray::get_int8s().
mwIndex* mxGetIr | ( | const mxArray * | ptr | ) |
Definition at line 4662 of file mex.cc.
References mxArray::get_ir().
mwIndex* mxGetJc | ( | const mxArray * | ptr | ) |
Definition at line 4668 of file mex.cc.
References mxArray::get_jc().
mxLogical* mxGetLogicals | ( | const mxArray * | ptr | ) |
Definition at line 4361 of file mex.cc.
References mxArray::get_data().
std::size_t mxGetM | ( | const mxArray * | ptr | ) |
Definition at line 4288 of file mex.cc.
References mxArray::get_m().
std::size_t mxGetN | ( | const mxArray * | ptr | ) |
Definition at line 4294 of file mex.cc.
References mxArray::get_n().
double mxGetNaN | ( | void | ) |
Definition at line 3846 of file mex.cc.
References lo_ieee_nan_value().
mwSize mxGetNumberOfDimensions | ( | const mxArray * | ptr | ) |
Definition at line 4306 of file mex.cc.
References mxArray::get_number_of_dimensions().
std::size_t mxGetNumberOfElements | ( | const mxArray * | ptr | ) |
Definition at line 4312 of file mex.cc.
References mxArray::get_number_of_elements().
int mxGetNumberOfFields | ( | const mxArray * | ptr | ) |
Definition at line 4737 of file mex.cc.
References mxArray::get_number_of_fields().
mwSize mxGetNzmax | ( | const mxArray * | ptr | ) |
Definition at line 4674 of file mex.cc.
References mxArray::get_nzmax().
double * mxGetPi | ( | const mxArray * | ptr | ) |
Definition at line 4373 of file mex.cc.
References mxArray::get_imag_data().
double* mxGetPr | ( | const mxArray * | ptr | ) |
Definition at line 4340 of file mex.cc.
References mxArray::get_data().
Definition at line 4642 of file mex.cc.
References mxArray::get_property().
double mxGetScalar | ( | const mxArray * | ptr | ) |
Definition at line 4346 of file mex.cc.
References mxArray::get_scalar().
mxSingle * mxGetSingles | ( | const mxArray * | p | ) |
Definition at line 4389 of file mex.cc.
References mxArray::get_singles().
int mxGetString | ( | const mxArray * | ptr, |
char * | buf, | ||
mwSize | buflen | ||
) |
Definition at line 4755 of file mex.cc.
References mxArray::get_string().
mxUint16 * mxGetUint16s | ( | const mxArray * | p | ) |
Definition at line 4419 of file mex.cc.
References mxArray::get_uint16s().
mxUint32 * mxGetUint32s | ( | const mxArray * | p | ) |
Definition at line 4424 of file mex.cc.
References mxArray::get_uint32s().
mxUint64 * mxGetUint64s | ( | const mxArray * | p | ) |
Definition at line 4429 of file mex.cc.
References mxArray::get_uint64s().
mxUint8 * mxGetUint8s | ( | const mxArray * | p | ) |
Definition at line 4414 of file mex.cc.
References mxArray::get_uint8s().
bool mxIsCell | ( | const mxArray * | ptr | ) |
Definition at line 4136 of file mex.cc.
References mxArray::iscell().
bool mxIsChar | ( | const mxArray * | ptr | ) |
bool mxIsClass | ( | const mxArray * | ptr, |
const char * | name | ||
) |
Definition at line 4148 of file mex.cc.
References mxArray::is_class().
bool mxIsComplex | ( | const mxArray * | ptr | ) |
Definition at line 4154 of file mex.cc.
References mxArray::is_complex().
bool mxIsDouble | ( | const mxArray * | ptr | ) |
Definition at line 4160 of file mex.cc.
References mxArray::is_double().
bool mxIsEmpty | ( | const mxArray * | ptr | ) |
Definition at line 4265 of file mex.cc.
References mxArray::isempty().
bool mxIsFinite | ( | const double | v | ) |
Definition at line 3816 of file mex.cc.
References lo_ieee_isfinite.
bool mxIsFromGlobalWS | ( | const mxArray * | ptr | ) |
bool mxIsFunctionHandle | ( | const mxArray * | ptr | ) |
Definition at line 4166 of file mex.cc.
References mxArray::is_function_handle().
bool mxIsInf | ( | const double | v | ) |
Definition at line 3822 of file mex.cc.
References lo_ieee_isinf.
bool mxIsInt16 | ( | const mxArray * | ptr | ) |
Definition at line 4172 of file mex.cc.
References mxArray::is_int16().
bool mxIsInt32 | ( | const mxArray * | ptr | ) |
Definition at line 4178 of file mex.cc.
References mxArray::is_int32().
bool mxIsInt64 | ( | const mxArray * | ptr | ) |
Definition at line 4184 of file mex.cc.
References mxArray::is_int64().
bool mxIsInt8 | ( | const mxArray * | ptr | ) |
Definition at line 4190 of file mex.cc.
References mxArray::is_int8().
bool mxIsLogical | ( | const mxArray * | ptr | ) |
Definition at line 4196 of file mex.cc.
References mxArray::is_logical().
bool mxIsLogicalScalar | ( | const mxArray * | ptr | ) |
Definition at line 4251 of file mex.cc.
References mxArray::is_logical_scalar().
bool mxIsLogicalScalarTrue | ( | const mxArray * | ptr | ) |
Definition at line 4258 of file mex.cc.
References mxArray::is_logical_scalar_true().
bool mxIsNaN | ( | const double | v | ) |
Definition at line 3828 of file mex.cc.
References lo_ieee_isnan.
bool mxIsNumeric | ( | const mxArray * | ptr | ) |
Definition at line 4202 of file mex.cc.
References mxArray::is_numeric().
bool mxIsScalar | ( | const mxArray * | ptr | ) |
Definition at line 4271 of file mex.cc.
References mxArray::is_scalar().
bool mxIsSingle | ( | const mxArray * | ptr | ) |
Definition at line 4208 of file mex.cc.
References mxArray::is_single().
bool mxIsSparse | ( | const mxArray * | ptr | ) |
Definition at line 4214 of file mex.cc.
References mxArray::is_sparse().
bool mxIsStruct | ( | const mxArray * | ptr | ) |
Definition at line 4220 of file mex.cc.
References mxArray::is_struct().
bool mxIsUint16 | ( | const mxArray * | ptr | ) |
Definition at line 4226 of file mex.cc.
References mxArray::is_uint16().
bool mxIsUint32 | ( | const mxArray * | ptr | ) |
Definition at line 4232 of file mex.cc.
References mxArray::is_uint32().
bool mxIsUint64 | ( | const mxArray * | ptr | ) |
Definition at line 4238 of file mex.cc.
References mxArray::is_uint64().
bool mxIsUint8 | ( | const mxArray * | ptr | ) |
Definition at line 4244 of file mex.cc.
References mxArray::is_uint8().
OCTINTERP_API int mxMakeArrayComplex | ( | mxArray * | ptr | ) |
OCTINTERP_API int mxMakeArrayReal | ( | mxArray * | ptr | ) |
void* mxMalloc | ( | std::size_t | n | ) |
Definition at line 3859 of file mex.cc.
References mex::malloc(), mex_context, n, and xmalloc().
void* mxRealloc | ( | void * | ptr, |
std::size_t | size | ||
) |
Definition at line 3865 of file mex.cc.
References mex_context, mex::realloc(), and xrealloc().
Referenced by mxArray_struct::add_field().
void mxRemoveField | ( | mxArray * | ptr, |
int | key_num | ||
) |
Definition at line 4705 of file mex.cc.
References mxArray::remove_field().
Definition at line 4655 of file mex.cc.
References mxArray::set_cell().
void mxSetClassName | ( | mxArray * | ptr, |
const char * | name | ||
) |
Definition at line 4629 of file mex.cc.
References mxArray::set_class_name().
int mxSetComplexDoubles | ( | mxArray * | p, |
mxComplexDouble * | d | ||
) |
Definition at line 4550 of file mex.cc.
References maybe_unmark(), and mxArray::set_complex_doubles().
int mxSetComplexSingles | ( | mxArray * | p, |
mxComplexSingle * | d | ||
) |
Definition at line 4555 of file mex.cc.
References maybe_unmark(), and mxArray::set_complex_singles().
void mxSetData | ( | mxArray * | ptr, |
void * | pr | ||
) |
Definition at line 4495 of file mex.cc.
References maybe_unmark(), and mxArray::set_data().
int mxSetDimensions | ( | mxArray * | ptr, |
const mwSize * | dims, | ||
mwSize | ndims | ||
) |
Definition at line 4331 of file mex.cc.
References maybe_unmark(), and mxArray::set_dimensions().
int mxSetDoubles | ( | mxArray * | p, |
mxDouble * | d | ||
) |
Definition at line 4500 of file mex.cc.
References maybe_unmark(), and mxArray::set_doubles().
Definition at line 4724 of file mex.cc.
References mxGetFieldNumber(), and mxSetFieldByNumber().
Definition at line 4731 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 4610 of file mex.cc.
References maybe_unmark(), pi, and mxArray::set_imag_data().
int mxSetInt16s | ( | mxArray * | p, |
mxInt16 * | d | ||
) |
Definition at line 4515 of file mex.cc.
References maybe_unmark(), and mxArray::set_int16s().
int mxSetInt32s | ( | mxArray * | p, |
mxInt32 * | d | ||
) |
Definition at line 4520 of file mex.cc.
References maybe_unmark(), and mxArray::set_int32s().
int mxSetInt64s | ( | mxArray * | p, |
mxInt64 * | d | ||
) |
Definition at line 4525 of file mex.cc.
References maybe_unmark(), and mxArray::set_int64s().
int mxSetInt8s | ( | mxArray * | p, |
mxInt8 * | d | ||
) |
Definition at line 4510 of file mex.cc.
References maybe_unmark(), and mxArray::set_int8s().
void mxSetIr | ( | mxArray * | ptr, |
mwIndex * | ir | ||
) |
Definition at line 4680 of file mex.cc.
References maybe_unmark(), and mxArray::set_ir().
void mxSetJc | ( | mxArray * | ptr, |
mwIndex * | jc | ||
) |
Definition at line 4686 of file mex.cc.
References maybe_unmark(), and mxArray::set_jc().
void mxSetM | ( | mxArray * | ptr, |
mwSize | m | ||
) |
Definition at line 4319 of file mex.cc.
References m, and mxArray::set_m().
void mxSetN | ( | mxArray * | ptr, |
mwSize | n | ||
) |
Definition at line 4325 of file mex.cc.
References n, and mxArray::set_n().
void mxSetNzmax | ( | mxArray * | ptr, |
mwSize | nzmax | ||
) |
Definition at line 4692 of file mex.cc.
References mxArray::set_nzmax().
void mxSetPi | ( | mxArray * | ptr, |
double * | pi | ||
) |
Definition at line 4604 of file mex.cc.
References maybe_unmark(), pi, and mxArray::set_imag_data().
void mxSetPr | ( | mxArray * | ptr, |
double * | pr | ||
) |
Definition at line 4489 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 4635 of file mex.cc.
References mxArray::set_property().
int mxSetSingles | ( | mxArray * | p, |
mxSingle * | d | ||
) |
Definition at line 4505 of file mex.cc.
References maybe_unmark(), and mxArray::set_singles().
int mxSetUint16s | ( | mxArray * | p, |
mxUint16 * | d | ||
) |
Definition at line 4535 of file mex.cc.
References maybe_unmark(), and mxArray::set_uint16s().
int mxSetUint32s | ( | mxArray * | p, |
mxUint32 * | d | ||
) |
Definition at line 4540 of file mex.cc.
References maybe_unmark(), and mxArray::set_uint32s().
int mxSetUint64s | ( | mxArray * | p, |
mxUint64 * | d | ||
) |
Definition at line 4545 of file mex.cc.
References maybe_unmark(), and mxArray::set_uint64s().
int mxSetUint8s | ( | mxArray * | p, |
mxUint8 * | d | ||
) |
Definition at line 4530 of file mex.cc.
References maybe_unmark(), and mxArray::set_uint8s().
|
static |
Definition at line 291 of file mex.cc.
References free().
Referenced by mex::~mex(), mex::free(), and mxFree().
|
static |
Definition at line 266 of file mex.cc.
Referenced by mxArray::malloc(), mex::malloc_unmarked(), and mxMalloc().
|
static |
mex* mex_context = nullptr |
Definition at line 3732 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 5369 of file mex.cc.
Referenced by mexLock(), and mexUnlock().