Public Member Functions | |
mxArray_number (const char *str) | |
mxArray_number (mwSize m, const char **str) | |
mxArray_number (mxClassID id_arg, const dim_vector &dv, mxComplexity flag=mxREAL) | |
mxArray_number (mxClassID id_arg, double val) | |
mxArray_number (mxClassID id_arg, mwSize m, mwSize n, mxComplexity flag=mxREAL, bool init=true) | |
mxArray_number (mxClassID id_arg, mwSize ndims_arg, const mwSize *dims_arg, mxComplexity flag=mxREAL, bool init=true) | |
mxArray_number (mxClassID id_arg, mxLogical val) | |
~mxArray_number (void) | |
int | add_field (const char *) |
char * | array_to_string (void) const |
virtual 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 |
virtual mxArray * | get_property (mwIndex, const char *) 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 |
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_number & | operator= (const mxArray_number &) |
void | remove_field (int) |
void | set_cell (mwIndex, mxArray *) |
void | set_class_name (const char *name_arg) |
void | set_data (void *pr_arg) |
int | set_dimensions (mwSize *dims_arg, mwSize ndims_arg) |
void | set_field_by_number (mwIndex, int, mxArray *) |
void | set_imag_data (void *pi_arg) |
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 *) |
Protected Member Functions | |
mxArray_number (const mxArray_number &val) | |
dim_vector | dims_to_dim_vector (void) const |
template<typename ELT_T , typename ARRAY_T , typename ARRAY_ELT_T > | |
octave_value | int_to_ov (const dim_vector &dv) const |
Private Member Functions | |
OCTAVE_NORETURN void | err_invalid_type (void) const |
Private Attributes | |
char * | class_name |
mwSize * | dims |
mxClassID | id |
mwSize | ndims |
void * | pi |
void * | pr |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 1137 of file mex.cc.
References mxArray_matlab::get_number_of_elements(), and pr.
|
inline |
|
inlineprotected |
Definition at line 1178 of file mex.cc.
References mxArray_matlab::get_element_size(), mxArray_matlab::get_number_of_elements(), pi, and pr.
|
inline |
|
inlinevirtualinherited |
Implements mxArray_base.
Reimplemented in mxArray_struct.
Definition at line 966 of file mex.cc.
References mxArray_matlab::err_invalid_type().
|
inlinevirtual |
Reimplemented from mxArray_matlab.
Definition at line 1306 of file mex.cc.
References mxArray_matlab::get_number_of_elements(), mxArray::malloc(), and pr.
|
inlinevirtualinherited |
Reimplemented in mxArray_octave_value.
Definition at line 144 of file mxarray.in.h.
Referenced by mxArray::dup().
|
inlinevirtual |
Implements mxArray_base.
Definition at line 1327 of file mex.cc.
References mxArray_matlab::dims_to_dim_vector(), Array< T >::fortran_vec(), mxArray_matlab::get_class_id(), mxArray_matlab::get_number_of_elements(), mxCHAR_CLASS, mxDOUBLE_CLASS, mxINT16_CLASS, mxINT32_CLASS, mxINT64_CLASS, mxINT8_CLASS, mxLOGICAL_CLASS, mxSINGLE_CLASS, mxUINT16_CLASS, mxUINT32_CLASS, mxUINT64_CLASS, mxUINT8_CLASS, panic_impossible, pi, pr, and retval.
|
inlinevirtualinherited |
Implements mxArray_base.
Definition at line 1012 of file mex.cc.
References calc_single_subscript_internal(), mxArray_matlab::dims, and mxArray_matlab::ndims.
|
inlineprotectedinherited |
Definition at line 1045 of file mex.cc.
References d, mxArray_matlab::get_dimensions(), mxArray_matlab::get_number_of_dimensions(), and dim_vector::resize().
Referenced by as_octave_value(), mxArray_sparse::as_octave_value(), mxArray_struct::as_octave_value(), and mxArray_cell::as_octave_value().
|
inlinevirtual |
|
inlineprivateinherited |
Definition at line 1069 of file mex.cc.
References error().
Referenced by mxArray_matlab::add_field(), mxArray_matlab::array_to_string(), mxArray_matlab::get_cell(), mxArray_matlab::get_data(), mxArray_matlab::get_field_by_number(), mxArray_matlab::get_field_name_by_number(), mxArray_matlab::get_imag_data(), 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_string(), mxArray_matlab::remove_field(), mxArray_matlab::set_cell(), mxArray_matlab::set_data(), mxArray_matlab::set_field_by_number(), mxArray_matlab::set_imag_data(), mxArray_matlab::set_ir(), mxArray_matlab::set_jc(), and mxArray_matlab::set_nzmax().
Reimplemented from mxArray_base.
Reimplemented in mxArray_cell.
Definition at line 901 of file mex.cc.
References mxArray_matlab::err_invalid_type().
|
inlinevirtualinherited |
Implements mxArray_base.
Definition at line 867 of file mex.cc.
References mxArray_matlab::id.
Referenced by as_octave_value(), mxArray_sparse::as_octave_value(), and get_scalar().
|
inlinevirtualinherited |
Implements mxArray_base.
Definition at line 869 of file mex.cc.
References 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, and mxUNKNOWN_CLASS.
|
inlinevirtual |
|
inlinevirtualinherited |
Implements mxArray_base.
Definition at line 816 of file mex.cc.
References mxArray_matlab::dims.
Referenced by mxArray_number(), and mxArray_matlab::dims_to_dim_vector().
|
inlinevirtualinherited |
Implements mxArray_base.
Definition at line 1017 of file mex.cc.
References 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.
Referenced by mxArray_number(), and mxArray_sparse::mxArray_sparse().
Implements mxArray_base.
Reimplemented in mxArray_struct.
Definition at line 976 of file mex.cc.
References mxArray_matlab::err_invalid_type().
|
inlinevirtualinherited |
Implements mxArray_base.
Reimplemented in mxArray_struct.
Definition at line 992 of file mex.cc.
References mxArray_matlab::err_invalid_type().
|
inlinevirtualinherited |
|
inlinevirtual |
|
inlinevirtualinherited |
Implements mxArray_base.
Reimplemented in mxArray_sparse.
Definition at line 936 of file mex.cc.
References mxArray_matlab::err_invalid_type().
|
inlinevirtualinherited |
Implements mxArray_base.
Reimplemented in mxArray_sparse.
Definition at line 941 of file mex.cc.
References mxArray_matlab::err_invalid_type().
|
inlinevirtualinherited |
Implements mxArray_base.
Definition at line 804 of file mex.cc.
References mxArray_matlab::dims.
Referenced by mxArray_sparse::as_octave_value().
|
inlinevirtualinherited |
Implements mxArray_base.
Definition at line 806 of file mex.cc.
References mxArray_matlab::dims, n, and mxArray_matlab::ndims.
Referenced by mxArray_sparse::mxArray_sparse(), and mxArray_sparse::as_octave_value().
|
inlinevirtualinherited |
Implements mxArray_base.
Definition at line 818 of file mex.cc.
References mxArray_matlab::ndims.
Referenced by mxArray_matlab::dims_to_dim_vector().
|
inlinevirtualinherited |
Implements mxArray_base.
Definition at line 850 of file mex.cc.
References mxArray_matlab::dims, mxArray_matlab::ndims, and retval.
Referenced by mxArray_cell::mxArray_cell(), mxArray_number(), mxArray_struct::mxArray_struct(), mxArray_cell::~mxArray_cell(), mxArray_struct::~mxArray_struct(), mxArray_struct::add_field(), array_to_string(), as_octave_value(), mxArray_struct::as_octave_value(), mxArray_cell::as_octave_value(), mxArray_cell::get_cell(), get_string(), int_to_ov(), mxArray_matlab::isempty(), mxArray_struct::remove_field(), and mxArray_cell::set_cell().
|
inlinevirtualinherited |
Implements mxArray_base.
Reimplemented in mxArray_struct.
Definition at line 987 of file mex.cc.
References mxArray_matlab::err_invalid_type().
|
inlinevirtualinherited |
Implements mxArray_base.
Reimplemented in mxArray_sparse.
Definition at line 946 of file mex.cc.
References mxArray_matlab::err_invalid_type().
Reimplemented in mxArray_octave_value.
Definition at line 237 of file mxarray.in.h.
Referenced by mxArray::get_property().
|
inlinevirtual |
Reimplemented from mxArray_matlab.
Definition at line 1211 of file mex.cc.
References mxArray_matlab::get_class_id(), mxCHAR_CLASS, mxDOUBLE_CLASS, mxINT16_CLASS, mxINT32_CLASS, mxINT64_CLASS, mxINT8_CLASS, mxLOGICAL_CLASS, mxSINGLE_CLASS, mxUINT16_CLASS, mxUINT32_CLASS, mxUINT64_CLASS, mxUINT8_CLASS, panic_impossible, pr, and retval.
|
inlinevirtual |
Reimplemented from mxArray_matlab.
Definition at line 1280 of file mex.cc.
References mxArray_matlab::get_number_of_elements(), pr, and retval.
|
inlineprotected |
Definition at line 1465 of file mex.cc.
References error(), mxArray_matlab::get_number_of_elements(), octave_value(), pi, and pr.
|
inlinevirtualinherited |
|
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 |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
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(), mxArray_octave_value::is_logical_scalar_true(), and mxArray_matlab::is_logical_scalar_true().
|
inlinevirtualinherited |
Implements mxArray_base.
Definition at line 798 of file mex.cc.
References mxArray_matlab::get_data(), and mxArray_base::is_logical_scalar().
|
inlinevirtualinherited |
Implements mxArray_base.
Definition at line 775 of file mex.cc.
References mxDOUBLE_CLASS, mxINT16_CLASS, mxINT32_CLASS, mxINT64_CLASS, mxINT8_CLASS, mxSINGLE_CLASS, mxUINT16_CLASS, mxUINT32_CLASS, mxUINT64_CLASS, and mxUINT8_CLASS.
|
inlinevirtualinherited |
Reimplemented in mxArray_octave_value.
Definition at line 148 of file mxarray.in.h.
Referenced by mxArray::is_octave_value(), and mxArray::maybe_mutate().
|
inlinevirtualinherited |
Implements mxArray_base.
Definition at line 862 of file mex.cc.
References mxArray_matlab::dims, and mxArray_matlab::ndims.
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
Implements mxArray_base.
Definition at line 860 of file mex.cc.
References mxArray_matlab::get_number_of_elements().
|
inlinevirtualinherited |
Reimplemented in mxArray_octave_value.
Definition at line 302 of file mxarray.in.h.
Referenced by mxArray::maybe_mutate(), and mxArray::mutate().
|
inlinevirtualinherited |
Reimplemented in mxArray_octave_value.
Definition at line 300 of file mxarray.in.h.
Referenced by mxArray::mutation_needed().
mxArray_number& mxArray_number::operator= | ( | const mxArray_number & | ) |
|
inlinevirtualinherited |
Implements mxArray_base.
Reimplemented in mxArray_struct.
Definition at line 971 of file mex.cc.
References mxArray_matlab::err_invalid_type().
Implements mxArray_base.
Reimplemented in mxArray_cell.
Definition at line 906 of file mex.cc.
References mxArray_matlab::err_invalid_type().
|
inlinevirtualinherited |
Implements mxArray_base.
Definition at line 894 of file mex.cc.
References mxArray_matlab::class_name, mxArray::malloc(), mxFree(), and strlen().
|
inlinevirtual |
Implements mxArray_base.
Definition at line 824 of file mex.cc.
References mxArray_matlab::dims, mxArray::malloc(), mxFree(), and mxArray_matlab::ndims.
Implements mxArray_base.
Reimplemented in mxArray_struct.
Definition at line 981 of file mex.cc.
References mxArray_matlab::err_invalid_type().
|
inlinevirtual |
|
inlinevirtualinherited |
Implements mxArray_base.
Reimplemented in mxArray_sparse.
Definition at line 951 of file mex.cc.
References mxArray_matlab::err_invalid_type().
|
inlinevirtualinherited |
Implements mxArray_base.
Reimplemented in mxArray_sparse.
Definition at line 956 of file mex.cc.
References mxArray_matlab::err_invalid_type().
|
inlinevirtualinherited |
Implements mxArray_base.
Definition at line 820 of file mex.cc.
References mxArray_matlab::dims, and m.
|
inlinevirtualinherited |
Implements mxArray_base.
Definition at line 822 of file mex.cc.
References mxArray_matlab::dims, and n.
|
inlinevirtualinherited |
Implements mxArray_base.
Reimplemented in mxArray_sparse.
Definition at line 961 of file mex.cc.
References mxArray_matlab::err_invalid_type().
|
inlinevirtualinherited |
Reimplemented in mxArray_octave_value.
Definition at line 242 of file mxarray.in.h.
References mxArray_base::err_invalid_type().
Referenced by mxArray::set_property().
|
privateinherited |
Definition at line 1062 of file mex.cc.
Referenced by mxArray_matlab::~mxArray_matlab(), and mxArray_matlab::set_class_name().
|
privateinherited |
Definition at line 1067 of file mex.cc.
Referenced by mxArray_matlab::mxArray_matlab(), mxArray_matlab::~mxArray_matlab(), mxArray_matlab::calc_single_subscript(), mxArray_matlab::get_dimensions(), mxArray_matlab::get_m(), mxArray_matlab::get_n(), mxArray_matlab::get_number_of_elements(), mxArray_matlab::is_scalar(), mxArray_matlab::set_dimensions(), mxArray_matlab::set_m(), and mxArray_matlab::set_n().
|
privateinherited |
Definition at line 1064 of file mex.cc.
Referenced by mxArray_matlab::get_class_id().
|
privateinherited |
Definition at line 1066 of file mex.cc.
Referenced by mxArray_matlab::mxArray_matlab(), mxArray_matlab::calc_single_subscript(), mxArray_matlab::get_n(), mxArray_matlab::get_number_of_dimensions(), mxArray_matlab::get_number_of_elements(), mxArray_matlab::is_scalar(), and mxArray_matlab::set_dimensions().
|
private |
Definition at line 1487 of file mex.cc.
Referenced by mxArray_number(), ~mxArray_number(), as_octave_value(), get_imag_data(), int_to_ov(), is_complex(), and set_imag_data().
|
private |
Definition at line 1486 of file mex.cc.
Referenced by mxArray_number(), ~mxArray_number(), array_to_string(), as_octave_value(), get_data(), get_scalar(), get_string(), int_to_ov(), and set_data().