Public Member Functions | |
~mxArray_matlab (void) | |
int | add_field (const char *) |
char * | array_to_string (void) const |
virtual mxArray * | as_mxArray (void) const |
virtual octave_value | as_octave_value (void) const =0 |
mwIndex | calc_single_subscript (mwSize nsubs, mwIndex *subs) const |
virtual mxArray_base * | dup (void) const =0 |
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 |
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 |
virtual mxArray * | get_property (mwIndex, const char *) const |
double | get_scalar (void) const |
mxSingle * | get_singles (void) const |
int | get_string (char *, mwSize) 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 |
virtual 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 |
virtual mxArray * | mutate (void) const |
virtual bool | mutation_needed (void) const |
mxArray_matlab & | operator= (const mxArray_matlab &) |
void | remove_field (int) |
void | set_cell (mwIndex, mxArray *) |
void | set_class_name (const char *name) |
int | set_complex_doubles (mxComplexDouble *) |
int | set_complex_singles (mxComplexSingle *) |
void | set_data (void *) |
int | set_dimensions (mwSize *dims, mwSize ndims) |
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 m) |
void | set_n (mwSize n) |
void | set_nzmax (mwSize) |
virtual void | set_property (mwIndex, const char *, const mxArray *) |
int | set_singles (mxSingle *) |
int | set_uint16s (mxUint16 *) |
int | set_uint32s (mxUint32 *) |
int | set_uint64s (mxUint64 *) |
int | set_uint8s (mxUint8 *) |
Protected Member Functions | |
mxArray_matlab (bool interleaved, mxClassID id, const dim_vector &dv) | |
mxArray_matlab (bool interleaved, mxClassID id, mwSize m, mwSize n) | |
mxArray_matlab (bool interleaved, mxClassID id, mwSize ndims, const mwSize *dims) | |
mxArray_matlab (bool interleaved, mxClassID id=mxUNKNOWN_CLASS) | |
mxArray_matlab (const mxArray_matlab &val) | |
dim_vector | dims_to_dim_vector (void) const |
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 |
mwSize | m_ndims |
|
inline |
Definition at line 1061 of file mex.cc.
References m_class_name, m_dims, and mxFree().
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_struct.
Definition at line 1484 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_base_full.
Definition at line 1525 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtualinherited |
Reimplemented in mxArray_octave_value.
Definition at line 99 of file mxarray.h.
Referenced by mxArray::dup().
|
pure virtualinherited |
Implemented in mxArray_cell, mxArray_struct, mxArray_separate_sparse, mxArray_base_sparse, mxArray_separate_full, mxArray_base_full, and mxArray_octave_value.
Referenced by mxArray::as_octave_value().
|
inlinevirtual |
Implements mxArray_base.
Definition at line 1530 of file mex.cc.
References calc_single_subscript_internal(), m_dims, and m_ndims.
|
inlineprotected |
Definition at line 1632 of file mex.cc.
References d, get_dimensions(), get_number_of_dimensions(), and dim_vector::resize().
Referenced by mxArray_base_full::as_octave_value(), mxArray_separate_full::as_octave_value(), mxArray_base_sparse::as_octave_value(), mxArray_separate_sparse::as_octave_value(), mxArray_struct::as_octave_value(), and mxArray_cell::as_octave_value().
|
pure virtualinherited |
Implemented in mxArray_cell, mxArray_struct, mxArray_separate_sparse, mxArray_interleaved_sparse, mxArray_base_sparse, mxArray_separate_full, mxArray_interleaved_full, mxArray_base_full, and mxArray_octave_value.
Referenced by mxArray::dup().
|
inlineprotectedinherited |
Definition at line 322 of file mxarray.h.
References error().
Referenced by add_field(), array_to_string(), get_cell(), get_complex_doubles(), get_complex_singles(), get_data(), get_doubles(), get_field_by_number(), get_field_name_by_number(), get_imag_data(), get_int16s(), get_int32s(), get_int64s(), get_int8s(), get_ir(), get_jc(), get_number_of_fields(), get_nzmax(), get_scalar(), get_singles(), get_string(), get_uint16s(), get_uint32s(), get_uint64s(), get_uint8s(), remove_field(), set_cell(), set_complex_doubles(), set_complex_singles(), set_data(), set_doubles(), set_field_by_number(), set_imag_data(), set_int16s(), set_int32s(), set_int64s(), set_int8s(), set_ir(), set_jc(), set_nzmax(), mxArray_octave_value::set_property(), set_singles(), set_uint16s(), set_uint32s(), set_uint64s(), and set_uint8s().
|
inlinevirtual |
Reimplemented from mxArray_base.
Reimplemented in mxArray_cell.
Definition at line 1213 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Definition at line 1179 of file mex.cc.
References m_id.
Referenced by mxArray_base_full::as_octave_value(), mxArray_separate_full::as_octave_value(), mxArray_base_sparse::as_octave_value(), mxArray_separate_sparse::as_octave_value(), and mxArray_base_full::get_scalar().
|
inlinevirtual |
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_separate_sparse, mxArray_base_sparse, mxArray_separate_full, and mxArray_base_full.
Definition at line 1283 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_separate_full, and mxArray_base_full.
Definition at line 1288 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_cell, mxArray_struct, mxArray_base_sparse, and mxArray_base_full.
Definition at line 1228 of file mex.cc.
References mxArray_base::err_invalid_type().
Referenced by is_logical_scalar_true().
|
inlinevirtual |
Implements mxArray_base.
Definition at line 1128 of file mex.cc.
References m_dims.
Referenced by mxArray_base_full::mxArray_base_full(), and dims_to_dim_vector().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_separate_sparse, mxArray_base_sparse, mxArray_separate_full, and mxArray_base_full.
Definition at line 1233 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Definition at line 1535 of file mex.cc.
References mxArray_base::get_numeric_element_size(), and m_id.
Referenced by mxArray_base_full::mxArray_base_full(), mxArray_base_sparse::mxArray_base_sparse(), mxArray_separate_full::mxArray_separate_full(), and mxArray_separate_sparse::mxArray_separate_sparse().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_struct.
Definition at line 1494 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_struct.
Definition at line 1510 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_separate_sparse, mxArray_interleaved_sparse, mxArray_separate_full, and mxArray_interleaved_full.
Definition at line 1336 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_separate_full, and mxArray_base_full.
Definition at line 1248 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_separate_full, and mxArray_base_full.
Definition at line 1253 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_separate_full, and mxArray_base_full.
Definition at line 1258 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_separate_full, and mxArray_base_full.
Definition at line 1243 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_base_sparse.
Definition at line 1454 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_base_sparse.
Definition at line 1459 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Definition at line 1116 of file mex.cc.
References m_dims.
Referenced by mxArray_separate_sparse::as_octave_value().
|
inlinevirtual |
Implements mxArray_base.
Definition at line 1118 of file mex.cc.
References m_dims, m_ndims, and n.
Referenced by mxArray_base_sparse::mxArray_base_sparse(), and mxArray_separate_sparse::as_octave_value().
|
inlinevirtual |
Implements mxArray_base.
Definition at line 1130 of file mex.cc.
References m_ndims.
Referenced by dims_to_dim_vector().
|
inlinevirtual |
Implements mxArray_base.
Definition at line 1162 of file mex.cc.
References m_dims, and m_ndims.
Referenced by mxArray_base_full::mxArray_base_full(), mxArray_cell::mxArray_cell(), mxArray_separate_full::mxArray_separate_full(), mxArray_struct::mxArray_struct(), mxArray_cell::~mxArray_cell(), mxArray_struct::~mxArray_struct(), mxArray_struct::add_field(), mxArray_base_full::array_to_string(), mxArray_struct::as_octave_value(), mxArray_cell::as_octave_value(), mxArray_base_full::fp_to_ov(), mxArray_cell::get_cell(), mxArray_base_full::get_string(), mxArray_base_full::int_to_ov(), isempty(), mxArray_struct::remove_field(), mxArray_cell::set_cell(), and mxArray_separate_full::to_ov().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_struct.
Definition at line 1505 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlineprotectedinherited |
Definition at line 315 of file mxarray.h.
Referenced by mxArray_octave_value::get_element_size(), and get_element_size().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_base_sparse.
Definition at line 1464 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtualinherited |
Reimplemented in mxArray_octave_value.
Definition at line 192 of file mxarray.h.
Referenced by mxArray::get_property().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_base_full.
Definition at line 1223 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_separate_full, and mxArray_base_full.
Definition at line 1238 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_base_full.
Definition at line 1520 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_separate_full, and mxArray_base_full.
Definition at line 1268 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_separate_full, and mxArray_base_full.
Definition at line 1273 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_separate_full, and mxArray_base_full.
Definition at line 1278 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_separate_full, and mxArray_base_full.
Definition at line 1263 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
|
inlinevirtualinherited |
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_separate_sparse, mxArray_interleaved_sparse, mxArray_separate_full, and mxArray_interleaved_full.
Definition at line 1071 of file mex.cc.
Referenced by mxArray_base_full::as_octave_value(), mxArray_base_sparse::as_octave_value(), and mxArray_base_full::int_to_ov().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtualinherited |
Definition at line 153 of file mxarray.h.
Referenced by mxArray::is_logical_scalar(), mxArray_octave_value::is_logical_scalar_true(), and is_logical_scalar_true().
|
inlinevirtual |
Implements mxArray_base.
Definition at line 1110 of file mex.cc.
References get_data(), and mxArray_base::is_logical_scalar().
|
inlinevirtual |
|
inlinevirtualinherited |
Reimplemented in mxArray_octave_value.
Definition at line 103 of file mxarray.h.
Referenced by mxArray::is_octave_value(), and mxArray::maybe_mutate().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_base_sparse.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Implements mxArray_base.
Definition at line 1172 of file mex.cc.
References get_number_of_elements().
|
inlinevirtualinherited |
Reimplemented in mxArray_octave_value.
Definition at line 307 of file mxarray.h.
Referenced by mxArray::maybe_mutate(), and mxArray::mutate().
|
inlinevirtualinherited |
Reimplemented in mxArray_octave_value.
Definition at line 305 of file mxarray.h.
Referenced by mxArray::mutation_needed().
mxArray_matlab& mxArray_matlab::operator= | ( | const mxArray_matlab & | ) |
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_struct.
Definition at line 1489 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_cell.
Definition at line 1218 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Definition at line 1206 of file mex.cc.
References m_class_name, mxArray::malloc(), mxFree(), and strlen().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_base_sparse, mxArray_base_full, mxArray_separate_sparse, and mxArray_separate_full.
Definition at line 1396 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_base_full, and mxArray_separate_full.
Definition at line 1401 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_base_sparse, mxArray_base_full, mxArray_cell, and mxArray_struct.
Definition at line 1341 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Definition at line 1136 of file mex.cc.
References m_dims, m_ndims, mxArray::malloc(), and mxFree().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_base_sparse, mxArray_base_full, mxArray_separate_sparse, and mxArray_separate_full.
Definition at line 1346 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_struct.
Definition at line 1499 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_separate_sparse, mxArray_separate_full, mxArray_interleaved_sparse, and mxArray_interleaved_full.
Definition at line 1449 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_base_full, and mxArray_separate_full.
Definition at line 1361 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_base_full, and mxArray_separate_full.
Definition at line 1366 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_base_full, and mxArray_separate_full.
Definition at line 1371 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_base_full, and mxArray_separate_full.
Definition at line 1356 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_base_sparse.
Definition at line 1469 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_base_sparse.
Definition at line 1474 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_base_sparse.
Definition at line 1479 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtualinherited |
Reimplemented in mxArray_octave_value.
Definition at line 197 of file mxarray.h.
Referenced by mxArray::set_property().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_base_full, and mxArray_separate_full.
Definition at line 1351 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_base_full, and mxArray_separate_full.
Definition at line 1381 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_base_full, and mxArray_separate_full.
Definition at line 1386 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_base_full, and mxArray_separate_full.
Definition at line 1391 of file mex.cc.
References mxArray_base::err_invalid_type().
|
inlinevirtual |
Implements mxArray_base.
Reimplemented in mxArray_base_full, and mxArray_separate_full.
Definition at line 1376 of file mex.cc.
References mxArray_base::err_invalid_type().
|
private |
Definition at line 1649 of file mex.cc.
Referenced by ~mxArray_matlab(), and set_class_name().
|
private |
Definition at line 1654 of file mex.cc.
Referenced by mxArray_matlab(), ~mxArray_matlab(), calc_single_subscript(), get_dimensions(), get_m(), get_n(), get_number_of_elements(), is_scalar(), set_dimensions(), set_m(), and set_n().
|
private |
Definition at line 1651 of file mex.cc.
Referenced by get_class_id(), get_class_name(), get_element_size(), is_char(), is_double(), is_function_handle(), is_int16(), is_int32(), is_int64(), is_int8(), is_logical(), is_numeric(), is_single(), is_struct(), is_uint16(), is_uint32(), is_uint64(), is_uint8(), and iscell().
|
protectedinherited |
Definition at line 330 of file mxarray.h.
Referenced by mxArray_octave_value::as_mxArray(), mxArray_octave_value::get_data(), and mxArray_octave_value::get_property().
|
private |
Definition at line 1653 of file mex.cc.
Referenced by mxArray_matlab(), calc_single_subscript(), get_n(), get_number_of_dimensions(), get_number_of_elements(), is_scalar(), and set_dimensions().