GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "mxarray.h"
Static Public Member Functions | |
static octave_value | as_octave_value (const mxArray *ptr) |
static octave_value | as_octave_value (const mxArray *ptr) |
static void * | calloc (size_t n, size_t t) |
static void * | calloc (size_t n, size_t t) |
static void * | malloc (size_t n) |
static void * | malloc (size_t n) |
static char * | strsave (const char *str) |
static char * | strsave (const char *str) |
Protected Member Functions | |
octave_value | as_octave_value (void) const |
octave_value | as_octave_value (void) const |
Private Member Functions | |
mxArray (mxArray_base *r, const char *n) | |
mxArray (mxArray_base *r, const char *n) | |
mxArray (const mxArray &) | |
mxArray (const mxArray &) | |
void | maybe_mutate (void) const |
void | maybe_mutate (void) const |
mxArray & | operator= (const mxArray &) |
mxArray & | operator= (const mxArray &) |
Private Attributes | |
char * | name |
mxArray_base * | rep |
mxArray::mxArray | ( | const octave_value & | ov | ) |
mxArray::mxArray | ( | mxClassID | id, |
mwSize | ndims, | ||
const mwSize * | dims, | ||
mxComplexity | flag = mxREAL |
||
) |
mxArray::mxArray | ( | mxClassID | id, |
const dim_vector & | dv, | ||
mxComplexity | flag = mxREAL |
||
) |
mxArray::mxArray | ( | mxClassID | id, |
mwSize | m, | ||
mwSize | n, | ||
mxComplexity | flag = mxREAL |
||
) |
mxArray::mxArray | ( | const dim_vector & | dv, |
int | num_keys, | ||
const char ** | keys | ||
) |
mxArray::mxArray | ( | const dim_vector & | dv | ) |
mxArray::~mxArray | ( | void | ) |
|
inlineprivate |
|
private |
mxArray::mxArray | ( | const octave_value & | ov | ) |
mxArray::mxArray | ( | mxClassID | id, |
mwSize | ndims, | ||
const mwSize * | dims, | ||
mxComplexity | flag = mxREAL |
||
) |
mxArray::mxArray | ( | mxClassID | id, |
const dim_vector & | dv, | ||
mxComplexity | flag = mxREAL |
||
) |
mxArray::mxArray | ( | mxClassID | id, |
mwSize | m, | ||
mwSize | n, | ||
mxComplexity | flag = mxREAL |
||
) |
mxArray::mxArray | ( | const char * | str | ) |
mxArray::mxArray | ( | const dim_vector & | dv, |
int | num_keys, | ||
const char ** | keys | ||
) |
mxArray::mxArray | ( | const dim_vector & | dv | ) |
mxArray::~mxArray | ( | void | ) |
|
inlineprivate |
Definition at line 517 of file mxarray.in.h.
|
private |
Definition at line 454 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by add_field(), and mxAddField().
Definition at line 454 of file mxarray.in.h.
References add_field(), and DO_MUTABLE_METHOD.
Definition at line 476 of file mxarray.in.h.
References mxArray_base::array_to_string(), and rep.
Definition at line 476 of file mxarray.h.
References mxArray_base::array_to_string(), and rep.
Referenced by mxArrayToString().
|
static |
Definition at line 1968 of file mex.cc.
References as_octave_value(), and octave_value().
Referenced by as_octave_value().
|
static |
|
protected |
Definition at line 1974 of file mex.cc.
References mxArray_base::as_octave_value(), and rep.
Referenced by mxArray_struct::as_octave_value(), mxArray_cell::as_octave_value(), call_mex(), mexCallMATLAB(), mexPutVariable(), and mexSet().
|
protected |
Definition at line 478 of file mxarray.in.h.
References mxArray_base::calc_single_subscript(), and rep.
Definition at line 478 of file mxarray.h.
References mxArray_base::calc_single_subscript(), and rep.
Referenced by mxCalcSingleSubscript().
Definition at line 2342 of file mex.cc.
References mex::calloc_unmarked().
Definition at line 330 of file mxarray.in.h.
References mxArray_base::as_mxArray(), mxArray_base::dup(), mxArray(), name, rep, and set_name().
Definition at line 330 of file mxarray.h.
References mxArray_base::as_mxArray(), mxArray_base::dup(), mxArray(), name, rep, and set_name().
Referenced by mxArray_cell::mxArray_cell(), mxArray_struct::mxArray_struct(), and mxDuplicateArray().
Definition at line 425 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by get_cell(), and mxGetCell().
Definition at line 425 of file mxarray.in.h.
References DO_MUTABLE_METHOD, and get_cell().
Definition at line 418 of file mxarray.h.
References mxArray_base::get_class_id(), and rep.
Referenced by mxGetClassID().
Definition at line 418 of file mxarray.in.h.
References mxArray_base::get_class_id(), and rep.
Definition at line 420 of file mxarray.h.
References mxArray_base::get_class_name(), and rep.
Referenced by mxGetClassName().
Definition at line 420 of file mxarray.in.h.
References mxArray_base::get_class_name(), and rep.
Definition at line 433 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by octave_sparse_bool_matrix::as_mxArray(), octave_struct::as_mxArray(), octave_sparse_complex_matrix::as_mxArray(), octave_char_matrix::as_mxArray(), octave_sparse_matrix::as_mxArray(), octave_float_complex_matrix::as_mxArray(), octave_cell::as_mxArray(), octave_complex_matrix::as_mxArray(), octave_float_complex::as_mxArray(), octave_complex::as_mxArray(), octave_float_matrix::as_mxArray(), octave_bool_matrix::as_mxArray(), octave_matrix::as_mxArray(), octave_bool::as_mxArray(), octave_scalar::as_mxArray(), octave_float_scalar::as_mxArray(), octave_scalar_struct::as_mxArray(), octave_range::as_mxArray(), OCTAVE_VALUE_INT_MATRIX_T::as_mxArray(), OCTAVE_VALUE_INT_SCALAR_T::as_mxArray(), get_data(), mxGetChars(), mxGetData(), mxGetLogicals(), and mxGetPr().
Definition at line 433 of file mxarray.in.h.
References DO_MUTABLE_METHOD, and get_data().
Definition at line 397 of file mxarray.in.h.
References mxArray_base::get_dimensions(), and rep.
Definition at line 397 of file mxarray.h.
References mxArray_base::get_dimensions(), and rep.
Referenced by mxArray_octave_value::as_mxArray(), and mxGetDimensions().
Definition at line 481 of file mxarray.in.h.
References mxArray_base::get_element_size(), and rep.
Definition at line 481 of file mxarray.h.
References mxArray_base::get_element_size(), and rep.
Referenced by mxGetElementSize().
Definition at line 459 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by get_field_by_number(), and mxGetFieldByNumber().
Definition at line 459 of file mxarray.in.h.
References DO_MUTABLE_METHOD, and get_field_by_number().
Definition at line 467 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by get_field_name_by_number(), and mxGetFieldNameByNumber().
Definition at line 467 of file mxarray.in.h.
References DO_MUTABLE_METHOD, and get_field_name_by_number().
Definition at line 470 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by get_field_number(), and mxGetFieldNumber().
Definition at line 470 of file mxarray.in.h.
References DO_MUTABLE_METHOD, and get_field_number().
Definition at line 435 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by octave_sparse_complex_matrix::as_mxArray(), octave_float_complex_matrix::as_mxArray(), octave_complex_matrix::as_mxArray(), octave_float_complex::as_mxArray(), octave_complex::as_mxArray(), get_imag_data(), mxGetImagData(), and mxGetPi().
Definition at line 435 of file mxarray.in.h.
References DO_MUTABLE_METHOD, and get_imag_data().
Definition at line 442 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by octave_sparse_bool_matrix::as_mxArray(), octave_sparse_complex_matrix::as_mxArray(), octave_sparse_matrix::as_mxArray(), get_ir(), and mxGetIr().
Definition at line 442 of file mxarray.in.h.
References DO_MUTABLE_METHOD, and get_ir().
Definition at line 444 of file mxarray.h.
References DO_MUTABLE_METHOD.
Referenced by octave_sparse_bool_matrix::as_mxArray(), octave_sparse_complex_matrix::as_mxArray(), octave_sparse_matrix::as_mxArray(), get_jc(), and mxGetJc().
Definition at line 444 of file mxarray.in.h.
References DO_MUTABLE_METHOD, and get_jc().
Definition at line 393 of file mxarray.in.h.
References mxArray_base::get_m(), and rep.
Definition at line 393 of file mxarray.h.
References mxArray_base::get_m(), and rep.
Referenced by mxGetM().
Definition at line 395 of file mxarray.in.h.
References mxArray_base::get_n(), and rep.
Definition at line 395 of file mxarray.h.
References mxArray_base::get_n(), and rep.
Referenced by mxGetN().
Definition at line 414 of file mxarray.in.h.
References name.
Definition at line 399 of file mxarray.in.h.
References mxArray_base::get_number_of_dimensions(), and rep.
Definition at line 399 of file mxarray.h.
References mxArray_base::get_number_of_dimensions(), and rep.
Referenced by mxGetNumberOfDimensions().
Definition at line 409 of file mxarray.in.h.
References mxArray_base::get_number_of_elements(), and rep.
Definition at line 409 of file mxarray.h.
References mxArray_base::get_number_of_elements(), and rep.
Referenced by is_empty(), and mxGetNumberOfElements().
Definition at line 465 of file mxarray.in.h.
References mxArray_base::get_number_of_fields(), and rep.
Definition at line 465 of file mxarray.h.
References mxArray_base::get_number_of_fields(), and rep.
Referenced by mxGetNumberOfFields().
Definition at line 446 of file mxarray.h.
References mxArray_base::get_nzmax(), and rep.
Referenced by mxGetNzmax().
Definition at line 446 of file mxarray.in.h.
References mxArray_base::get_nzmax(), and rep.
Definition at line 431 of file mxarray.h.
References mxArray_base::get_scalar(), and rep.
Referenced by mxGetScalar().
Definition at line 431 of file mxarray.in.h.
References mxArray_base::get_scalar(), and rep.
Definition at line 473 of file mxarray.in.h.
References mxArray_base::get_string(), and rep.
Definition at line 473 of file mxarray.h.
References mxArray_base::get_string(), and rep.
Referenced by mxGetString().
Definition at line 350 of file mxarray.in.h.
References mxArray_base::is_cell(), and rep.
Definition at line 350 of file mxarray.h.
References mxArray_base::is_cell(), and rep.
Referenced by mxIsCell().
Definition at line 352 of file mxarray.h.
References mxArray_base::is_char(), and rep.
Referenced by mxIsChar().
Definition at line 352 of file mxarray.in.h.
References mxArray_base::is_char(), and rep.
Definition at line 354 of file mxarray.in.h.
References mxArray_base::is_class(), and rep.
Definition at line 354 of file mxarray.h.
References mxArray_base::is_class(), and rep.
Referenced by mxIsClass().
Definition at line 356 of file mxarray.in.h.
References mxArray_base::is_complex(), and rep.
Definition at line 356 of file mxarray.h.
References mxArray_base::is_complex(), and rep.
Referenced by mxIsComplex().
Definition at line 358 of file mxarray.in.h.
References mxArray_base::is_double(), and rep.
Definition at line 358 of file mxarray.h.
References mxArray_base::is_double(), and rep.
Referenced by mxIsDouble().
Definition at line 412 of file mxarray.h.
References get_number_of_elements().
Referenced by mxIsEmpty().
Definition at line 412 of file mxarray.in.h.
References get_number_of_elements().
Definition at line 360 of file mxarray.h.
References mxArray_base::is_function_handle(), and rep.
Referenced by mxIsFunctionHandle().
Definition at line 360 of file mxarray.in.h.
References mxArray_base::is_function_handle(), and rep.
Definition at line 362 of file mxarray.h.
References mxArray_base::is_int16(), and rep.
Referenced by mxIsInt16().
Definition at line 362 of file mxarray.in.h.
References mxArray_base::is_int16(), and rep.
Definition at line 364 of file mxarray.in.h.
References mxArray_base::is_int32(), and rep.
Definition at line 364 of file mxarray.h.
References mxArray_base::is_int32(), and rep.
Referenced by mxIsInt32().
Definition at line 366 of file mxarray.in.h.
References mxArray_base::is_int64(), and rep.
Definition at line 366 of file mxarray.h.
References mxArray_base::is_int64(), and rep.
Referenced by mxIsInt64().
Definition at line 368 of file mxarray.in.h.
References mxArray_base::is_int8(), and rep.
Definition at line 368 of file mxarray.h.
References mxArray_base::is_int8(), and rep.
Referenced by mxIsInt8().
Definition at line 370 of file mxarray.in.h.
References mxArray_base::is_logical(), and rep.
Definition at line 370 of file mxarray.h.
References mxArray_base::is_logical(), and rep.
Referenced by mxIsLogical().
Definition at line 388 of file mxarray.h.
References mxArray_base::is_logical_scalar(), and rep.
Referenced by mxIsLogicalScalar().
Definition at line 388 of file mxarray.in.h.
References mxArray_base::is_logical_scalar(), and rep.
Definition at line 390 of file mxarray.in.h.
References mxArray_base::is_logical_scalar_true(), and rep.
Definition at line 390 of file mxarray.h.
References mxArray_base::is_logical_scalar_true(), and rep.
Referenced by mxIsLogicalScalarTrue().
Definition at line 372 of file mxarray.in.h.
References mxArray_base::is_numeric(), and rep.
Definition at line 372 of file mxarray.h.
References mxArray_base::is_numeric(), and rep.
Referenced by mxIsNumeric().
Definition at line 348 of file mxarray.h.
References mxArray_base::is_octave_value(), and rep.
Definition at line 348 of file mxarray.in.h.
References mxArray_base::is_octave_value(), and rep.
Definition at line 374 of file mxarray.in.h.
References mxArray_base::is_single(), and rep.
Definition at line 374 of file mxarray.h.
References mxArray_base::is_single(), and rep.
Referenced by mxIsSingle().
Definition at line 376 of file mxarray.h.
References mxArray_base::is_sparse(), and rep.
Referenced by mxIsSparse().
Definition at line 376 of file mxarray.in.h.
References mxArray_base::is_sparse(), and rep.
Definition at line 378 of file mxarray.in.h.
References mxArray_base::is_struct(), and rep.
Definition at line 378 of file mxarray.h.
References mxArray_base::is_struct(), and rep.
Referenced by mxIsStruct().
Definition at line 380 of file mxarray.h.
References mxArray_base::is_uint16(), and rep.
Referenced by mxIsUint16().
Definition at line 380 of file mxarray.in.h.
References mxArray_base::is_uint16(), and rep.
Definition at line 382 of file mxarray.in.h.
References mxArray_base::is_uint32(), and rep.
Definition at line 382 of file mxarray.h.
References mxArray_base::is_uint32(), and rep.
Referenced by mxIsUint32().
Definition at line 384 of file mxarray.in.h.
References mxArray_base::is_uint64(), and rep.
Definition at line 384 of file mxarray.h.
References mxArray_base::is_uint64(), and rep.
Referenced by mxIsUint64().
Definition at line 386 of file mxarray.in.h.
References mxArray_base::is_uint8(), and rep.
Definition at line 386 of file mxarray.h.
References mxArray_base::is_uint8(), and rep.
Referenced by mxIsUint8().
Definition at line 2336 of file mex.cc.
References mex::malloc_unmarked().
Referenced by mxArray_struct::add_field(), mxArray_octave_value::array_to_string(), mxArray_number::array_to_string(), mxArray_octave_value::get_dimensions(), mxArray_struct::remove_field(), mxArray_matlab::set_class_name(), and strsave().
Definition at line 1980 of file mex.cc.
References mxArray_base::is_octave_value(), mxArray_base::mutate(), and rep.
Definition at line 485 of file mxarray.in.h.
References mxArray_base::mutate(), and rep.
Definition at line 485 of file mxarray.h.
References mxArray_base::mutate(), and rep.
Definition at line 483 of file mxarray.in.h.
References mxArray_base::mutation_needed(), and rep.
Definition at line 483 of file mxarray.h.
References mxArray_base::mutation_needed(), and rep.
Definition at line 456 of file mxarray.in.h.
References DO_VOID_MUTABLE_METHOD, and remove_field().
Definition at line 456 of file mxarray.h.
References DO_VOID_MUTABLE_METHOD.
Referenced by mxRemoveField(), and remove_field().
Definition at line 428 of file mxarray.in.h.
References DO_VOID_MUTABLE_METHOD, and set_cell().
Definition at line 428 of file mxarray.h.
References DO_VOID_MUTABLE_METHOD.
Referenced by mxSetCell(), and set_cell().
Definition at line 422 of file mxarray.in.h.
References DO_VOID_MUTABLE_METHOD, and set_class_name().
Definition at line 422 of file mxarray.h.
References DO_VOID_MUTABLE_METHOD.
Referenced by mxArray_octave_value::as_mxArray(), mxSetClassName(), and set_class_name().
Definition at line 438 of file mxarray.in.h.
References DO_VOID_MUTABLE_METHOD, and set_data().
Definition at line 438 of file mxarray.h.
References DO_VOID_MUTABLE_METHOD.
Referenced by mxSetData(), mxSetPr(), and set_data().
Definition at line 406 of file mxarray.in.h.
References DO_VOID_MUTABLE_METHOD, and set_dimensions().
Definition at line 406 of file mxarray.h.
References DO_VOID_MUTABLE_METHOD.
Referenced by mxArray_octave_value::as_mxArray(), mxSetDimensions(), and set_dimensions().
Definition at line 462 of file mxarray.in.h.
References DO_VOID_MUTABLE_METHOD, and set_field_by_number().
Definition at line 462 of file mxarray.h.
References DO_VOID_MUTABLE_METHOD.
Referenced by mxSetFieldByNumber(), and set_field_by_number().
Definition at line 440 of file mxarray.in.h.
References DO_VOID_MUTABLE_METHOD, and set_imag_data().
Definition at line 440 of file mxarray.h.
References DO_VOID_MUTABLE_METHOD.
Referenced by mxSetImagData(), mxSetPi(), and set_imag_data().
Definition at line 448 of file mxarray.h.
References DO_VOID_MUTABLE_METHOD.
Definition at line 448 of file mxarray.in.h.
References DO_VOID_MUTABLE_METHOD, and set_ir().
Definition at line 450 of file mxarray.in.h.
References DO_VOID_MUTABLE_METHOD, and set_jc().
Definition at line 450 of file mxarray.h.
References DO_VOID_MUTABLE_METHOD.
Definition at line 402 of file mxarray.in.h.
References DO_VOID_MUTABLE_METHOD, and set_m().
Definition at line 402 of file mxarray.h.
References DO_VOID_MUTABLE_METHOD.
Definition at line 404 of file mxarray.in.h.
References DO_VOID_MUTABLE_METHOD, and set_n().
Definition at line 404 of file mxarray.h.
References DO_VOID_MUTABLE_METHOD.
Definition at line 452 of file mxarray.in.h.
References DO_VOID_MUTABLE_METHOD, and set_nzmax().
Definition at line 452 of file mxarray.h.
References DO_VOID_MUTABLE_METHOD.
Referenced by mxSetNzmax(), and set_nzmax().
Definition at line 491 of file mxarray.in.h.
References malloc().
Definition at line 491 of file mxarray.h.
References malloc().
Referenced by mxArray_struct::init(), mxArray_struct::mxArray_struct(), and set_name().
|
private |
Definition at line 515 of file mxarray.h.
Referenced by dup(), get_name(), set_name(), and ~mxArray().
|
mutableprivate |
Definition at line 513 of file mxarray.h.
Referenced by array_to_string(), as_octave_value(), calc_single_subscript(), dup(), get_class_id(), get_class_name(), get_dimensions(), get_element_size(), get_m(), get_n(), get_number_of_dimensions(), get_number_of_elements(), get_number_of_fields(), get_nzmax(), get_scalar(), get_string(), is_cell(), is_char(), is_class(), is_complex(), is_double(), is_function_handle(), is_int16(), is_int32(), is_int64(), is_int8(), is_logical(), is_logical_scalar(), is_logical_scalar_true(), is_numeric(), is_octave_value(), is_single(), is_sparse(), is_struct(), is_uint16(), is_uint32(), is_uint64(), is_uint8(), maybe_mutate(), mutate(), mutation_needed(), and ~mxArray().