#include "mxarray.h"
Public Member Functions | |
mxArray (bool interleaved, const char *str) | |
mxArray (bool interleaved, const dim_vector &dv) | |
mxArray (bool interleaved, const dim_vector &dv, int num_keys, const char **keys) | |
mxArray (bool interleaved, const octave_value &ov) | |
mxArray (bool interleaved, mwSize m, const char **str) | |
mxArray (bool interleaved, mwSize m, mwSize n) | |
mxArray (bool interleaved, mwSize m, mwSize n, int num_keys, const char **keys) | |
mxArray (bool interleaved, mwSize ndims, const mwSize *dims) | |
mxArray (bool interleaved, mwSize ndims, const mwSize *dims, int num_keys, const char **keys) | |
mxArray (bool interleaved, mxClassID id, const dim_vector &dv, mxComplexity flag=mxREAL) | |
mxArray (bool interleaved, mxClassID id, double val) | |
mxArray (bool interleaved, mxClassID id, mwSize m, mwSize n, mwSize nzmax, mxComplexity flag=mxREAL) | |
mxArray (bool interleaved, mxClassID id, mwSize m, mwSize n, mxComplexity flag=mxREAL, bool init=true) | |
mxArray (bool interleaved, mxClassID id, mwSize ndims, const mwSize *dims, mxComplexity flag=mxREAL, bool init=true) | |
mxArray (bool interleaved, mxClassID id, mxLogical val) | |
~mxArray () | |
int | add_field (const char *key) |
char * | array_to_string () const |
octave_value | as_octave_value () const |
mwIndex | calc_single_subscript (mwSize nsubs, mwIndex *subs) const |
mxArray * | dup () const |
mxArray * | get_cell (mwIndex idx) const |
mxClassID | get_class_id () const |
const char * | get_class_name () const |
mxComplexDouble * | get_complex_doubles () const |
mxComplexSingle * | get_complex_singles () const |
void * | get_data () const |
mwSize * | get_dimensions () const |
mxDouble * | get_doubles () const |
std::size_t | get_element_size () 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 () const |
mxInt16 * | get_int16s () const |
mxInt32 * | get_int32s () const |
mxInt64 * | get_int64s () const |
mxInt8 * | get_int8s () const |
mwIndex * | get_ir () const |
mwIndex * | get_jc () const |
mwSize | get_m () const |
mwSize | get_n () const |
const char * | get_name () const |
mwSize | get_number_of_dimensions () const |
mwSize | get_number_of_elements () const |
int | get_number_of_fields () const |
mwSize | get_nzmax () const |
mxArray * | get_property (mwIndex idx, const char *pname) const |
double | get_scalar () const |
mxSingle * | get_singles () const |
int | get_string (char *buf, mwSize buflen) const |
mxUint16 * | get_uint16s () const |
mxUint32 * | get_uint32s () const |
mxUint64 * | get_uint64s () const |
mxUint8 * | get_uint8s () const |
int | is_char () const |
int | is_class (const char *name_arg) const |
int | is_complex () const |
int | is_double () const |
int | is_function_handle () const |
int | is_int16 () const |
int | is_int32 () const |
int | is_int64 () const |
int | is_int8 () const |
int | is_logical () const |
int | is_logical_scalar () const |
int | is_logical_scalar_true () const |
int | is_numeric () const |
bool | is_octave_value () const |
bool | is_scalar () const |
int | is_single () const |
int | is_sparse () const |
int | is_struct () const |
int | is_uint16 () const |
int | is_uint32 () const |
int | is_uint64 () const |
int | is_uint8 () const |
int | iscell () const |
int | isempty () const |
mxArray * | mutate () const |
bool | mutation_needed () const |
void | remove_field (int key_num) |
void | set_cell (mwIndex idx, mxArray *val) |
void | set_class_name (const char *name_arg) |
int | set_complex_doubles (mxComplexDouble *data) |
int | set_complex_singles (mxComplexSingle *data) |
void | set_data (void *pr) |
int | set_dimensions (mwSize *dims_arg, mwSize ndims_arg) |
int | set_doubles (mxDouble *data) |
void | set_field_by_number (mwIndex index, int key_num, mxArray *val) |
void | set_imag_data (void *pi) |
int | set_int16s (mxInt16 *data) |
int | set_int32s (mxInt32 *data) |
int | set_int64s (mxInt64 *data) |
int | set_int8s (mxInt8 *data) |
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) |
void | set_nzmax (mwSize nzmax) |
void | set_property (mwIndex idx, const char *pname, const mxArray *pval) |
int | set_singles (mxSingle *data) |
int | set_uint16s (mxUint16 *data) |
int | set_uint32s (mxUint32 *data) |
int | set_uint64s (mxUint64 *data) |
int | set_uint8s (mxUint8 *data) |
Static Public Member Functions | |
static void * | alloc (bool init, std::size_t n, std::size_t t) |
static octave_value | as_octave_value (const mxArray *ptr, bool null_is_empty=true) |
static void * | calloc (std::size_t n, std::size_t t) |
static void * | malloc (std::size_t n) |
static char * | strsave (const char *str) |
mxArray::mxArray | ( | bool | interleaved, |
const octave_value & | ov | ||
) |
mxArray::mxArray | ( | bool | interleaved, |
mxClassID | id, | ||
mwSize | ndims, | ||
const mwSize * | dims, | ||
mxComplexity | flag = mxREAL , |
||
bool | init = true |
||
) |
mxArray::mxArray | ( | bool | interleaved, |
mxClassID | id, | ||
const dim_vector & | dv, | ||
mxComplexity | flag = mxREAL |
||
) |
mxArray::mxArray | ( | bool | interleaved, |
mxClassID | id, | ||
mwSize | m, | ||
mwSize | n, | ||
mxComplexity | flag = mxREAL , |
||
bool | init = true |
||
) |
mxArray::mxArray | ( | bool | interleaved, |
mxClassID | id, | ||
double | val | ||
) |
mxArray::mxArray | ( | bool | interleaved, |
mwSize | m, | ||
const char ** | str | ||
) |
mxArray::mxArray | ( | bool | interleaved, |
const dim_vector & | dv, | ||
int | num_keys, | ||
const char ** | keys | ||
) |
mxArray::mxArray | ( | bool | interleaved, |
const dim_vector & | dv | ||
) |
|
inline |
|
static |
|
inline |
Definition at line 589 of file mxarray.h.
References mxArray_base::array_to_string().
Referenced by mxArrayToString().
octave_value mxArray::as_octave_value | ( | void | ) | const |
Definition at line 3046 of file mex.cc.
References mxArray_base::as_octave_value().
Referenced by call_mex(), mexPutVariable(), and mexSet().
|
static |
Definition at line 3036 of file mex.cc.
References as_octave_value().
Referenced by as_octave_value().
Definition at line 591 of file mxarray.h.
References mxArray_base::calc_single_subscript().
Referenced by mxCalcSingleSubscript().
|
static |
|
inline |
Definition at line 360 of file mxarray.h.
References mxArray(), mxArray_base::as_mxArray(), mxArray_base::dup(), and set_name().
|
inline |
Definition at line 452 of file mxarray.h.
References mxArray_base::get_class_id().
Referenced by mxGetClassID().
|
inline |
Definition at line 454 of file mxarray.h.
References mxArray_base::get_class_name().
Referenced by mxGetClassName().
|
inline |
Definition at line 505 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by octave_complex::as_mxArray(), and mxGetComplexDoubles().
|
inline |
Definition at line 508 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by mxGetComplexSingles().
|
inline |
Definition at line 473 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by octave_bool_matrix::as_mxArray(), octave_sparse_bool_matrix::as_mxArray(), octave_bool::as_mxArray(), octave_cell::as_mxArray(), octave_char_matrix::as_mxArray(), octave_complex::as_mxArray(), octave_complex_matrix::as_mxArray(), octave_sparse_complex_matrix::as_mxArray(), octave_float_scalar::as_mxArray(), octave_float_complex::as_mxArray(), octave_float_complex_matrix::as_mxArray(), octave_float_matrix::as_mxArray(), octave_uint64_matrix::as_mxArray(), octave_uint64_scalar::as_mxArray(), ov_range< T >::as_mxArray(), octave_matrix::as_mxArray(), octave_sparse_matrix::as_mxArray(), octave_scalar::as_mxArray(), octave_struct::as_mxArray(), octave_scalar_struct::as_mxArray(), mxGetChars(), mxGetData(), mxGetLogicals(), and mxGetPr().
|
inline |
Definition at line 429 of file mxarray.h.
References mxArray_base::get_dimensions().
Referenced by mxGetDimensions().
|
inline |
Definition at line 475 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by mxGetDoubles().
|
inline |
Definition at line 594 of file mxarray.h.
References mxArray_base::get_element_size().
Referenced by mxGetElementSize().
Definition at line 571 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by mxGetFieldByNumber().
|
inline |
Definition at line 580 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by mxGetFieldNameByNumber().
|
inline |
Definition at line 583 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by mxGetFieldNumber().
|
inline |
Definition at line 511 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by mxGetImagData(), and mxGetPi().
|
inline |
Definition at line 484 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by mxGetInt16s().
|
inline |
Definition at line 487 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by mxGetInt32s().
|
inline |
Definition at line 490 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by mxGetInt64s().
|
inline |
|
inline |
Definition at line 554 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by octave_sparse_bool_matrix::as_mxArray(), octave_sparse_complex_matrix::as_mxArray(), octave_sparse_matrix::as_mxArray(), and mxGetIr().
|
inline |
Definition at line 556 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by octave_sparse_bool_matrix::as_mxArray(), octave_sparse_matrix::as_mxArray(), and mxGetJc().
|
inline |
|
inline |
|
inline |
Definition at line 448 of file mxarray.h.
Referenced by mexPutVariable().
|
inline |
Definition at line 431 of file mxarray.h.
References mxArray_base::get_number_of_dimensions().
Referenced by mxGetNumberOfDimensions().
|
inline |
Definition at line 441 of file mxarray.h.
References mxArray_base::get_number_of_elements().
Referenced by isempty(), and mxGetNumberOfElements().
|
inline |
Definition at line 577 of file mxarray.h.
References mxArray_base::get_number_of_fields().
Referenced by mxGetNumberOfFields().
|
inline |
Definition at line 558 of file mxarray.h.
References mxArray_base::get_nzmax().
Referenced by mxGetNzmax().
Definition at line 456 of file mxarray.h.
References mxArray_base::get_property().
Referenced by mxGetProperty().
|
inline |
Definition at line 471 of file mxarray.h.
References mxArray_base::get_scalar().
Referenced by mxGetScalar().
|
inline |
Definition at line 478 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by mxGetSingles().
|
inline |
Definition at line 586 of file mxarray.h.
References mxArray_base::get_string().
Referenced by mxGetString().
|
inline |
Definition at line 496 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by mxGetUint16s().
|
inline |
Definition at line 499 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by mxGetUint32s().
|
inline |
Definition at line 502 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by mxGetUint64s().
|
inline |
Definition at line 493 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by mxGetUint8s().
|
inline |
Definition at line 384 of file mxarray.h.
References mxArray_base::is_char().
Referenced by mxIsChar().
|
inline |
Definition at line 386 of file mxarray.h.
References mxArray_base::is_class().
Referenced by mxIsClass().
|
inline |
Definition at line 388 of file mxarray.h.
References mxArray_base::is_complex().
Referenced by mxIsComplex().
|
inline |
Definition at line 390 of file mxarray.h.
References mxArray_base::is_double().
Referenced by mxIsDouble().
|
inline |
Definition at line 392 of file mxarray.h.
References mxArray_base::is_function_handle().
Referenced by mxIsFunctionHandle().
|
inline |
Definition at line 394 of file mxarray.h.
References mxArray_base::is_int16().
Referenced by mxIsInt16().
|
inline |
Definition at line 396 of file mxarray.h.
References mxArray_base::is_int32().
Referenced by mxIsInt32().
|
inline |
Definition at line 398 of file mxarray.h.
References mxArray_base::is_int64().
Referenced by mxIsInt64().
|
inline |
Definition at line 400 of file mxarray.h.
References mxArray_base::is_int8().
Referenced by mxIsInt8().
|
inline |
Definition at line 402 of file mxarray.h.
References mxArray_base::is_logical().
Referenced by mxIsLogical().
|
inline |
Definition at line 420 of file mxarray.h.
References mxArray_base::is_logical_scalar().
Referenced by mxIsLogicalScalar().
|
inline |
Definition at line 422 of file mxarray.h.
References mxArray_base::is_logical_scalar_true().
Referenced by mxIsLogicalScalarTrue().
|
inline |
Definition at line 404 of file mxarray.h.
References mxArray_base::is_numeric().
Referenced by mxIsNumeric().
|
inline |
Definition at line 380 of file mxarray.h.
References mxArray_base::is_octave_value().
|
inline |
Definition at line 446 of file mxarray.h.
References mxArray_base::is_scalar().
Referenced by mxIsScalar().
|
inline |
Definition at line 406 of file mxarray.h.
References mxArray_base::is_single().
Referenced by mxIsSingle().
|
inline |
Definition at line 408 of file mxarray.h.
References mxArray_base::is_sparse().
Referenced by mxIsSparse().
|
inline |
Definition at line 410 of file mxarray.h.
References mxArray_base::is_struct().
Referenced by mxIsStruct().
|
inline |
Definition at line 412 of file mxarray.h.
References mxArray_base::is_uint16().
Referenced by mxIsUint16().
|
inline |
Definition at line 414 of file mxarray.h.
References mxArray_base::is_uint32().
Referenced by mxIsUint32().
|
inline |
Definition at line 416 of file mxarray.h.
References mxArray_base::is_uint64().
Referenced by mxIsUint64().
|
inline |
Definition at line 418 of file mxarray.h.
References mxArray_base::is_uint8().
Referenced by mxIsUint8().
|
inline |
Definition at line 382 of file mxarray.h.
References mxArray_base::iscell().
Referenced by mxIsCell().
|
inline |
Definition at line 444 of file mxarray.h.
References get_number_of_elements().
Referenced by mxIsEmpty().
|
static |
|
inline |
Definition at line 599 of file mxarray.h.
References mxArray_base::mutate().
|
inline |
Definition at line 597 of file mxarray.h.
References mxArray_base::mutation_needed().
|
inline |
Definition at line 568 of file mxarray.h.
References DO_VOID_MUTABLE_METHOD.
Referenced by mxRemoveField().
Definition at line 468 of file mxarray.h.
References DO_VOID_MUTABLE_METHOD.
Referenced by mxSetCell().
|
inline |
Definition at line 462 of file mxarray.h.
References DO_VOID_MUTABLE_METHOD.
Referenced by mxSetClassName().
|
inline |
Definition at line 546 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by mxSetComplexDoubles().
|
inline |
Definition at line 549 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by mxSetComplexSingles().
|
inline |
Definition at line 514 of file mxarray.h.
References DO_VOID_MUTABLE_METHOD.
Referenced by mxSetData(), and mxSetPr().
Definition at line 438 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by mxSetDimensions().
|
inline |
Definition at line 516 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by mxSetDoubles().
Definition at line 574 of file mxarray.h.
References DO_VOID_MUTABLE_METHOD.
Referenced by mxSetFieldByNumber().
|
inline |
Definition at line 525 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by mxSetInt16s().
|
inline |
Definition at line 528 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by mxSetInt32s().
|
inline |
Definition at line 531 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by mxSetInt64s().
|
inline |
|
inline |
Definition at line 560 of file mxarray.h.
References DO_VOID_MUTABLE_METHOD.
Referenced by mxSetIr().
|
inline |
Definition at line 562 of file mxarray.h.
References DO_VOID_MUTABLE_METHOD.
Referenced by mxSetJc().
|
inline |
Definition at line 434 of file mxarray.h.
References DO_VOID_MUTABLE_METHOD, and m.
Referenced by mxSetM().
|
inline |
Definition at line 436 of file mxarray.h.
References DO_VOID_MUTABLE_METHOD, and n.
Referenced by mxSetN().
void mxArray::set_name | ( | const char * | name | ) |
|
inline |
Definition at line 564 of file mxarray.h.
References DO_VOID_MUTABLE_METHOD.
Referenced by mxSetNzmax().
Definition at line 459 of file mxarray.h.
References mxArray_base::set_property().
Referenced by mxSetProperty().
|
inline |
Definition at line 519 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by mxSetSingles().
|
inline |
Definition at line 537 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by mxSetUint16s().
|
inline |
Definition at line 540 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by mxSetUint32s().
|
inline |
Definition at line 543 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by mxSetUint64s().
|
inline |
Definition at line 534 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by mxSetUint8s().
|
inlinestatic |
Definition at line 607 of file mxarray.h.
References malloc(), and strlen().
Referenced by set_name().