GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
mxArray Class Reference

#include "mxarray.h"

Collaboration diagram for mxArray:

Public Member Functions

OCTINTERP_API mxArray (bool interleaved, const char *str)
 
OCTINTERP_API mxArray (bool interleaved, const dim_vector &dv)
 
OCTINTERP_API mxArray (bool interleaved, const dim_vector &dv, int num_keys, const char **keys)
 
OCTINTERP_API mxArray (bool interleaved, const octave_value &ov)
 
OCTINTERP_API mxArray (bool interleaved, mwSize m, const char **str)
 
OCTINTERP_API mxArray (bool interleaved, mwSize m, mwSize n)
 
OCTINTERP_API mxArray (bool interleaved, mwSize m, mwSize n, int num_keys, const char **keys)
 
OCTINTERP_API mxArray (bool interleaved, mwSize ndims, const mwSize *dims)
 
OCTINTERP_API mxArray (bool interleaved, mwSize ndims, const mwSize *dims, int num_keys, const char **keys)
 
OCTINTERP_API mxArray (bool interleaved, mxClassID id, const dim_vector &dv, mxComplexity flag=mxREAL)
 
OCTINTERP_API mxArray (bool interleaved, mxClassID id, double val)
 
OCTINTERP_API mxArray (bool interleaved, mxClassID id, mwSize m, mwSize n, mwSize nzmax, mxComplexity flag=mxREAL)
 
OCTINTERP_API mxArray (bool interleaved, mxClassID id, mwSize m, mwSize n, mxComplexity flag=mxREAL, bool init=true)
 
OCTINTERP_API mxArray (bool interleaved, mxClassID id, mwSize ndims, const mwSize *dims, mxComplexity flag=mxREAL, bool init=true)
 
OCTINTERP_API mxArray (bool interleaved, mxClassID id, mxLogical val)
 
 mxArray (const mxArray &)=delete
 
OCTINTERP_API ~mxArray (void)
 
int add_field (const char *key)
 
char * array_to_string (void) const
 
OCTINTERP_API octave_value as_octave_value (void) const
 
mwIndex calc_single_subscript (mwSize nsubs, mwIndex *subs) const
 
mxArraydup (void) const
 
mxArrayget_cell (mwIndex idx) 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
 
mxArrayget_field_by_number (mwIndex index, int key_num) const
 
const char * get_field_name_by_number (int key_num) const
 
int get_field_number (const char *key) 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
 
