GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
mxArray_octave_value Class Reference
Inheritance diagram for mxArray_octave_value:
Inheritance graph
[legend]
Collaboration diagram for mxArray_octave_value:
Collaboration graph
[legend]

Public Member Functions

 mxArray_octave_value (const octave_value &ov)
 
 ~mxArray_octave_value (void)
 
int add_field (const char *)
 
chararray_to_string (void) const
 
mxArrayas_mxArray (void) const
 
octave_value as_octave_value (void) const
 
mwIndex calc_single_subscript (mwSize nsubs, mwIndex *subs) const
 
mxArray_basedup (void) const
 
mxArrayget_cell (mwIndex) const
 
mxClassID get_class_id (void) const
 
const charget_class_name (void) const
 
void * get_data (void) const
 
mwSizeget_dimensions (void) const
 
size_t get_element_size (void) const
 
mxArrayget_field_by_number (mwIndex, int) const
 
const charget_field_name_by_number (int) const
 
int get_field_number (const char *) const
 
void * get_imag_data (void) const
 
mwIndexget_ir (void) const
 
mwIndexget_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
 
virtual int is_class (const char *name_arg) const
 
virtual 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
 
virtual int is_logical_scalar (void) const
 
virtual 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
 
mxArraymutate (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)
 
void error (const char *msg) const
 
void error (const char *msg) const
 
void invalid_type_error (void) const
 
void invalid_type_error (void) const
 

Private Member Functions

mxArray_octave_valueoperator= (const mxArray_octave_value &)
 

Private Attributes

charclass_name
 
mwSizedims
 
mxClassID id
 
bool mutate_flag
 
mwSize ndims
 
octave_value val
 

Detailed Description

Definition at line 159 of file mex.cc.

Constructor & Destructor Documentation

mxArray_octave_value::mxArray_octave_value ( const octave_value ov)
inline

Definition at line 163 of file mex.cc.

Referenced by dup().

mxArray_octave_value::~mxArray_octave_value ( void  )
inline

Definition at line 206 of file mex.cc.

References class_name, dims, and mxFree().

mxArray_octave_value::mxArray_octave_value ( const mxArray_octave_value arg)
inlineprotected

Definition at line 567 of file mex.cc.

References dims, and ndims.

Member Function Documentation

int mxArray_octave_value::add_field ( const char )
inlinevirtual

Implements mxArray_base.

Definition at line 430 of file mex.cc.

References request_mutation().

char* mxArray_octave_value::array_to_string ( void  ) const
inlinevirtual
mxArray* mxArray_octave_value::as_mxArray ( void  ) const
inlinevirtual
octave_value mxArray_octave_value::as_octave_value ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 563 of file mex.cc.

References val.

mwIndex mxArray_octave_value::calc_single_subscript ( mwSize  nsubs,
mwIndex subs 
) const
inlinevirtual

Implements mxArray_base.

Definition at line 517 of file mex.cc.

References calc_single_subscript_internal(), dims, get_dimensions(), and ndims.

mxArray_base* mxArray_octave_value::dup ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 167 of file mex.cc.

References mxArray_octave_value().

void mxArray_base::error ( const char msg) const
protectedinherited
void mxArray_base::error ( const char msg) const
protectedinherited
mxArray* mxArray_octave_value::get_cell ( mwIndex  ) const
inlinevirtual

Reimplemented from mxArray_base.

Definition at line 367 of file mex.cc.

References request_mutation().

mxClassID mxArray_octave_value::get_class_id ( void  ) const
inlinevirtual
const char* mxArray_octave_value::get_class_name ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 353 of file mex.cc.

References class_name, octave_value::class_name(), mxArray::strsave(), and val.

void* mxArray_octave_value::get_data ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 378 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
inlinevirtual
size_t mxArray_octave_value::get_element_size ( void  ) const
inlinevirtual
mxArray* mxArray_octave_value::get_field_by_number ( mwIndex  ,
int   
) const
inlinevirtual

Implements mxArray_base.

Definition at line 439 of file mex.cc.

References request_mutation().

