Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes

mxArray_octave_value Class Reference

Inheritance diagram for mxArray_octave_value:
Inheritance graph
[legend]
Collaboration diagram for mxArray_octave_value:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 mxArray_octave_value (const octave_value &ov)
 ~mxArray_octave_value (void)
int add_field (const char *)
chararray_to_string (void) const
mwIndex calc_single_subscript (mwSize nsubs, mwIndex *subs) const
mxArraydup (void) const
mxArrayget_cell (mwIndex) const
mxClassID get_class_id (void) const
const charget_class_name (void) const
void * get_data (void) const
mwSize * get_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
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
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)
octave_value as_octave_value (void) const
void error (const char *msg) const
void invalid_type_error (void) const

Private Member Functions

mxArray_octave_valueoperator= (const mxArray_octave_value &)

Private Attributes

charclass_name
mwSize * dims
mxClassID id
bool mutate_flag
mwSize ndims
octave_value val

Detailed Description

Definition at line 322 of file mex.cc.


Constructor & Destructor Documentation

mxArray_octave_value::mxArray_octave_value ( const octave_value ov  )  [inline]

Definition at line 326 of file mex.cc.

Referenced by dup().

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]

Definition at line 700 of file mex.cc.

References dims, and ndims.


Member Function Documentation

int mxArray_octave_value::add_field ( const char  )  [inline, virtual]

Implements mxArray_base.

Definition at line 563 of file mex.cc.

References request_mutation().

char* mxArray_octave_value::array_to_string ( void   )  const [inline, virtual]
octave_value mxArray_octave_value::as_octave_value ( void   )  const [inline, protected, virtual]

Implements mxArray_base.

Definition at line 698 of file mex.cc.

References val.

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]
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]

Implements mxArray_base.

Definition at line 658 of file mex.cc.

References get_class_id().

mxArray* mxArray_octave_value::get_field_by_number ( mwIndex  ,
int   
) const [inline, virtual]

Implements mxArray_base.

Definition at line 572 of file mex.cc.

References request_mutation().

const char* mxArray_octave_value::get_field_name_by_number ( int   )  const [inline, virtual]

Implements mxArray_base.

Definition at line 586 of file mex.cc.

References request_mutation().

int mxArray_octave_value::get_field_number ( const char  )  const [inline, virtual]

Implements mxArray_base.

Definition at line 592 of file mex.cc.

References request_mutation().

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.

int mxArray_octave_value::get_string ( char buf,
mwSize  buflen 
) const [inline, virtual]
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.

int mxArray_base::is_class ( const char name_arg  )  const [inline, inherited]

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]
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.

Definition at line 346 of file mex.cc.

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]

Reimplemented from mxArray_base.

Definition at line 684 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   )  [inline, virtual]

Implements mxArray_base.

Definition at line 570 of file mex.cc.

References request_mutation().

void mxArray_octave_value::request_mutation ( void   )  const [inline]
void mxArray_octave_value::set_cell ( mwIndex  ,
mxArray  
) [inline, virtual]

Implements mxArray_base.

Definition at line 507 of file mex.cc.

References request_mutation().

void mxArray_octave_value::set_class_name ( const char  )  [inline, virtual]

Implements mxArray_base.

Definition at line 498 of file mex.cc.

References request_mutation().

void mxArray_octave_value::set_data ( void *   )  [inline, virtual]

Implements mxArray_base.

Definition at line 536 of file mex.cc.

References request_mutation().

void mxArray_octave_value::set_dimensions ( mwSize *  ,
mwSize   
) [inline, virtual]

Implements mxArray_base.

Definition at line 437 of file mex.cc.

References request_mutation().

void mxArray_octave_value::set_field_by_number ( mwIndex  ,
int  ,
mxArray  
) [inline, virtual]

Implements mxArray_base.

Definition at line 579 of file mex.cc.

References request_mutation().

void mxArray_octave_value::set_imag_data ( void *   )  [inline, virtual]

Implements mxArray_base.

Definition at line 539 of file mex.cc.

References request_mutation().

void mxArray_octave_value::set_ir ( mwIndex *   )  [inline, virtual]

Implements mxArray_base.

Definition at line 554 of file mex.cc.

References request_mutation().

void mxArray_octave_value::set_jc ( mwIndex *   )  [inline, virtual]

Implements mxArray_base.

Definition at line 557 of file mex.cc.

References request_mutation().

void mxArray_octave_value::set_m ( mwSize   )  [inline, virtual]

Implements mxArray_base.

Definition at line 433 of file mex.cc.

References request_mutation().

void mxArray_octave_value::set_n ( mwSize   )  [inline, virtual]

Implements mxArray_base.

Definition at line 435 of file mex.cc.

References request_mutation().

void mxArray_octave_value::set_nzmax ( mwSize   )  [inline, virtual]

Implements mxArray_base.

Definition at line 560 of file mex.cc.

References request_mutation().


Member Data Documentation

Definition at line 723 of file mex.cc.

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

mwSize* mxArray_octave_value::dims [mutable, private]
mxClassID mxArray_octave_value::id [mutable, private]

Definition at line 722 of file mex.cc.

Referenced by get_class_id().

Definition at line 716 of file mex.cc.

Referenced by mutation_needed(), and request_mutation().

mwSize mxArray_octave_value::ndims [mutable, private]

The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines