Public Member Functions | |
mxArray_octave_value (const octave_value &ov) | |
~mxArray_octave_value (void) | |
int | add_field (const char *) |
char * | array_to_string (void) const |
mxArray * | as_mxArray (void) const |
octave_value | as_octave_value (void) const |
mwIndex | calc_single_subscript (mwSize nsubs, mwIndex *subs) const |
mxArray_base * | dup (void) const |
mxArray * | get_cell (mwIndex) 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, int) const |
const char * | get_field_name_by_number (int) const |
int | get_field_number (const char *) 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 |
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 |
virtual 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 |
virtual int | is_logical_scalar (void) const |
int | is_logical_scalar_true (void) const |
int | is_numeric (void) const |
bool | is_octave_value (void) const |
int | is_range (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 |
int | isreal (void) const |
mxArray * | mutate (void) const |
bool | mutation_needed (void) const |
mxArray_octave_value & | operator= (const mxArray_octave_value &)=delete |
void | remove_field (int) |
void | request_mutation (void) const |
void | set_cell (mwIndex, mxArray *) |
void | set_class_name (const char *) |
void | set_data (void *) |
int | set_dimensions (mwSize *, mwSize) |
void | set_field_by_number (mwIndex, int, mxArray *) |
void | set_imag_data (void *) |
void | set_ir (mwIndex *) |
void | set_jc (mwIndex *) |
void | set_m (mwSize) |
void | set_n (mwSize) |
void | set_nzmax (mwSize) |
void | set_property (mwIndex idx, const char *pname, const mxArray *pval) |
Protected Member Functions | |
mxArray_octave_value (const mxArray_octave_value &arg) | |
OCTAVE_NORETURN void | err_invalid_type (void) const |
Private Attributes | |
char * | class_name |
mwSize * | dims |
mxClassID | id |
bool | mutate_flag |
mwSize | ndims |
octave_value | val |
|
inline |
|
inline |
Definition at line 212 of file mex.cc.
References class_name, dims, and mxFree().
|
inlineprotected |
|
inlinevirtual |
|
inlinevirtual |
Implements mxArray_base.
Definition at line 556 of file mex.cc.
References octave_value::char_array_value(), Array< T >::data(), get_number_of_elements(), octave_value::is_string(), mxArray::malloc(), and val.
|
inlinevirtual |
Reimplemented from mxArray_base.
Definition at line 175 of file mex.cc.
References octave_value::as_mxArray(), class_name, dims, mxFree(), ndims, retval, and val.
Referenced by mutate().
|
inlinevirtual |
|
inlinevirtual |
Implements mxArray_base.
Definition at line 584 of file mex.cc.
References calc_single_subscript_internal(), dims, get_dimensions(), and ndims.
|
inlinevirtual |
|
inlineprotectedinherited |
Definition at line 310 of file mxarray.in.h.
References error().
Referenced by mxArray_base::get_cell(), set_property(), and mxArray_base::set_property().
Reimplemented from mxArray_base.
Definition at line 416 of file mex.cc.
References request_mutation().
|
inlinevirtual |
Implements mxArray_base.
Definition at line 329 of file mex.cc.
References octave_value::class_name(), id, mxCELL_CLASS, mxCHAR_CLASS, mxDOUBLE_CLASS, mxFUNCTION_CLASS, mxINT16_CLASS, mxINT32_CLASS, mxINT64_CLASS, mxINT8_CLASS, mxLOGICAL_CLASS, mxSINGLE_CLASS, mxSTRUCT_CLASS, mxUINT16_CLASS, mxUINT32_CLASS, mxUINT64_CLASS, mxUINT8_CLASS, mxUNKNOWN_CLASS, and val.
Referenced by get_element_size().
|
inlinevirtual |
Implements mxArray_base.
Definition at line 369 of file mex.cc.
References class_name, octave_value::class_name(), mxArray::strsave(), and val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 445 of file mex.cc.
References maybe_mark_foreign(), octave_value::mex_get_data(), request_mutation(), retval, and val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 280 of file mex.cc.
References dims, octave_value::dims(), mxArray::malloc(), ndims, octave_value::ndims(), and val.
Referenced by calc_single_subscript(), get_n(), get_number_of_dimensions(), and is_scalar().
|
inlinevirtual |
Implements mxArray_base.
Definition at line 592 of file mex.cc.
References get_class_id(), mxCELL_CLASS, mxCHAR_CLASS, mxDOUBLE_CLASS, mxFUNCTION_CLASS, mxINT16_CLASS, mxINT32_CLASS, mxINT64_CLASS, mxINT8_CLASS, mxLOGICAL_CLASS, mxSINGLE_CLASS, mxSTRUCT_CLASS, mxUINT16_CLASS, mxUINT32_CLASS, mxUINT64_CLASS, and mxUINT8_CLASS.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Implements mxArray_base.
Definition at line 457 of file mex.cc.
References is_numeric(), isreal(), request_mutation(), and retval.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 475 of file mex.cc.
References maybe_mark_foreign(), octave_value::mex_get_ir(), and val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 480 of file mex.cc.
References maybe_mark_foreign(), octave_value::mex_get_jc(), and val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 265 of file mex.cc.
References octave_value::rows(), and val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 267 of file mex.cc.
References dims, get_dimensions(), n, and ndims.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 298 of file mex.cc.
References get_dimensions(), and ndims.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 317 of file mex.cc.
References octave_value::numel(), and val.
Referenced by array_to_string(), and get_string().
|
inlinevirtual |
Implements mxArray_base.
Definition at line 519 of file mex.cc.
References octave_value::nfields(), and val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 485 of file mex.cc.
References octave_value::nzmax(), and val.
Reimplemented from mxArray_base.
Definition at line 383 of file mex.cc.
References octave_value::classdef_object_value(), octave_classdef::get_property(), octave_value::is_classdef_object(), octave_value::is_defined(), retval, and val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 425 of file mex.cc.
References octave_value::islogical(), octave_value::isreal(), octave_value::issparse(), octave_value::mex_get_data(), octave_value::scalar_value(), and val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 533 of file mex.cc.
References octave_value::char_array_value(), Array< T >::data(), get_number_of_elements(), octave_value::is_string(), retval, and val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 222 of file mex.cc.
References octave_value::is_string(), and val.
|
inlinevirtualinherited |
Definition at line 154 of file mxarray.in.h.
References mxArray_base::get_class_name(), retval, and octave::string::strcmp().
Referenced by mxArray::is_class().
|
inlinevirtual |
Implements mxArray_base.
Definition at line 224 of file mex.cc.
References octave_value::iscomplex(), and val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 226 of file mex.cc.
References octave_value::is_double_type(), and val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 228 of file mex.cc.
References octave_value::is_function_handle(), and val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 230 of file mex.cc.
References octave_value::is_int16_type(), and val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 232 of file mex.cc.
References octave_value::is_int32_type(), and val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 234 of file mex.cc.
References octave_value::is_int64_type(), and val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 236 of file mex.cc.
References octave_value::is_int8_type(), and val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 238 of file mex.cc.
References octave_value::islogical(), and val.
|
inlinevirtualinherited |
Definition at line 198 of file mxarray.in.h.
References mxArray_base::get_number_of_elements(), and mxArray_base::is_logical().
Referenced by mxArray::is_logical_scalar(), is_logical_scalar_true(), and mxArray_matlab::is_logical_scalar_true().
|
inlinevirtual |
Implements mxArray_base.
Definition at line 260 of file mex.cc.
References mxArray_base::is_logical_scalar(), octave_value::is_true(), and val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 240 of file mex.cc.
References octave_value::isnumeric(), and val.
Referenced by get_imag_data().
|
inlinevirtual |
Reimplemented from mxArray_base.
|
inline |
Definition at line 256 of file mex.cc.
References octave_value::is_range(), and val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 321 of file mex.cc.
References dims, get_dimensions(), and ndims.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 242 of file mex.cc.
References octave_value::is_single_type(), and val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 244 of file mex.cc.
References octave_value::issparse(), and val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 246 of file mex.cc.
References octave_value::isstruct(), and val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 248 of file mex.cc.
References octave_value::is_uint16_type(), and val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 250 of file mex.cc.
References octave_value::is_uint32_type(), and val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 252 of file mex.cc.
References octave_value::is_uint64_type(), and val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 254 of file mex.cc.
References octave_value::is_uint8_type(), and val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 220 of file mex.cc.
References octave_value::iscell(), and val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 319 of file mex.cc.
References octave_value::isempty(), and val.
|
inline |
Definition at line 258 of file mex.cc.
References octave_value::isreal(), and val.
Referenced by get_imag_data().
|
inlinevirtual |
|
inlinevirtual |
|
delete |
|
inlinevirtual |
|
inline |
Definition at line 622 of file mex.cc.
References mutate_flag, and panic_impossible.
Referenced by add_field(), get_cell(), get_data(), get_field_by_number(), get_field_name_by_number(), get_field_number(), get_imag_data(), remove_field(), set_cell(), set_class_name(), set_data(), set_dimensions(), set_field_by_number(), set_imag_data(), set_ir(), set_jc(), set_m(), set_n(), and set_nzmax().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Reimplemented from mxArray_base.
Definition at line 403 of file mex.cc.
References mxArray::as_octave_value(), octave_value::classdef_object_value(), mxArray_base::err_invalid_type(), octave_value::is_classdef_object(), octave_classdef::set_property(), and val.
|
mutableprivate |
Definition at line 662 of file mex.cc.
Referenced by ~mxArray_octave_value(), as_mxArray(), and get_class_name().
|
mutableprivate |
Definition at line 664 of file mex.cc.
Referenced by mxArray_octave_value(), ~mxArray_octave_value(), as_mxArray(), calc_single_subscript(), get_dimensions(), get_n(), and is_scalar().
|
mutableprivate |
Definition at line 661 of file mex.cc.
Referenced by get_class_id().
|
mutableprivate |
Definition at line 655 of file mex.cc.
Referenced by mutation_needed(), and request_mutation().
|
mutableprivate |
Definition at line 663 of file mex.cc.
Referenced by mxArray_octave_value(), as_mxArray(), calc_single_subscript(), get_dimensions(), get_n(), get_number_of_dimensions(), and is_scalar().
|
private |
Definition at line 653 of file mex.cc.
Referenced by array_to_string(), as_mxArray(), as_octave_value(), get_class_id(), get_class_name(), get_data(), get_dimensions(), get_ir(), get_jc(), get_m(), get_number_of_elements(), get_number_of_fields(), get_nzmax(), get_property(), get_scalar(), get_string(), is_char(), is_complex(), is_double(), is_function_handle(), is_int16(), is_int32(), is_int64(), is_int8(), is_logical(), is_logical_scalar_true(), is_numeric(), is_range(), is_single(), is_sparse(), is_struct(), is_uint16(), is_uint32(), is_uint64(), is_uint8(), iscell(), isempty(), isreal(), and set_property().