const char* mxArray_octave_value::get_field_name_by_number ( int  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 454 of file mex.cc.

References request_mutation().

int mxArray_octave_value::get_field_number ( const char ) const
inlinevirtual

Implements mxArray_base.

Definition at line 460 of file mex.cc.

References request_mutation().

void* mxArray_octave_value::get_imag_data ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 390 of file mex.cc.

References is_numeric(), is_real_type(), and request_mutation().

mwIndex* mxArray_octave_value::get_ir ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 408 of file mex.cc.

References maybe_mark_foreign(), octave_value::mex_get_ir(), and val.

mwIndex* mxArray_octave_value::get_jc ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 413 of file mex.cc.

References maybe_mark_foreign(), octave_value::mex_get_jc(), and val.

mwSize mxArray_octave_value::get_m ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 259 of file mex.cc.

References octave_value::rows(), and val.

mwSize mxArray_octave_value::get_n ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 261 of file mex.cc.

References dims, get_dimensions(), and ndims.

mwSize mxArray_octave_value::get_number_of_dimensions ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 292 of file mex.cc.

References get_dimensions(), and ndims.

mwSize mxArray_octave_value::get_number_of_elements ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 309 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
inlinevirtual

Implements mxArray_base.

Definition at line 452 of file mex.cc.

References octave_value::nfields(), and val.

mwSize mxArray_octave_value::get_nzmax ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 418 of file mex.cc.

References octave_value::nzmax(), and val.

double mxArray_octave_value::get_scalar ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 376 of file mex.cc.

References octave_value::scalar_value(), and val.

int mxArray_octave_value::get_string ( char buf,
mwSize  buflen 
) const
inlinevirtual
void mxArray_base::invalid_type_error ( void  ) const
inlineprotectedinherited

Definition at line 282 of file mxarray.h.

References mxArray_base::error().

Referenced by mxArray_base::get_cell().

void mxArray_base::invalid_type_error ( void  ) const
inlineprotectedinherited

Definition at line 282 of file mxarray.in.h.

References mxArray_base::error().

int mxArray_octave_value::is_cell ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 214 of file mex.cc.

References octave_value::is_cell(), and val.

int mxArray_octave_value::is_char ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 216 of file mex.cc.

References octave_value::is_string(), and val.

virtual int mxArray_base::is_class ( const char name_arg) const
inlinevirtualinherited

Definition at line 144 of file mxarray.h.

References mxArray_base::get_class_name().

Referenced by mxArray::is_class().

virtual int mxArray_base::is_class ( const char name_arg) const
inlinevirtualinherited

Definition at line 144 of file mxarray.in.h.

References mxArray_base::get_class_name().

int mxArray_octave_value::is_complex ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 218 of file mex.cc.

References octave_value::is_complex_type(), and val.

int mxArray_octave_value::is_double ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 220 of file mex.cc.

References octave_value::is_double_type(), and val.

int mxArray_octave_value::is_empty ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 311 of file mex.cc.

References octave_value::is_empty(), and val.

int mxArray_octave_value::is_function_handle ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 222 of file mex.cc.

References octave_value::is_function_handle(), and val.

int mxArray_octave_value::is_int16 ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 224 of file mex.cc.

References octave_value::is_int16_type(), and val.

int mxArray_octave_value::is_int32 ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 226 of file mex.cc.

References octave_value::is_int32_type(), and val.

int mxArray_octave_value::is_int64 ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 228 of file mex.cc.

References octave_value::is_int64_type(), and val.

int mxArray_octave_value::is_int8 ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 230 of file mex.cc.

References octave_value::is_int8_type(), and val.

int mxArray_octave_value::is_logical ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 232 of file mex.cc.

References octave_value::is_bool_type(), and val.

virtual int mxArray_base::is_logical_scalar ( void  ) const
inlinevirtualinherited
virtual int mxArray_base::is_logical_scalar ( void  ) const
inlinevirtualinherited
int mxArray_octave_value::is_logical_scalar_true ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 254 of file mex.cc.

References mxArray_base::is_logical_scalar(), octave_value::is_true(), and val.

int mxArray_octave_value::is_numeric ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 234 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
inlinevirtual

Reimplemented from mxArray_base.

Definition at line 212 of file mex.cc.

int mxArray_octave_value::is_range ( void  ) const
inline

Definition at line 250 of file mex.cc.

References octave_value::is_range(), and val.

int mxArray_octave_value::is_real_type ( void  ) const
inline

Definition at line 252 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
inlinevirtual

Implements mxArray_base.

Definition at line 236 of file mex.cc.

References octave_value::is_single_type(), and val.

int mxArray_octave_value::is_sparse ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 238 of file mex.cc.

References octave_value::is_sparse_type(), and val.

int mxArray_octave_value::is_struct ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 240 of file mex.cc.

References octave_value::is_map(), and val.

int mxArray_octave_value::is_uint16 ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 242 of file mex.cc.

References octave_value::is_uint16_type(), and val.

int mxArray_octave_value::is_uint32 ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 244 of file mex.cc.

References octave_value::is_uint32_type(), and val.

int mxArray_octave_value::is_uint64 ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 246 of file mex.cc.

References octave_value::is_uint64_type(), and val.

int mxArray_octave_value::is_uint8 ( void  ) const
inlinevirtual

Implements mxArray_base.

Definition at line 248 of file mex.cc.

References octave_value::is_uint8_type(), and val.

mxArray* mxArray_octave_value::mutate ( void  ) const
inlinevirtual

Reimplemented from mxArray_base.

Definition at line 561 of file mex.cc.

References as_mxArray().

bool mxArray_octave_value::mutation_needed ( void  ) const
inlinevirtual

Reimplemented from mxArray_base.

Definition at line 551 of file mex.cc.

References mutate_flag.

mxArray_octave_value& mxArray_octave_value::operator= ( const mxArray_octave_value )
private
void mxArray_octave_value::remove_field ( int  )
inlinevirtual

Implements mxArray_base.

Definition at line 437 of file mex.cc.

References request_mutation().

void mxArray_octave_value::request_mutation ( void  ) const
inline
void mxArray_octave_value::set_cell ( mwIndex  ,
mxArray  
)
inlinevirtual

Implements mxArray_base.

Definition at line 374 of file mex.cc.

References request_mutation().

void mxArray_octave_value::set_class_name ( const char )
inlinevirtual

Implements mxArray_base.

Definition at line 365 of file mex.cc.

References request_mutation().

void mxArray_octave_value::set_data ( void *  )
inlinevirtual

Implements mxArray_base.

Definition at line 403 of file mex.cc.

References request_mutation().

void mxArray_octave_value::set_dimensions ( mwSize ,
mwSize   
)
inlinevirtual

Implements mxArray_base.

Definition at line 304 of file mex.cc.

References request_mutation().

void mxArray_octave_value::set_field_by_number ( mwIndex  ,
int  ,
mxArray  
)
inlinevirtual

Implements mxArray_base.

Definition at line 446 of file mex.cc.

References request_mutation().

void mxArray_octave_value::set_imag_data ( void *  )
inlinevirtual

Implements mxArray_base.

Definition at line 406 of file mex.cc.

References request_mutation().

void mxArray_octave_value::set_ir ( mwIndex )
inlinevirtual

Implements mxArray_base.

Definition at line 421 of file mex.cc.

References request_mutation().

void mxArray_octave_value::set_jc ( mwIndex )
inlinevirtual

Implements mxArray_base.

Definition at line 424 of file mex.cc.

References request_mutation().

void mxArray_octave_value::set_m ( mwSize  )
inlinevirtual

Implements mxArray_base.

Definition at line 300 of file mex.cc.

References request_mutation().

void mxArray_octave_value::set_n ( mwSize  )
inlinevirtual

Implements mxArray_base.

Definition at line 302 of file mex.cc.

References request_mutation().

void mxArray_octave_value::set_nzmax ( mwSize  )
inlinevirtual

Implements mxArray_base.

Definition at line 427 of file mex.cc.

References request_mutation().

Member Data Documentation

char* mxArray_octave_value::class_name
mutableprivate

Definition at line 593 of file mex.cc.

Referenced by as_mxArray(), get_class_name(), and ~mxArray_octave_value().

mwSize* mxArray_octave_value::dims
mutableprivate
mxClassID mxArray_octave_value::id
mutableprivate

Definition at line 592 of file mex.cc.

Referenced by get_class_id().

bool mxArray_octave_value::mutate_flag
mutableprivate

Definition at line 586 of file mex.cc.

Referenced by mutation_needed(), and request_mutation().

mwSize mxArray_octave_value::ndims
mutableprivate
octave_value mxArray_octave_value::val
private

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