Public Member Functions | |
mxArray_octave_value (bool interleaved, 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 |
mxComplexDouble * | get_complex_doubles (void) const |
mxComplexSingle * | get_complex_singles (void) const |
template<typename T > | |
T * | get_data (mxClassID class_id, mxComplexity complexity) const |
void * | get_data (void) const |
mwSize * | get_dimensions (void) const |
mxDouble * | get_doubles (void) const |
std::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 |
mxInt16 * | get_int16s (void) const |
mxInt32 * | get_int32s (void) const |
mxInt64 * | get_int64s (void) const |
mxInt8 * | get_int8s (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 |
mxSingle * | get_singles (void) const |
int | get_string (char *buf, mwSize buflen) const |
mxUint16 * | get_uint16s (void) const |
mxUint32 * | get_uint32s (void) const |
mxUint64 * | get_uint64s (void) const |
mxUint8 * | get_uint8s (void) 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 *) |
int | set_complex_doubles (mxComplexDouble *) |
int | set_complex_singles (mxComplexSingle *) |
void | set_data (void *) |
int | set_dimensions (mwSize *, mwSize) |
int | set_doubles (mxDouble *) |
void | set_field_by_number (mwIndex, int, mxArray *) |
void | set_imag_data (void *) |
int | set_int16s (mxInt16 *) |
int | set_int32s (mxInt32 *) |
int | set_int64s (mxInt64 *) |
int | set_int8s (mxInt8 *) |
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) |
int | set_singles (mxSingle *) |
int | set_uint16s (mxUint16 *) |
int | set_uint32s (mxUint32 *) |
int | set_uint64s (mxUint64 *) |
int | set_uint8s (mxUint8 *) |
Protected Member Functions | |
mxArray_octave_value (const mxArray_octave_value &arg) | |
OCTAVE_NORETURN void | err_invalid_type (const char *op) const |
std::size_t | get_numeric_element_size (std::size_t size) const |
Protected Attributes | |
bool | m_interleaved |
Private Attributes | |
char * | m_class_name |
mwSize * | m_dims |
mxClassID | m_id |
bool | m_mutate_flag |
mwSize | m_ndims |
octave_value | m_val |
|
inline |
|
inline |
Definition at line 524 of file mex.cc.
References m_class_name, m_dims, and mxFree().
|
inlineprotected |
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 937 of file mex.cc.
References octave_value::char_array_value(), Array< T, Alloc >::data(), get_number_of_elements(), octave_value::is_string(), m_val, and mxArray::malloc().
|
inlinevirtual |
Reimplemented from mxArray_base.
Definition at line 487 of file mex.cc.
References octave_value::as_mxArray(), mxArray::get_dimensions(), m_class_name, m_dims, mxArray_base::m_interleaved, m_ndims, m_val, mxFree(), mxArray::set_class_name(), and mxArray::set_dimensions().
Referenced by mutate().
|
inlinevirtual |
|
inlinevirtual |
Implements mxArray_base.
Definition at line 965 of file mex.cc.
References calc_single_subscript_internal(), get_dimensions(), m_dims, and m_ndims.
|
inlinevirtual |
|
inlineprotectedinherited |
Definition at line 322 of file mxarray.h.
References error().
Referenced by mxArray_matlab::add_field(), mxArray_matlab::array_to_string(), mxArray_matlab::get_cell(), mxArray_matlab::get_complex_doubles(), mxArray_matlab::get_complex_singles(), mxArray_matlab::get_data(), mxArray_matlab::get_doubles(), mxArray_matlab::get_field_by_number(), mxArray_matlab::get_field_name_by_number(), mxArray_matlab::get_imag_data(), mxArray_matlab::get_int16s(), mxArray_matlab::get_int32s(), mxArray_matlab::get_int64s(), mxArray_matlab::get_int8s(), mxArray_matlab::get_ir(), mxArray_matlab::get_jc(), mxArray_matlab::get_number_of_fields(), mxArray_matlab::get_nzmax(), mxArray_matlab::get_scalar(), mxArray_matlab::get_singles(), mxArray_matlab::get_string(), mxArray_matlab::get_uint16s(), mxArray_matlab::get_uint32s(), mxArray_matlab::get_uint64s(), mxArray_matlab::get_uint8s(), mxArray_matlab::remove_field(), mxArray_matlab::set_cell(), mxArray_matlab::set_complex_doubles(), mxArray_matlab::set_complex_singles(), mxArray_matlab::set_data(), mxArray_matlab::set_doubles(), mxArray_matlab::set_field_by_number(), mxArray_matlab::set_imag_data(), mxArray_matlab::set_int16s(), mxArray_matlab::set_int32s(), mxArray_matlab::set_int64s(), mxArray_matlab::set_int8s(), mxArray_matlab::set_ir(), mxArray_matlab::set_jc(), mxArray_matlab::set_nzmax(), set_property(), mxArray_matlab::set_singles(), mxArray_matlab::set_uint16s(), mxArray_matlab::set_uint32s(), mxArray_matlab::set_uint64s(), and mxArray_matlab::set_uint8s().
|
inlinevirtual |
Reimplemented from mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 635 of file mex.cc.
References octave_value::class_name(), m_id, and m_val.
Referenced by get_element_size().
|
inlinevirtual |
Implements mxArray_base.
Definition at line 675 of file mex.cc.
References octave_value::class_name(), m_class_name, m_val, and mxArray::strsave().
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
inline |
Definition at line 764 of file mex.cc.
References mxArray_base::m_interleaved, m_val, maybe_mark_foreign(), octave_value::mex_get_data(), and request_mutation().
|
inlinevirtual |
Implements mxArray_base.
Definition at line 747 of file mex.cc.
References octave_value::isreal(), mxArray_base::m_interleaved, m_val, maybe_mark_foreign(), octave_value::mex_get_data(), and request_mutation().
|
inlinevirtual |
Implements mxArray_base.
Definition at line 592 of file mex.cc.
References octave_value::dims(), m_dims, m_ndims, m_val, mxArray::malloc(), and octave_value::ndims().
Referenced by calc_single_subscript(), get_n(), get_number_of_dimensions(), and is_scalar().
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 973 of file mex.cc.
References get_class_id(), mxArray_base::get_numeric_element_size(), and m_id.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 827 of file mex.cc.
References is_numeric(), isreal(), and request_mutation().
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 870 of file mex.cc.
References m_val, maybe_mark_foreign(), and octave_value::mex_get_ir().
|
inlinevirtual |
Implements mxArray_base.
Definition at line 878 of file mex.cc.
References m_val, maybe_mark_foreign(), and octave_value::mex_get_jc().
|
inlinevirtual |
Implements mxArray_base.
Definition at line 577 of file mex.cc.
References m_val, and octave_value::rows().
|
inlinevirtual |
Implements mxArray_base.
Definition at line 579 of file mex.cc.
References get_dimensions(), m_dims, m_ndims, and n.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 610 of file mex.cc.
References get_dimensions(), and m_ndims.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 623 of file mex.cc.
References m_val, and octave_value::numel().
Referenced by array_to_string(), and get_string().
|
inlinevirtual |
Implements mxArray_base.
Definition at line 908 of file mex.cc.
References m_val, and octave_value::nfields().
|
inlineprotectedinherited |
Definition at line 315 of file mxarray.h.
Referenced by get_element_size(), and mxArray_matlab::get_element_size().
|
inlinevirtual |
Implements mxArray_base.
Definition at line 886 of file mex.cc.
References m_val, and octave_value::nzmax().
|
inlinevirtual |
Reimplemented from mxArray_base.
Definition at line 689 of file mex.cc.
References octave_value::classdef_object_value(), octave_classdef::get_property(), octave_value::is_classdef_object(), octave_value::is_defined(), mxArray_base::m_interleaved, and m_val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 727 of file mex.cc.
References octave_value::islogical(), octave_value::isreal(), octave_value::issparse(), m_val, octave_value::mex_get_data(), and octave_value::scalar_value().
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 914 of file mex.cc.
References octave_value::char_array_value(), Array< T, Alloc >::data(), get_number_of_elements(), octave_value::is_string(), and m_val.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 534 of file mex.cc.
References octave_value::is_string(), and m_val.
|
inlinevirtualinherited |
|
inlinevirtual |
Implements mxArray_base.
Definition at line 536 of file mex.cc.
References octave_value::iscomplex(), and m_val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 538 of file mex.cc.
References octave_value::is_double_type(), and m_val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 540 of file mex.cc.
References octave_value::is_function_handle(), and m_val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 542 of file mex.cc.
References octave_value::is_int16_type(), and m_val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 544 of file mex.cc.
References octave_value::is_int32_type(), and m_val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 546 of file mex.cc.
References octave_value::is_int64_type(), and m_val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 548 of file mex.cc.
References octave_value::is_int8_type(), and m_val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 550 of file mex.cc.
References octave_value::islogical(), and m_val.
|
inlinevirtualinherited |
Definition at line 153 of file mxarray.h.
Referenced by mxArray::is_logical_scalar(), is_logical_scalar_true(), and mxArray_matlab::is_logical_scalar_true().
|
inlinevirtual |
Implements mxArray_base.
Definition at line 572 of file mex.cc.
References mxArray_base::is_logical_scalar(), octave_value::is_true(), and m_val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 552 of file mex.cc.
References octave_value::isnumeric(), and m_val.
Referenced by get_imag_data().
|
inlinevirtual |
Reimplemented from mxArray_base.
|
inline |
Definition at line 568 of file mex.cc.
References octave_value::is_range(), and m_val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 627 of file mex.cc.
References get_dimensions(), m_dims, and m_ndims.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 554 of file mex.cc.
References octave_value::is_single_type(), and m_val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 556 of file mex.cc.
References octave_value::issparse(), and m_val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 558 of file mex.cc.
References octave_value::isstruct(), and m_val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 560 of file mex.cc.
References octave_value::is_uint16_type(), and m_val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 562 of file mex.cc.
References octave_value::is_uint32_type(), and m_val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 564 of file mex.cc.
References octave_value::is_uint64_type(), and m_val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 566 of file mex.cc.
References octave_value::is_uint8_type(), and m_val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 532 of file mex.cc.
References octave_value::iscell(), and m_val.
|
inlinevirtual |
Implements mxArray_base.
Definition at line 625 of file mex.cc.
References octave_value::isempty(), and m_val.
|
inline |
Definition at line 570 of file mex.cc.
References octave_value::isreal(), and m_val.
Referenced by get_imag_data().
|
inlinevirtual |
|
inlinevirtual |
|
delete |
|
inlinevirtual |
Implements mxArray_base.
|
inline |
Definition at line 1003 of file mex.cc.
References m_mutate_flag, and panic_impossible.
Referenced by get_data(), and get_imag_data().
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Reimplemented from mxArray_base.
Definition at line 709 of file mex.cc.
References mxArray::as_octave_value(), octave_value::classdef_object_value(), mxArray_base::err_invalid_type(), octave_value::is_classdef_object(), m_val, and octave_classdef::set_property().
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
inlinevirtual |
Implements mxArray_base.
|
mutableprivate |
Definition at line 1043 of file mex.cc.
Referenced by ~mxArray_octave_value(), as_mxArray(), and get_class_name().
|
mutableprivate |
Definition at line 1045 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 1042 of file mex.cc.
Referenced by get_class_id(), and get_element_size().
|
protectedinherited |
Definition at line 330 of file mxarray.h.
Referenced by as_mxArray(), get_data(), and get_property().
|
mutableprivate |
Definition at line 1036 of file mex.cc.
Referenced by mutation_needed(), and request_mutation().
|
mutableprivate |
Definition at line 1044 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 1034 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().