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 |
mwIndex | calc_single_subscript (mwSize nsubs, mwIndex *subs) const |
mxArray * | 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 |
double | get_scalar (void) const |
int | get_string (char *buf, mwSize buflen) const |
int | is_cell (void) 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_empty (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 |
int | is_range (void) const |
int | is_real_type (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 |
mxArray * | mutate (void) const |
bool | mutation_needed (void) const |
void | remove_field (int) |
void | request_mutation (void) const |
void | set_cell (mwIndex, mxArray *) |
void | set_class_name (const char *) |
void | set_data (void *) |
void | 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) |
Protected Member Functions | |
mxArray_octave_value (const mxArray_octave_value &arg) | |
octave_value | as_octave_value (void) const |
void | error (const char *msg) const |
void | invalid_type_error (void) const |
Private Member Functions | |
mxArray_octave_value & | operator= (const mxArray_octave_value &) |
Private Attributes | |
char * | class_name |
mwSize * | dims |
mxClassID | id |
bool | mutate_flag |
mwSize | ndims |
octave_value | val |
Definition at line 322 of file mex.cc.
mxArray_octave_value::mxArray_octave_value | ( | const octave_value & | ov | ) | [inline] |
mxArray_octave_value::~mxArray_octave_value | ( | void | ) | [inline] |
Definition at line 340 of file mex.cc.
References class_name, dims, and mxFree().
mxArray_octave_value::mxArray_octave_value | ( | const mxArray_octave_value & | arg | ) | [inline, protected] |
char* mxArray_octave_value::array_to_string | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 621 of file mex.cc.
References octave_value::char_array_value(), Array< T >::data(), get_number_of_elements(), octave_value::is_string(), and val.
octave_value mxArray_octave_value::as_octave_value | ( | void | ) | const [inline, protected, virtual] |
mwIndex mxArray_octave_value::calc_single_subscript | ( | mwSize | nsubs, | |
mwIndex * | subs | |||
) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 650 of file mex.cc.
References calc_single_subscript_internal(), dims, get_dimensions(), and ndims.
mxArray* mxArray_octave_value::dup | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 330 of file mex.cc.
References octave_value::as_mxArray(), mxArray_octave_value(), and val.
void mxArray_base::error | ( | const char * | msg | ) | const [inline, protected, inherited] |
Definition at line 270 of file mex.cc.
Referenced by mxArray_sparse::as_octave_value(), mxArray_number::int_to_ov(), mxArray_matlab::invalid_type_error(), and mxArray_base::invalid_type_error().
mxArray* mxArray_octave_value::get_cell | ( | mwIndex | ) | const [inline] |
Reimplemented from mxArray_base.
Definition at line 500 of file mex.cc.
References request_mutation().
mxClassID mxArray_octave_value::get_class_id | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 446 of file mex.cc.
References octave_value::class_name(), id, and val.
Referenced by get_element_size().
const char* mxArray_octave_value::get_class_name | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 486 of file mex.cc.
References octave_value::class_name(), class_name, strsave(), and val.
void* mxArray_octave_value::get_data | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 511 of file mex.cc.
References maybe_mark_foreign(), octave_value::mex_get_data(), request_mutation(), and val.
mwSize* mxArray_octave_value::get_dimensions | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 408 of file mex.cc.
References octave_value::dims(), dims, octave_value::ndims(), ndims, and val.
Referenced by calc_single_subscript(), get_n(), and get_number_of_dimensions().
size_t mxArray_octave_value::get_element_size | ( | void | ) | const [inline, virtual] |
void* mxArray_octave_value::get_imag_data | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 523 of file mex.cc.
References is_numeric(), is_real_type(), and request_mutation().
mwIndex* mxArray_octave_value::get_ir | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 541 of file mex.cc.
References maybe_mark_foreign(), octave_value::mex_get_ir(), and val.
mwIndex* mxArray_octave_value::get_jc | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 546 of file mex.cc.
References maybe_mark_foreign(), octave_value::mex_get_jc(), and val.
mwSize mxArray_octave_value::get_m | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 393 of file mex.cc.
References octave_value::rows(), and val.
mwSize mxArray_octave_value::get_n | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 395 of file mex.cc.
References dims, get_dimensions(), and ndims.
mwSize mxArray_octave_value::get_number_of_dimensions | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 425 of file mex.cc.
References get_dimensions(), and ndims.
mwSize mxArray_octave_value::get_number_of_elements | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 442 of file mex.cc.
References octave_value::numel(), and val.
Referenced by array_to_string(), and get_string().
int mxArray_octave_value::get_number_of_fields | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 584 of file mex.cc.
References octave_value::nfields(), and val.
mwSize mxArray_octave_value::get_nzmax | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 551 of file mex.cc.
References octave_value::nzmax(), and val.
double mxArray_octave_value::get_scalar | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 509 of file mex.cc.
References octave_value::scalar_value(), and val.
Implements mxArray_base.
Definition at line 598 of file mex.cc.
References octave_value::char_array_value(), Array< T >::data(), get_number_of_elements(), octave_value::is_string(), and val.
void mxArray_base::invalid_type_error | ( | void | ) | const [inline, protected, inherited] |
Reimplemented in mxArray_matlab.
Definition at line 265 of file mex.cc.
References mxArray_base::error().
Referenced by mxArray_base::get_cell().
int mxArray_octave_value::is_cell | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 348 of file mex.cc.
References octave_value::is_cell(), and val.
int mxArray_octave_value::is_char | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 350 of file mex.cc.
References octave_value::is_string(), and val.
Definition at line 128 of file mex.cc.
References mxArray_base::get_class_name().
int mxArray_octave_value::is_complex | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 352 of file mex.cc.
References octave_value::is_complex_type(), and val.
int mxArray_octave_value::is_double | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 354 of file mex.cc.
References octave_value::is_double_type(), and val.
int mxArray_octave_value::is_empty | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 444 of file mex.cc.
References octave_value::is_empty(), and val.
int mxArray_octave_value::is_function_handle | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 356 of file mex.cc.
References octave_value::is_function_handle(), and val.
int mxArray_octave_value::is_int16 | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 358 of file mex.cc.
References octave_value::is_int16_type(), and val.
int mxArray_octave_value::is_int32 | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 360 of file mex.cc.
References octave_value::is_int32_type(), and val.
int mxArray_octave_value::is_int64 | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 362 of file mex.cc.
References octave_value::is_int64_type(), and val.
int mxArray_octave_value::is_int8 | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 364 of file mex.cc.
References octave_value::is_int8_type(), and val.
int mxArray_octave_value::is_logical | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 366 of file mex.cc.
References octave_value::is_bool_type(), and val.
int mxArray_base::is_logical_scalar | ( | void | ) | const [inline, inherited] |
Definition at line 172 of file mex.cc.
References mxArray_base::get_number_of_elements(), and mxArray_base::is_logical().
Referenced by mxArray_matlab::is_logical_scalar_true(), and is_logical_scalar_true().
int mxArray_octave_value::is_logical_scalar_true | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 388 of file mex.cc.
References mxArray_base::is_logical_scalar(), octave_value::is_true(), and val.
int mxArray_octave_value::is_numeric | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 368 of file mex.cc.
References octave_value::is_numeric_type(), and val.
Referenced by get_imag_data().
bool mxArray_octave_value::is_octave_value | ( | void | ) | const [inline] |
Reimplemented from mxArray_base.
int mxArray_octave_value::is_range | ( | void | ) | const [inline] |
Definition at line 384 of file mex.cc.
References octave_value::is_range(), and val.
int mxArray_octave_value::is_real_type | ( | void | ) | const [inline] |
Definition at line 386 of file mex.cc.
References octave_value::is_real_type(), and val.
Referenced by get_imag_data().
int mxArray_octave_value::is_single | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 370 of file mex.cc.
References octave_value::is_single_type(), and val.
int mxArray_octave_value::is_sparse | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 372 of file mex.cc.
References octave_value::is_sparse_type(), and val.
int mxArray_octave_value::is_struct | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 374 of file mex.cc.
References octave_value::is_map(), and val.
int mxArray_octave_value::is_uint16 | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 376 of file mex.cc.
References octave_value::is_uint16_type(), and val.
int mxArray_octave_value::is_uint32 | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 378 of file mex.cc.
References octave_value::is_uint32_type(), and val.
int mxArray_octave_value::is_uint64 | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 380 of file mex.cc.
References octave_value::is_uint64_type(), and val.
int mxArray_octave_value::is_uint8 | ( | void | ) | const [inline, virtual] |
Implements mxArray_base.
Definition at line 382 of file mex.cc.
References octave_value::is_uint8_type(), and val.
mxArray* mxArray_octave_value::mutate | ( | void | ) | const [inline] |
Reimplemented from mxArray_base.
Definition at line 694 of file mex.cc.
References octave_value::as_mxArray(), and val.
bool mxArray_octave_value::mutation_needed | ( | void | ) | const [inline] |
mxArray_octave_value& mxArray_octave_value::operator= | ( | const mxArray_octave_value & | ) | [private] |
void mxArray_octave_value::remove_field | ( | int | ) | [inline, virtual] |
void mxArray_octave_value::request_mutation | ( | void | ) | const [inline] |
Definition at line 686 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().
void mxArray_octave_value::set_cell | ( | mwIndex | , | |
mxArray * | ||||
) | [inline, virtual] |
void mxArray_octave_value::set_class_name | ( | const char * | ) | [inline, virtual] |
void mxArray_octave_value::set_data | ( | void * | ) | [inline, virtual] |
void mxArray_octave_value::set_dimensions | ( | mwSize * | , | |
mwSize | ||||
) | [inline, virtual] |
void mxArray_octave_value::set_imag_data | ( | void * | ) | [inline, virtual] |
void mxArray_octave_value::set_ir | ( | mwIndex * | ) | [inline, virtual] |
void mxArray_octave_value::set_jc | ( | mwIndex * | ) | [inline, virtual] |
void mxArray_octave_value::set_m | ( | mwSize | ) | [inline, virtual] |
void mxArray_octave_value::set_n | ( | mwSize | ) | [inline, virtual] |
void mxArray_octave_value::set_nzmax | ( | mwSize | ) | [inline, virtual] |
char* mxArray_octave_value::class_name [mutable, private] |
Definition at line 723 of file mex.cc.
Referenced by get_class_name(), and ~mxArray_octave_value().
mwSize* mxArray_octave_value::dims [mutable, private] |
Definition at line 725 of file mex.cc.
Referenced by calc_single_subscript(), get_dimensions(), get_n(), mxArray_octave_value(), and ~mxArray_octave_value().
mxClassID mxArray_octave_value::id [mutable, private] |
Definition at line 722 of file mex.cc.
Referenced by get_class_id().
bool mxArray_octave_value::mutate_flag [mutable, private] |
Definition at line 716 of file mex.cc.
Referenced by mutation_needed(), and request_mutation().
mwSize mxArray_octave_value::ndims [mutable, private] |
Definition at line 724 of file mex.cc.
Referenced by calc_single_subscript(), get_dimensions(), get_n(), get_number_of_dimensions(), and mxArray_octave_value().
octave_value mxArray_octave_value::val [private] |
Definition at line 714 of file mex.cc.
Referenced by array_to_string(), as_octave_value(), dup(), 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_scalar(), get_string(), is_cell(), is_char(), is_complex(), is_double(), is_empty(), is_function_handle(), is_int16(), is_int32(), is_int64(), is_int8(), is_logical(), is_logical_scalar_true(), is_numeric(), is_range(), is_real_type(), is_single(), is_sparse(), is_struct(), is_uint16(), is_uint32(), is_uint64(), is_uint8(), and mutate().