const char * get_name (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
 
mxArrayget_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
 
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
 
int is_logical_scalar (void) const
 
int is_logical_scalar_true (void) const
 
int is_numeric (void) const
 
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
 
mxArraymutate (void) const
 
bool mutation_needed (void) const
 
mxArrayoperator= (const mxArray &)=delete
 
void remove_field (int key_num)
 
void set_cell (mwIndex idx, mxArray *val)
 
void set_class_name (const char *name_arg)
 
int set_complex_doubles (mxComplexDouble *data)
 
int set_complex_singles (mxComplexSingle *data)
 
void set_data (void *pr)
 
int set_dimensions (mwSize *dims_arg, mwSize ndims_arg)
 
int set_doubles (mxDouble *data)
 
void set_field_by_number (mwIndex index, int key_num, mxArray *val)
 
void set_imag_data (void *pi)
 
int set_int16s (mxInt16 *data)
 
int set_int32s (mxInt32 *data)
 
int set_int64s (mxInt64 *data)
 
int set_int8s (mxInt8 *data)
 
void set_ir (mwIndex *ir)
 
void set_jc (mwIndex *jc)
 
void set_m (mwSize m)
 
void set_n (mwSize n)
 
OCTINTERP_API void set_name (const char *name)
 
void set_nzmax (mwSize nzmax)
 
void set_property (mwIndex idx, const char *pname, const mxArray *pval)
 
int set_singles (mxSingle *data)
 
int set_uint16s (mxUint16 *data)
 
int set_uint32s (mxUint32 *data)
 
int set_uint64s (mxUint64 *data)
 
int set_uint8s (mxUint8 *data)
 

Static Public Member Functions

static OCTINTERP_API void * alloc (bool init, std::size_t n, std::size_t t)
 
static OCTINTERP_API octave_value as_octave_value (const mxArray *ptr, bool null_is_empty=true)
 
static OCTINTERP_API void * calloc (std::size_t n, std::size_t t)
 
static OCTINTERP_API void * malloc (std::size_t n)
 
static char * strsave (const char *str)
 

Private Member Functions

 mxArray (mxArray_base *r, const char *n)
 
OCTINTERP_API void maybe_mutate (void) const
 

Static Private Member Functions

static OCTINTERP_API mxArray_basecreate_rep (bool interleaved, const char *str)
 
static OCTINTERP_API mxArray_basecreate_rep (bool interleaved, const octave_value &ov)
 
static OCTINTERP_API mxArray_basecreate_rep (bool interleaved, mwSize m, const char **str)
 
static OCTINTERP_API mxArray_basecreate_rep (bool interleaved, mxClassID id, const dim_vector &dv, mxComplexity flag)
 
static OCTINTERP_API mxArray_basecreate_rep (bool interleaved, mxClassID id, double val)
 
static OCTINTERP_API mxArray_basecreate_rep (bool interleaved, mxClassID id, mwSize m, mwSize n, mwSize nzmax, mxComplexity flag)
 
static OCTINTERP_API mxArray_basecreate_rep (bool interleaved, mxClassID id, mwSize m, mwSize n, mxComplexity flag, bool init)
 
static OCTINTERP_API mxArray_basecreate_rep (bool interleaved, mxClassID id, mwSize ndims, const mwSize *dims, mxComplexity flag, bool init)
 
static OCTINTERP_API mxArray_basecreate_rep (bool interleaved, mxClassID id, mxLogical val)
 

Private Attributes

char * m_name
 
mxArray_basem_rep
 

Detailed Description

Definition at line 338 of file mxarray.h.

Constructor & Destructor Documentation

◆ mxArray() [1/17]

mxArray::mxArray ( bool  interleaved,
const octave_value ov 
)

Definition at line 3201 of file mex.cc.

Referenced by dup().

◆ mxArray() [2/17]

mxArray::mxArray ( bool  interleaved,
mxClassID  id,
mwSize  ndims,
const mwSize *  dims,
mxComplexity  flag = mxREAL,
bool  init = true 
)

Definition at line 3205 of file mex.cc.

◆ mxArray() [3/17]

mxArray::mxArray ( bool  interleaved,
mxClassID  id,
const dim_vector dv,
mxComplexity  flag = mxREAL 
)

Definition at line 3211 of file mex.cc.

◆ mxArray() [4/17]

mxArray::mxArray ( bool  interleaved,
mxClassID  id,
mwSize  m,
mwSize  n,
mxComplexity  flag = mxREAL,
bool  init = true 
)

Definition at line 3216 of file mex.cc.

◆ mxArray() [5/17]

mxArray::mxArray ( bool  interleaved,
mxClassID  id,
double  val 
)

Definition at line 3221 of file mex.cc.

◆ mxArray() [6/17]

mxArray::mxArray ( bool  interleaved,
mxClassID  id,
mxLogical  val 
)

Definition at line 3225 of file mex.cc.

◆ mxArray() [7/17]

mxArray::mxArray ( bool  interleaved,
const char *  str 
)

Definition at line 3229 of file mex.cc.

◆ mxArray() [8/17]

mxArray::mxArray ( bool  interleaved,
mwSize  m,
const char **  str 
)

Definition at line 3233 of file mex.cc.

◆ mxArray() [9/17]

mxArray::mxArray ( bool  interleaved,
mxClassID  id,
mwSize  m,
mwSize  n,
mwSize  nzmax,
mxComplexity  flag = mxREAL 
)

Definition at line 3237 of file mex.cc.

◆ mxArray() [10/17]

mxArray::mxArray ( bool  interleaved,
mwSize  ndims,
const mwSize *  dims,
int  num_keys,
const char **  keys 
)

Definition at line 3242 of file mex.cc.

◆ mxArray() [11/17]

mxArray::mxArray ( bool  interleaved,
const dim_vector dv,
int  num_keys,
const char **  keys 
)

Definition at line 3249 of file mex.cc.

◆ mxArray() [12/17]

mxArray::mxArray ( bool  interleaved,
mwSize  m,
mwSize  n,
int  num_keys,
const char **  keys 
)

Definition at line 3255 of file mex.cc.

◆ mxArray() [13/17]

mxArray::mxArray ( bool  interleaved,
mwSize  ndims,
const mwSize *  dims 
)

Definition at line 3261 of file mex.cc.

◆ mxArray() [14/17]

mxArray::mxArray ( bool  interleaved,
const dim_vector dv 
)

Definition at line 3265 of file mex.cc.

◆ mxArray() [15/17]

mxArray::mxArray ( bool  interleaved,
mwSize  m,
mwSize  n 
)

Definition at line 3269 of file mex.cc.

◆ mxArray() [16/17]

mxArray::mxArray ( const mxArray )
delete

◆ ~mxArray()

mxArray::~mxArray ( void  )

Definition at line 3273 of file mex.cc.

References m_name, m_rep, and mxFree().

◆ mxArray() [17/17]

mxArray::mxArray ( mxArray_base r,
const char *  n 
)
inlineprivate

Definition at line 709 of file mxarray.h.

Member Function Documentation

◆ add_field()

int mxArray::add_field ( const char *  key)
inline

Definition at line 644 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by mxAddField().

◆ alloc()

void * mxArray::alloc ( bool  init,
std::size_t  n,
std::size_t  t 
)
static

Definition at line 3747 of file mex.cc.

References calloc(), malloc(), and n.

◆ array_to_string()

char* mxArray::array_to_string ( void  ) const
inline

Definition at line 667 of file mxarray.h.

References mxArray_base::array_to_string(), and m_rep.

Referenced by mxArrayToString().

◆ as_octave_value() [1/2]

octave_value mxArray::as_octave_value ( const mxArray ptr,
bool  null_is_empty = true 
)
static

Definition at line 3288 of file mex.cc.

References as_octave_value(), and Matrix.

Referenced by as_octave_value(), and mxArray_octave_value::set_property().

◆ as_octave_value() [2/2]

octave_value mxArray::as_octave_value ( void  ) const

◆ calc_single_subscript()

mwIndex mxArray::calc_single_subscript ( mwSize  nsubs,
mwIndex *  subs 
) const
inline

Definition at line 669 of file mxarray.h.

References mxArray_base::calc_single_subscript(), and m_rep.

Referenced by mxCalcSingleSubscript().

◆ calloc()

void * mxArray::calloc ( std::size_t  n,
std::size_t  t 
)
static

Definition at line 3741 of file mex.cc.

References mex::calloc_unmarked(), mex_context, and n.

Referenced by alloc().

◆ create_rep() [1/9]

mxArray_base * mxArray::create_rep ( bool  interleaved,
const char *  str 
)
staticprivate

Definition at line 3358 of file mex.cc.

◆ create_rep() [2/9]

mxArray_base * mxArray::create_rep ( bool  interleaved,
const octave_value ov 
)
staticprivate

Definition at line 3304 of file mex.cc.

◆ create_rep() [3/9]

mxArray_base * mxArray::create_rep ( bool  interleaved,
mwSize  m,
const char **  str 
)
staticprivate

Definition at line 3367 of file mex.cc.

References m.

◆ create_rep() [4/9]

mxArray_base * mxArray::create_rep ( bool  interleaved,
mxClassID  id,
const dim_vector dv,
mxComplexity  flag 
)
staticprivate

Definition at line 3320 of file mex.cc.

◆ create_rep() [5/9]

mxArray_base * mxArray::create_rep ( bool  interleaved,
mxClassID  id,
double  val 
)
staticprivate

Definition at line 3340 of file mex.cc.

◆ create_rep() [6/9]

mxArray_base * mxArray::create_rep ( bool  interleaved,
mxClassID  id,
mwSize  m,
mwSize  n,
mwSize  nzmax,
mxComplexity  flag 
)
staticprivate

Definition at line 3376 of file mex.cc.

References m, and n.

◆ create_rep() [7/9]

mxArray_base * mxArray::create_rep ( bool  interleaved,
mxClassID  id,
mwSize  m,
mwSize  n,
mxComplexity  flag,
bool  init 
)
staticprivate

Definition at line 3330 of file mex.cc.

References m, and n.

◆ create_rep() [8/9]

mxArray_base * mxArray::create_rep ( bool  interleaved,
mxClassID  id,
mwSize  ndims,
const mwSize *  dims,
mxComplexity  flag,
bool  init 
)
staticprivate

Definition at line 3310 of file mex.cc.

◆ create_rep() [9/9]

mxArray_base * mxArray::create_rep ( bool  interleaved,
mxClassID  id,
mxLogical  val 
)
staticprivate

Definition at line 3349 of file mex.cc.

◆ dup()

mxArray* mxArray::dup ( void  ) const
inline

◆ get_cell()

mxArray* mxArray::get_cell ( mwIndex  idx) const
inline

Definition at line 489 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by mxGetCell().

◆ get_class_id()

mxClassID mxArray::get_class_id ( void  ) const
inline

Definition at line 476 of file mxarray.h.

References mxArray_base::get_class_id(), and m_rep.

Referenced by mxGetClassID().

◆ get_class_name()

const char* mxArray::get_class_name ( void  ) const
inline

Definition at line 478 of file mxarray.h.

References mxArray_base::get_class_name(), and m_rep.

Referenced by mxGetClassName().

◆ get_complex_doubles()

mxComplexDouble* mxArray::get_complex_doubles ( void  ) const
inline

Definition at line 529 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by octave_complex::as_mxArray(), and mxGetComplexDoubles().

◆ get_complex_singles()

mxComplexSingle* mxArray::get_complex_singles ( void  ) const
inline

Definition at line 532 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by mxGetComplexSingles().

◆ get_data()

◆ get_dimensions()

mwSize* mxArray::get_dimensions ( void  ) const
inline

Definition at line 453 of file mxarray.h.

References mxArray_base::get_dimensions(), and m_rep.

Referenced by mxArray_octave_value::as_mxArray(), and mxGetDimensions().

◆ get_doubles()

mxDouble* mxArray::get_doubles ( void  ) const
inline

Definition at line 499 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by mxGetDoubles().

◆ get_element_size()

std::size_t mxArray::get_element_size ( void  ) const
inline

Definition at line 672 of file mxarray.h.

References mxArray_base::get_element_size(), and m_rep.

Referenced by mxGetElementSize().

◆ get_field_by_number()

mxArray* mxArray::get_field_by_number ( mwIndex  index,
int  key_num 
) const
inline

Definition at line 649 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by mxGetFieldByNumber().

◆ get_field_name_by_number()

const char* mxArray::get_field_name_by_number ( int  key_num) const
inline

Definition at line 658 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by mxGetFieldNameByNumber().

◆ get_field_number()

int mxArray::get_field_number ( const char *  key) const
inline

Definition at line 661 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by mxGetFieldNumber().

◆ get_imag_data()

◆ get_int16s()

mxInt16* mxArray::get_int16s ( void  ) const
inline

Definition at line 508 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by mxGetInt16s().

◆ get_int32s()

mxInt32* mxArray::get_int32s ( void  ) const
inline

Definition at line 511 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by mxGetInt32s().

◆ get_int64s()

mxInt64* mxArray::get_int64s ( void  ) const
inline

Definition at line 514 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by mxGetInt64s().

◆ get_int8s()

mxInt8* mxArray::get_int8s ( void  ) const
inline

Definition at line 505 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by mxGetInt8s().

◆ get_ir()

mwIndex* mxArray::get_ir ( void  ) const
inline

◆ get_jc()

mwIndex* mxArray::get_jc ( void  ) const
inline

◆ get_m()

mwSize mxArray::get_m ( void  ) const
inline

Definition at line 449 of file mxarray.h.

References mxArray_base::get_m(), and m_rep.

Referenced by mxGetM().

◆ get_n()

mwSize mxArray::get_n ( void  ) const
inline

Definition at line 451 of file mxarray.h.

References mxArray_base::get_n(), and m_rep.

Referenced by mxGetN().

◆ get_name()

const char* mxArray::get_name ( void  ) const
inline

Definition at line 472 of file mxarray.h.

References m_name.

Referenced by mexPutVariable().

◆ get_number_of_dimensions()

mwSize mxArray::get_number_of_dimensions ( void  ) const
inline

Definition at line 455 of file mxarray.h.

References mxArray_base::get_number_of_dimensions(), and m_rep.

Referenced by mxGetNumberOfDimensions().

◆ get_number_of_elements()

mwSize mxArray::get_number_of_elements ( void  ) const
inline

Definition at line 465 of file mxarray.h.

References mxArray_base::get_number_of_elements(), and m_rep.

Referenced by isempty(), and mxGetNumberOfElements().

◆ get_number_of_fields()

int mxArray::get_number_of_fields ( void  ) const
inline

Definition at line 655 of file mxarray.h.

References mxArray_base::get_number_of_fields(), and m_rep.

Referenced by mxGetNumberOfFields().

◆ get_nzmax()

mwSize mxArray::get_nzmax ( void  ) const
inline

Definition at line 636 of file mxarray.h.

References mxArray_base::get_nzmax(), and m_rep.

Referenced by mxGetNzmax().

◆ get_property()

mxArray* mxArray::get_property ( mwIndex  idx,
const char *  pname 
) const
inline

Definition at line 480 of file mxarray.h.

References mxArray_base::get_property(), and m_rep.

Referenced by mxGetProperty().

◆ get_scalar()

double mxArray::get_scalar ( void  ) const
inline

Definition at line 495 of file mxarray.h.

References mxArray_base::get_scalar(), and m_rep.

Referenced by mxGetScalar().

◆ get_singles()

mxSingle* mxArray::get_singles ( void  ) const
inline

Definition at line 502 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by mxGetSingles().

◆ get_string()

int mxArray::get_string ( char *  buf,
mwSize  buflen 
) const
inline

Definition at line 664 of file mxarray.h.

References mxArray_base::get_string(), and m_rep.

Referenced by mxGetString().

◆ get_uint16s()

mxUint16* mxArray::get_uint16s ( void  ) const
inline

Definition at line 520 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by mxGetUint16s().

◆ get_uint32s()

mxUint32* mxArray::get_uint32s ( void  ) const
inline

Definition at line 523 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by mxGetUint32s().

◆ get_uint64s()

mxUint64* mxArray::get_uint64s ( void  ) const
inline

Definition at line 526 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by mxGetUint64s().

◆ get_uint8s()

mxUint8* mxArray::get_uint8s ( void  ) const
inline

Definition at line 517 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by mxGetUint8s().

◆ is_char()

int mxArray::is_char ( void  ) const
inline

Definition at line 408 of file mxarray.h.

References mxArray_base::is_char(), and m_rep.

Referenced by mxIsChar().

◆ is_class()

int mxArray::is_class ( const char *  name_arg) const
inline

Definition at line 410 of file mxarray.h.

References mxArray_base::is_class(), and m_rep.

Referenced by mxIsClass().

◆ is_complex()

int mxArray::is_complex ( void  ) const
inline

Definition at line 412 of file mxarray.h.

References mxArray_base::is_complex(), and m_rep.

Referenced by mxIsComplex().

◆ is_double()

int mxArray::is_double ( void  ) const
inline

Definition at line 414 of file mxarray.h.

References mxArray_base::is_double(), and m_rep.

Referenced by mxIsDouble().

◆ is_function_handle()

int mxArray::is_function_handle ( void  ) const
inline

Definition at line 416 of file mxarray.h.

References mxArray_base::is_function_handle(), and m_rep.

Referenced by mxIsFunctionHandle().

◆ is_int16()

int mxArray::is_int16 ( void  ) const
inline

Definition at line 418 of file mxarray.h.

References mxArray_base::is_int16(), and m_rep.

Referenced by mxIsInt16().

◆ is_int32()

int mxArray::is_int32 ( void  ) const
inline

Definition at line 420 of file mxarray.h.

References mxArray_base::is_int32(), and m_rep.

Referenced by mxIsInt32().

◆ is_int64()

int mxArray::is_int64 ( void  ) const
inline

Definition at line 422 of file mxarray.h.

References mxArray_base::is_int64(), and m_rep.

Referenced by mxIsInt64().

◆ is_int8()

int mxArray::is_int8 ( void  ) const
inline

Definition at line 424 of file mxarray.h.

References mxArray_base::is_int8(), and m_rep.

Referenced by mxIsInt8().

◆ is_logical()

int mxArray::is_logical ( void  ) const
inline

Definition at line 426 of file mxarray.h.

References mxArray_base::is_logical(), and m_rep.

Referenced by mxIsLogical().

◆ is_logical_scalar()

int mxArray::is_logical_scalar ( void  ) const
inline

Definition at line 444 of file mxarray.h.

References mxArray_base::is_logical_scalar(), and m_rep.

Referenced by mxIsLogicalScalar().

◆ is_logical_scalar_true()

int mxArray::is_logical_scalar_true ( void  ) const
inline

Definition at line 446 of file mxarray.h.

References mxArray_base::is_logical_scalar_true(), and m_rep.

Referenced by mxIsLogicalScalarTrue().

◆ is_numeric()

int mxArray::is_numeric ( void  ) const
inline

Definition at line 428 of file mxarray.h.

References mxArray_base::is_numeric(), and m_rep.

Referenced by mxIsNumeric().

◆ is_octave_value()

bool mxArray::is_octave_value ( void  ) const
inline

Definition at line 404 of file mxarray.h.

References mxArray_base::is_octave_value(), and m_rep.

◆ is_scalar()

bool mxArray::is_scalar ( void  ) const
inline

Definition at line 470 of file mxarray.h.

References mxArray_base::is_scalar(), and m_rep.

Referenced by mxIsScalar().

◆ is_single()

int mxArray::is_single ( void  ) const
inline

Definition at line 430 of file mxarray.h.

References mxArray_base::is_single(), and m_rep.

Referenced by mxIsSingle().

◆ is_sparse()

int mxArray::is_sparse ( void  ) const
inline

Definition at line 432 of file mxarray.h.

References mxArray_base::is_sparse(), and m_rep.

Referenced by mxIsSparse().

◆ is_struct()

int mxArray::is_struct ( void  ) const
inline

Definition at line 434 of file mxarray.h.

References mxArray_base::is_struct(), and m_rep.

Referenced by mxIsStruct().

◆ is_uint16()

int mxArray::is_uint16 ( void  ) const
inline

Definition at line 436 of file mxarray.h.

References mxArray_base::is_uint16(), and m_rep.

Referenced by mxIsUint16().

◆ is_uint32()

int mxArray::is_uint32 ( void  ) const
inline

Definition at line 438 of file mxarray.h.

References mxArray_base::is_uint32(), and m_rep.

Referenced by mxIsUint32().

◆ is_uint64()

int mxArray::is_uint64 ( void  ) const
inline

Definition at line 440 of file mxarray.h.

References mxArray_base::is_uint64(), and m_rep.

Referenced by mxIsUint64().

◆ is_uint8()

int mxArray::is_uint8 ( void  ) const
inline

Definition at line 442 of file mxarray.h.

References mxArray_base::is_uint8(), and m_rep.

Referenced by mxIsUint8().

◆ iscell()

int mxArray::iscell ( void  ) const
inline

Definition at line 406 of file mxarray.h.

References mxArray_base::iscell(), and m_rep.

Referenced by mxIsCell().

◆ isempty()

int mxArray::isempty ( void  ) const
inline

Definition at line 468 of file mxarray.h.

References get_number_of_elements().

Referenced by mxIsEmpty().

◆ malloc()

◆ maybe_mutate()

void mxArray::maybe_mutate ( void  ) const
private

Definition at line 3386 of file mex.cc.

References mxArray_base::is_octave_value(), m_rep, and mxArray_base::mutate().

◆ mutate()

mxArray* mxArray::mutate ( void  ) const
inline

Definition at line 677 of file mxarray.h.

References m_rep, and mxArray_base::mutate().

◆ mutation_needed()

bool mxArray::mutation_needed ( void  ) const
inline

Definition at line 675 of file mxarray.h.

References m_rep, and mxArray_base::mutation_needed().

◆ operator=()

mxArray& mxArray::operator= ( const mxArray )
delete

◆ remove_field()

void mxArray::remove_field ( int  key_num)
inline

Definition at line 646 of file mxarray.h.

References DO_VOID_MUTABLE_METHOD.

Referenced by mxRemoveField().

◆ set_cell()

void mxArray::set_cell ( mwIndex  idx,
mxArray val 
)
inline

Definition at line 492 of file mxarray.h.

References DO_VOID_MUTABLE_METHOD.

Referenced by mxSetCell().

◆ set_class_name()

void mxArray::set_class_name ( const char *  name_arg)
inline

Definition at line 486 of file mxarray.h.

References DO_VOID_MUTABLE_METHOD.

Referenced by mxArray_octave_value::as_mxArray(), and mxSetClassName().

◆ set_complex_doubles()

int mxArray::set_complex_doubles ( mxComplexDouble *  data)
inline

Definition at line 597 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by mxSetComplexDoubles().

◆ set_complex_singles()

int mxArray::set_complex_singles ( mxComplexSingle *  data)
inline

Definition at line 600 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by mxSetComplexSingles().

◆ set_data()

void mxArray::set_data ( void *  pr)
inline

Definition at line 565 of file mxarray.h.

References DO_VOID_MUTABLE_METHOD.

Referenced by mxSetData(), and mxSetPr().

◆ set_dimensions()

int mxArray::set_dimensions ( mwSize *  dims_arg,
mwSize  ndims_arg 
)
inline

Definition at line 462 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by mxArray_octave_value::as_mxArray(), and mxSetDimensions().

◆ set_doubles()

int mxArray::set_doubles ( mxDouble *  data)
inline

Definition at line 567 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by mxSetDoubles().

◆ set_field_by_number()

void mxArray::set_field_by_number ( mwIndex  index,
int  key_num,
mxArray val 
)
inline

Definition at line 652 of file mxarray.h.

References DO_VOID_MUTABLE_METHOD.

Referenced by mxSetFieldByNumber().

◆ set_imag_data()

void mxArray::set_imag_data ( void *  pi)
inline

Definition at line 630 of file mxarray.h.

References DO_VOID_MUTABLE_METHOD, and pi.

Referenced by mxSetImagData(), and mxSetPi().

◆ set_int16s()

int mxArray::set_int16s ( mxInt16 *  data)
inline

Definition at line 576 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by mxSetInt16s().

◆ set_int32s()

int mxArray::set_int32s ( mxInt32 *  data)
inline

Definition at line 579 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by mxSetInt32s().

◆ set_int64s()

int mxArray::set_int64s ( mxInt64 *  data)
inline

Definition at line 582 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by mxSetInt64s().

◆ set_int8s()

int mxArray::set_int8s ( mxInt8 *  data)
inline

Definition at line 573 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by mxSetInt8s().

◆ set_ir()

void mxArray::set_ir ( mwIndex *  ir)
inline

Definition at line 638 of file mxarray.h.

References DO_VOID_MUTABLE_METHOD.

Referenced by mxSetIr().

◆ set_jc()

void mxArray::set_jc ( mwIndex *  jc)
inline

Definition at line 640 of file mxarray.h.

References DO_VOID_MUTABLE_METHOD.

Referenced by mxSetJc().

◆ set_m()

void mxArray::set_m ( mwSize  m)
inline

Definition at line 458 of file mxarray.h.

References DO_VOID_MUTABLE_METHOD, and m.

Referenced by mxSetM().

◆ set_n()

void mxArray::set_n ( mwSize  n)
inline

Definition at line 460 of file mxarray.h.

References DO_VOID_MUTABLE_METHOD, and n.

Referenced by mxSetN().

◆ set_name()

void mxArray::set_name ( const char *  name)

Definition at line 3281 of file mex.cc.

References m_name, mxFree(), and strsave().

Referenced by dup(), and mexGetVariable().

◆ set_nzmax()

void mxArray::set_nzmax ( mwSize  nzmax)
inline

Definition at line 642 of file mxarray.h.

References DO_VOID_MUTABLE_METHOD.

Referenced by mxSetNzmax().

◆ set_property()

void mxArray::set_property ( mwIndex  idx,
const char *  pname,
const mxArray pval 
)
inline

Definition at line 483 of file mxarray.h.

References m_rep, and mxArray_base::set_property().

Referenced by mxSetProperty().

◆ set_singles()

int mxArray::set_singles ( mxSingle *  data)
inline

Definition at line 570 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by mxSetSingles().

◆ set_uint16s()

int mxArray::set_uint16s ( mxUint16 *  data)
inline

Definition at line 588 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by mxSetUint16s().

◆ set_uint32s()

int mxArray::set_uint32s ( mxUint32 *  data)
inline

Definition at line 591 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by mxSetUint32s().

◆ set_uint64s()

int mxArray::set_uint64s ( mxUint64 *  data)
inline

Definition at line 594 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by mxSetUint64s().

◆ set_uint8s()

int mxArray::set_uint8s ( mxUint8 *  data)
inline

Definition at line 585 of file mxarray.h.

References DO_MUTABLE_METHOD.

Referenced by mxSetUint8s().

◆ strsave()

static char* mxArray::strsave ( const char *  str)
inlinestatic

Member Data Documentation

◆ m_name

char* mxArray::m_name
private

Definition at line 749 of file mxarray.h.

Referenced by ~mxArray(), dup(), get_name(), and set_name().

◆ m_rep


The documentation for this class was generated from the following files: