GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
mxarray.cc File Reference
#include <cstdarg>
#include <cstdlib>
#include <cstring>
#include <cctype>
#include <limits>
#include <map>
#include <set>
#include <string>
#include "f77-fcn.h"
#include "oct-locbuf.h"
#include "quit.h"
#include "Cell.h"
#include "error.h"
#include "interpreter-private.h"
#include "interpreter.h"
#include "mxarray.h"
#include "oct-map.h"
#include "ovl.h"
#include "ov.h"
#include "ov-classdef.h"
#include "ov-mex-fcn.h"
#include "ov-usr-fcn.h"
#include "pager.h"
#include "unwind-prot.h"
#include "utils.h"
#include "variables.h"
#include "graphics.h"

Go to the source code of this file.

Macros

#define CONST_MUTATION_METHOD(RET_TYPE, FCN_NAME, ARG_LIST, RET_VAL)    RET_TYPE FCN_NAME ARG_LIST const { request_mutation (); return RET_VAL; }
 
#define CONST_VOID_MUTATION_METHOD(FCN_NAME, ARG_LIST)    void FCN_NAME ARG_LIST const { request_mutation (); }
 
#define GET_DATA_METHOD(RT, FCN_NAME, ID, COMPLEXITY)    RT * FCN_NAME () const { return get_data<RT> (ID, COMPLEXITY); }
 
#define MUTATION_METHOD(RET_TYPE, FCN_NAME, ARG_LIST, RET_VAL)    RET_TYPE FCN_NAME ARG_LIST { request_mutation (); return RET_VAL; }
 
#define VOID_MUTATION_METHOD(FCN_NAME, ARG_LIST)    void FCN_NAME ARG_LIST { request_mutation (); }
 

Typedefs

typedef void(* cmex_fptr) (int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
 
typedef F77_RET_T(* fmex_fptr) (F77_INT &nlhs, mxArray **plhs, F77_INT &nrhs, mxArray **prhs)
 

Functions

octave_value_list call_mex (octave_mex_function &mex_fcn, const octave_value_list &args, int nargout_arg)
 
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[])
 

Variables

mexmex_context = nullptr
 

Macro Definition Documentation

◆ CONST_MUTATION_METHOD

#define CONST_MUTATION_METHOD (   RET_TYPE,
  FCN_NAME,
  ARG_LIST,
  RET_VAL 
)     RET_TYPE FCN_NAME ARG_LIST const { request_mutation (); return RET_VAL; }

Definition at line 430 of file mxarray.cc.

◆ CONST_VOID_MUTATION_METHOD

#define CONST_VOID_MUTATION_METHOD (   FCN_NAME,
  ARG_LIST 
)     void FCN_NAME ARG_LIST const { request_mutation (); }

Definition at line 424 of file mxarray.cc.

◆ GET_DATA_METHOD

#define GET_DATA_METHOD (   RT,
  FCN_NAME,
  ID,
  COMPLEXITY 
)     RT * FCN_NAME () const { return get_data<RT> (ID, COMPLEXITY); }

Definition at line 433 of file mxarray.cc.

◆ MUTATION_METHOD

#define MUTATION_METHOD (   RET_TYPE,
  FCN_NAME,
  ARG_LIST,
  RET_VAL 
)     RET_TYPE FCN_NAME ARG_LIST { request_mutation (); return RET_VAL; }

Definition at line 427 of file mxarray.cc.

◆ VOID_MUTATION_METHOD

#define VOID_MUTATION_METHOD (   FCN_NAME,
  ARG_LIST 
)     void FCN_NAME ARG_LIST { request_mutation (); }

Definition at line 421 of file mxarray.cc.

Typedef Documentation

◆ cmex_fptr

typedef void(* cmex_fptr) (int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])

Definition at line 3453 of file mxarray.cc.

◆ fmex_fptr

typedef F77_RET_T(* fmex_fptr) (F77_INT &nlhs, mxArray **plhs, F77_INT &nrhs, mxArray **prhs)

Definition at line 3455 of file mxarray.cc.

Function Documentation

◆ call_mex()

◆ 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().

Variable Documentation

◆ mex_context

mex* mex_context = nullptr

Definition at line 3359 of file mxarray.cc.

Referenced by call_mex(), mxArray::calloc(), and mxArray::malloc().