#include "mxarray.in.h"
Public Member Functions | |
mxArray (const char *str) | |
mxArray (const dim_vector &dv) | |
mxArray (const dim_vector &dv, int num_keys, const char **keys) | |
mxArray (const mxArray &)=delete | |
mxArray (const octave_value &ov) | |
mxArray (mwSize m, const char **str) | |
mxArray (mwSize m, mwSize n) | |
mxArray (mwSize m, mwSize n, int num_keys, const char **keys) | |
mxArray (mwSize ndims, const mwSize *dims) | |
mxArray (mwSize ndims, const mwSize *dims, int num_keys, const char **keys) | |
mxArray (mxClassID id, const dim_vector &dv, mxComplexity flag=mxREAL) | |
mxArray (mxClassID id, double val) | |
mxArray (mxClassID id, mwSize m, mwSize n, mwSize nzmax, mxComplexity flag=mxREAL) | |
mxArray (mxClassID id, mwSize m, mwSize n, mxComplexity flag=mxREAL, bool init=true) | |
mxArray (mxClassID id, mwSize ndims, const mwSize *dims, mxComplexity flag=mxREAL, bool init=true) | |
mxArray (mxClassID id, mxLogical val) | |
~mxArray (void) | |
int | add_field (const char *key) |
char * | array_to_string (void) const |
octave_value | as_octave_value (void) const |
mwIndex | calc_single_subscript (mwSize nsubs, mwIndex *subs) const |
mxArray * | dup (void) const |
mxArray * | get_cell (mwIndex idx) const |
mxClassID | get_class_id (void) const |
const char * | get_class_name (void) const |
void * | get_data (void) const |
mwSize * | get_dimensions (void) const |
size_t | get_element_size (void) const |
mxArray * | get_field_by_number (mwIndex index, int key_num) const |
const char * | get_field_name_by_number (int key_num) const |
int | get_field_number (const char *key) const |
void * | get_imag_data (void) const |
mwIndex * | get_ir (void) const |
mwIndex * | get_jc (void) const |
mwSize | get_m (void) const |
mwSize | get_n (void) const |
const char * | get_name (void) const |
mwSize | get_number_of_dimensions (void) const |
mwSize | get_number_of_elements (void) const |
int | get_number_of_fields (void) const |
mwSize | get_nzmax (void) const |
mxArray * | get_property (mwIndex idx, const char *pname) const |
double | get_scalar (void) const |
int | get_string (char *buf, mwSize buflen) const |
int | is_char (void) const |
int | is_class (const char *name_arg) const |
int | is_complex (void) const |
int | is_double (void) const |
int | is_function_handle (void) const |
int | is_int16 (void) const |
int | is_int32 (void) const |
int | is_int64 (void) const |
int | is_int8 (void) const |
int | is_logical (void) const |
int | is_logical_scalar (void) const |
int | is_logical_scalar_true (void) const |
int | is_numeric (void) const |
bool | is_octave_value (void) const |
bool | is_scalar (void) const |
int | is_single (void) const |
int | is_sparse (void) const |
int | is_struct (void) const |
int | is_uint16 (void) const |
int | is_uint32 (void) const |
int | is_uint64 (void) const |
int | is_uint8 (void) const |
int | iscell (void) const |
int | isempty (void) const |
mxArray * | mutate (void) const |
bool | mutation_needed (void) const |
mxArray & | operator= (const mxArray &)=delete |
void | remove_field (int key_num) |
void | set_cell (mwIndex idx, mxArray *val) |
void | set_class_name (const char *name_arg) |
void | set_data (void *pr) |
int | set_dimensions (mwSize *dims_arg, mwSize ndims_arg) |
void | set_field_by_number (mwIndex index, int key_num, mxArray *val) |
void | set_imag_data (void *pi) |
void | set_ir (mwIndex *ir) |
void | set_jc (mwIndex *jc) |
void | set_m (mwSize m) |
void | set_n (mwSize n) |
void | set_name (const char *name_arg) |
void | set_nzmax (mwSize nzmax) |
void | set_property (mwIndex idx, const char *pname, const mxArray *pval) |
Static Public Member Functions | |
static octave_value | as_octave_value (const mxArray *ptr, bool null_is_empty=true) |
static void * | calloc (size_t n, size_t t) |
static void * | malloc (size_t n) |
static char * | strsave (const char *str) |
Private Member Functions | |
mxArray (mxArray_base *r, const char *n) | |
void | maybe_mutate (void) const |
Private Attributes | |
char * | name |
mxArray_base * | rep |
Definition at line 320 of file mxarray.in.h.
mxArray::mxArray | ( | const octave_value & | ov | ) |
mxArray::mxArray | ( | mxClassID | id, |
mwSize | ndims, | ||
const mwSize * | dims, | ||
mxComplexity | flag = mxREAL , |
||
bool | init = true |
||
) |
mxArray::mxArray | ( | mxClassID | id, |
const dim_vector & | dv, | ||
mxComplexity | flag = mxREAL |
||
) |
mxArray::mxArray | ( | mxClassID | id, |
mwSize | m, | ||
mwSize | n, | ||
mxComplexity | flag = mxREAL , |
||
bool | init = true |
||
) |
mxArray::mxArray | ( | const dim_vector & | dv, |
int | num_keys, | ||
const char ** | keys | ||
) |
mxArray::mxArray | ( | const dim_vector & | dv | ) |
|
delete |
mxArray::~mxArray | ( | void | ) |
|
inlineprivate |
Definition at line 560 of file mxarray.in.h.
|
inline |
Definition at line 495 of file mxarray.in.h.
References DO_MUTABLE_METHOD.
Referenced by mxAddField().
|
inline |
Definition at line 517 of file mxarray.in.h.
References mxArray_base::array_to_string(), and rep.
Referenced by mxArrayToString().
|
static |
Definition at line 2088 of file mex.cc.
References as_octave_value().
Referenced by as_octave_value(), and mxArray_octave_value::set_property().
octave_value mxArray::as_octave_value | ( | void | ) | const |
Definition at line 2098 of file mex.cc.
References mxArray_base::as_octave_value(), and rep.
Referenced by mxArray_struct::as_octave_value(), mxArray_cell::as_octave_value(), call_mex(), mexCallMATLAB(), mexPutVariable(), and mexSet().
Definition at line 519 of file mxarray.in.h.
References mxArray_base::calc_single_subscript(), and rep.
Referenced by mxCalcSingleSubscript().
|
static |
Definition at line 2458 of file mex.cc.
References mex::calloc_unmarked(), mex_context, and n.
Referenced by mxArray_sparse::mxArray_sparse().
|
inline |
Definition at line 357 of file mxarray.in.h.
References mxArray(), mxArray_base::as_mxArray(), mxArray_base::dup(), name, rep, and retval.
Referenced by mxArray_cell::mxArray_cell(), mxArray_struct::mxArray_struct(), and mxDuplicateArray().
Definition at line 466 of file mxarray.in.h.
References DO_MUTABLE_METHOD.
Referenced by mxGetCell().
|
inline |
Definition at line 453 of file mxarray.in.h.
References mxArray_base::get_class_id(), and rep.
Referenced by mxGetClassID().
|
inline |
Definition at line 455 of file mxarray.in.h.
References mxArray_base::get_class_name(), and rep.
Referenced by mxGetClassName().
|
inline |
Definition at line 474 of file mxarray.in.h.
References DO_MUTABLE_METHOD.
Referenced by mxGetChars(), mxGetData(), mxGetLogicals(), and mxGetPr().
|
inline |
Definition at line 430 of file mxarray.in.h.
References mxArray_base::get_dimensions(), and rep.
Referenced by mxGetDimensions().
|
inline |
Definition at line 522 of file mxarray.in.h.
References mxArray_base::get_element_size(), and rep.
Referenced by mxGetElementSize().
Definition at line 500 of file mxarray.in.h.
References DO_MUTABLE_METHOD.
Referenced by mxGetFieldByNumber().
|
inline |
Definition at line 508 of file mxarray.in.h.
References DO_MUTABLE_METHOD.
Referenced by mxGetFieldNameByNumber().
|
inline |
Definition at line 511 of file mxarray.in.h.
References DO_MUTABLE_METHOD.
Referenced by mxGetFieldNumber().
|
inline |
Definition at line 476 of file mxarray.in.h.
References DO_MUTABLE_METHOD.
Referenced by mxGetImagData(), and mxGetPi().
|
inline |
|
inline |
|
inline |
Definition at line 426 of file mxarray.in.h.
References mxArray_base::get_m(), and rep.
Referenced by mxGetM().
|
inline |
Definition at line 428 of file mxarray.in.h.
References mxArray_base::get_n(), and rep.
Referenced by mxGetN().
|
inline |
|
inline |
Definition at line 432 of file mxarray.in.h.
References mxArray_base::get_number_of_dimensions(), and rep.
Referenced by mxGetNumberOfDimensions().
|
inline |
Definition at line 442 of file mxarray.in.h.
References mxArray_base::get_number_of_elements(), and rep.
Referenced by isempty(), and mxGetNumberOfElements().
|
inline |
Definition at line 506 of file mxarray.in.h.
References mxArray_base::get_number_of_fields(), and rep.
Referenced by mxGetNumberOfFields().
|
inline |
Definition at line 487 of file mxarray.in.h.
References mxArray_base::get_nzmax(), and rep.
Referenced by mxGetNzmax().
Definition at line 457 of file mxarray.in.h.
References mxArray_base::get_property(), and rep.
Referenced by mxGetProperty().
|
inline |
Definition at line 472 of file mxarray.in.h.
References mxArray_base::get_scalar(), and rep.
Referenced by mxGetScalar().
|
inline |
Definition at line 514 of file mxarray.in.h.
References mxArray_base::get_string(), and rep.
Referenced by mxGetString().
|
inline |
Definition at line 385 of file mxarray.in.h.
References mxArray_base::is_char(), and rep.
Referenced by mxIsChar().
|
inline |
Definition at line 387 of file mxarray.in.h.
References mxArray_base::is_class(), and rep.
Referenced by mxIsClass().
|
inline |
Definition at line 389 of file mxarray.in.h.
References mxArray_base::is_complex(), and rep.
Referenced by mxIsComplex().
|
inline |
Definition at line 391 of file mxarray.in.h.
References mxArray_base::is_double(), and rep.
Referenced by mxIsDouble().
|
inline |
Definition at line 393 of file mxarray.in.h.
References mxArray_base::is_function_handle(), and rep.
Referenced by mxIsFunctionHandle().
|
inline |
Definition at line 395 of file mxarray.in.h.
References mxArray_base::is_int16(), and rep.
Referenced by mxIsInt16().
|
inline |
Definition at line 397 of file mxarray.in.h.
References mxArray_base::is_int32(), and rep.
Referenced by mxIsInt32().
|
inline |
Definition at line 399 of file mxarray.in.h.
References mxArray_base::is_int64(), and rep.
Referenced by mxIsInt64().
|
inline |
Definition at line 401 of file mxarray.in.h.
References mxArray_base::is_int8(), and rep.
Referenced by mxIsInt8().
|
inline |
Definition at line 403 of file mxarray.in.h.
References mxArray_base::is_logical(), and rep.
Referenced by mxIsLogical().
|
inline |
Definition at line 421 of file mxarray.in.h.
References mxArray_base::is_logical_scalar(), and rep.
Referenced by mxIsLogicalScalar().
|
inline |
Definition at line 423 of file mxarray.in.h.
References mxArray_base::is_logical_scalar_true(), and rep.
Referenced by mxIsLogicalScalarTrue().
|
inline |
Definition at line 405 of file mxarray.in.h.
References mxArray_base::is_numeric(), and rep.
Referenced by mxIsNumeric().
|
inline |
Definition at line 381 of file mxarray.in.h.
References mxArray_base::is_octave_value(), and rep.
|
inline |
Definition at line 447 of file mxarray.in.h.
References mxArray_base::is_scalar(), and rep.
Referenced by mxIsScalar().
|
inline |
Definition at line 407 of file mxarray.in.h.
References mxArray_base::is_single(), and rep.
Referenced by mxIsSingle().
|
inline |
Definition at line 409 of file mxarray.in.h.
References mxArray_base::is_sparse(), and rep.
Referenced by mxIsSparse().
|
inline |
Definition at line 411 of file mxarray.in.h.
References mxArray_base::is_struct(), and rep.
Referenced by mxIsStruct().
|
inline |
Definition at line 413 of file mxarray.in.h.
References mxArray_base::is_uint16(), and rep.
Referenced by mxIsUint16().
|
inline |
Definition at line 415 of file mxarray.in.h.
References mxArray_base::is_uint32(), and rep.
Referenced by mxIsUint32().
|
inline |
Definition at line 417 of file mxarray.in.h.
References mxArray_base::is_uint64(), and rep.
Referenced by mxIsUint64().
|
inline |
Definition at line 419 of file mxarray.in.h.
References mxArray_base::is_uint8(), and rep.
Referenced by mxIsUint8().
|
inline |
Definition at line 383 of file mxarray.in.h.
References mxArray_base::iscell(), and rep.
Referenced by mxIsCell().
|
inline |
Definition at line 445 of file mxarray.in.h.
References get_number_of_elements().
Referenced by mxIsEmpty().
|
static |
Definition at line 2452 of file mex.cc.
References malloc(), mex::malloc_unmarked(), mex_context, and n.
Referenced by mxArray_struct::add_field(), mxArray_octave_value::array_to_string(), mxArray_number::array_to_string(), mxArray_octave_value::get_dimensions(), mxArray_struct::remove_field(), mxArray_matlab::set_class_name(), mxArray_matlab::set_dimensions(), and strsave().
|
private |
Definition at line 2104 of file mex.cc.
References mxArray_base::is_octave_value(), mxArray_base::mutate(), and rep.
|
inline |
Definition at line 526 of file mxarray.in.h.
References mxArray_base::mutate(), and rep.
|
inline |
Definition at line 524 of file mxarray.in.h.
References mxArray_base::mutation_needed(), and rep.
|
inline |
Definition at line 497 of file mxarray.in.h.
References DO_VOID_MUTABLE_METHOD.
Referenced by mxRemoveField().
Definition at line 469 of file mxarray.in.h.
References DO_VOID_MUTABLE_METHOD.
Referenced by mxSetCell().
|
inline |
Definition at line 463 of file mxarray.in.h.
References DO_VOID_MUTABLE_METHOD.
Referenced by mxSetClassName().
|
inline |
Definition at line 479 of file mxarray.in.h.
References DO_VOID_MUTABLE_METHOD.
Referenced by mxSetData(), and mxSetPr().
Definition at line 439 of file mxarray.in.h.
References DO_MUTABLE_METHOD.
Referenced by mxSetDimensions().
Definition at line 503 of file mxarray.in.h.
References DO_VOID_MUTABLE_METHOD.
Referenced by mxSetFieldByNumber().
|
inline |
Definition at line 481 of file mxarray.in.h.
References DO_VOID_MUTABLE_METHOD, and octave::math::pi.
Referenced by mxSetImagData(), and mxSetPi().
|
inline |
Definition at line 489 of file mxarray.in.h.
References DO_VOID_MUTABLE_METHOD.
Referenced by mxSetIr().
|
inline |
Definition at line 491 of file mxarray.in.h.
References DO_VOID_MUTABLE_METHOD.
Referenced by mxSetJc().
|
inline |
Definition at line 435 of file mxarray.in.h.
References DO_VOID_MUTABLE_METHOD, and m.
Referenced by mxSetM().
|
inline |
Definition at line 437 of file mxarray.in.h.
References DO_VOID_MUTABLE_METHOD, and n.
Referenced by mxSetN().
void mxArray::set_name | ( | const char * | name_arg | ) |
|
inline |
Definition at line 493 of file mxarray.in.h.
References DO_VOID_MUTABLE_METHOD.
Referenced by mxSetNzmax().
Definition at line 460 of file mxarray.in.h.
References rep, and mxArray_base::set_property().
Referenced by mxSetProperty().
|
inlinestatic |
Definition at line 532 of file mxarray.in.h.
References malloc(), retval, and strlen().
Referenced by mxArray_struct::mxArray_struct(), mxArray_struct::add_field(), mex::function_name(), mxArray_octave_value::get_class_name(), mxArray_struct::init(), and set_name().
|
private |
Definition at line 558 of file mxarray.in.h.
Referenced by ~mxArray(), dup(), get_name(), and set_name().
|
mutableprivate |
Definition at line 556 of file mxarray.in.h.
Referenced by ~mxArray(), array_to_string(), as_octave_value(), calc_single_subscript(), dup(), get_class_id(), get_class_name(), get_dimensions(), get_element_size(), get_m(), get_n(), get_number_of_dimensions(), get_number_of_elements(), get_number_of_fields(), get_nzmax(), get_property(), get_scalar(), get_string(), is_char(), is_class(), is_complex(), is_double(), is_function_handle(), is_int16(), is_int32(), is_int64(), is_int8(), is_logical(), is_logical_scalar(), is_logical_scalar_true(), is_numeric(), is_octave_value(), is_scalar(), is_single(), is_sparse(), is_struct(), is_uint16(), is_uint32(), is_uint64(), is_uint8(), iscell(), maybe_mutate(), mutate(), mutation_needed(), and set_property().