#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 | |
mex * | mex_context = nullptr |
#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.
#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.
#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.
#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.
#define VOID_MUTATION_METHOD | ( | FCN_NAME, | |
ARG_LIST | |||
) | void FCN_NAME ARG_LIST { request_mutation (); } |
Definition at line 421 of file mxarray.cc.
Definition at line 3453 of file mxarray.cc.
Definition at line 3455 of file mxarray.cc.
octave_value_list call_mex | ( | octave_mex_function & | mex_fcn, |
const octave_value_list & | args, | ||
int | nargout_arg | ||
) |
Definition at line 3462 of file mxarray.cc.
References mxArray::as_octave_value(), octave_mex_function::is_fmex(), octave_value_list::length(), mex::make_value(), mex_context, octave_mex_function::mex_fcn_ptr(), OCTAVE_LOCAL_BUFFER, and octave_value_list::resize().
Referenced by tree_evaluator::execute_mex_function().
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().
Definition at line 268 of file mxarray.cc.
References mxArray::as_octave_value(), mxArray::get_name(), mexErrMsgTxt_impl(), and strcmp().
Definition at line 346 of file mxarray.cc.
References mxArray::as_octave_value().
octave_value_list mx_to_ov_args | ( | int | nargin, |
mxArray * | argin[] | ||
) |
Definition at line 216 of file mxarray.cc.
References mxArray::as_octave_value().
mex* mex_context = nullptr |
Definition at line 3359 of file mxarray.cc.
Referenced by call_mex(), mxArray::calloc(), and mxArray::malloc().