GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
mxarray.h File Reference
#include "octave-config.h"
#include "mxtypes.h"
#include <cstring>
#include <set>
#include "error.h"
#include "ov-mex-fcn.h"

Go to the source code of this file.

Classes

class  mex
 
class  mxArray
 
class  mxArray_base
 

Macros

#define DO_MUTABLE_METHOD(RET_T, METHOD_CALL)
 
#define DO_VOID_MUTABLE_METHOD(METHOD_CALL)
 

Functions

void mexErrMsgTxt_impl (const char *who, const char *s)
 
int mexPutVariable_impl (const char *space, const char *name, const mxArray *ptr)
 
int mexSet_impl (double handle, const char *property, mxArray *val)
 
octave_value_list mx_to_ov_args (int nargin, mxArray *argin[])
 

Macro Definition Documentation

◆ DO_MUTABLE_METHOD

#define DO_MUTABLE_METHOD (   RET_T,
  METHOD_CALL 
)
Value:
RET_T retval = m_rep->METHOD_CALL; \
\
if (m_rep->mutation_needed ()) \
{ \
maybe_mutate (); \
retval = m_rep->METHOD_CALL; \
} \
\
return retval

Definition at line 73 of file mxarray.h.

◆ DO_VOID_MUTABLE_METHOD

#define DO_VOID_MUTABLE_METHOD (   METHOD_CALL)
Value:
m_rep->METHOD_CALL; \
\
if (m_rep->mutation_needed ()) \
{ \
maybe_mutate (); \
m_rep->METHOD_CALL; \
}

Definition at line 84 of file mxarray.h.

Function Documentation

◆ mexErrMsgTxt_impl()

void mexErrMsgTxt_impl ( const char *  who,
const char *  s 
)

Definition at line 245 of file mxarray.cc.

References error(), len, and strlen().

Referenced by mexPutVariable_impl().

◆ mexPutVariable_impl()

int mexPutVariable_impl ( const char *  space,
const char *  name,
const mxArray ptr 
)

◆ mexSet_impl()

int mexSet_impl ( double  handle,
const char *  property,
mxArray val 
)

Definition at line 346 of file mxarray.cc.

References mxArray::as_octave_value().

◆ mx_to_ov_args()

octave_value_list mx_to_ov_args ( int  nargin,
mxArray argin[] 
)

Definition at line 216 of file mxarray.cc.

References mxArray::as_octave_value().