Qucs-core  0.0.18
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mextrsolver.h
Go to the documentation of this file.
1 #include "mex.h"
2 #include <qucs-core/qucs_interface.h>
3 
4 
5 #ifndef MEXTRSOLVER_H
6 #define MEXTRSOLVER_H
7 
8 // mex interface class
10 {
11  public:
12  mextrsolver();
13  virtual ~mextrsolver();
14 
15  // test method
16  //void debug(void);
17  void printx(void);
18 
19  // the interface methods
20  int prepare_netlist(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]);
21  void init_sync(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]);
22  void init_async(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]);
23  int stepsolve_sync(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]);
24  void acceptstep_sync(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]);
25  int stepsolve_async(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]);
26  void acceptstep_async(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]);
27  void rejectstep_async(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]);
28  int getsolution(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]);
29  int getN(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]);
30  int getM(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]);
31  void getJac(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]);
32  void setecvs(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]);
33  void getiprobe(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]);
34  void getvprobe(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]);
35  void getnodev(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]);
36 
37  private:
38  // the one and only trsolver_interface object, interface to the
39  // qucs transient solver
40  qucs::trsolver_interface qtr;
41 };
42 
43 // function to display messages
44 void mextrsolvermessage(int, const char*, ...);
45 
46 #endif // MEXTRSOLVER_H
qucs::trsolver_interface qtr
Definition: mextrsolver.h:40
void printx(void)
Definition: mextrsolver.cpp:30
int stepsolve_async(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
void getiprobe(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
int stepsolve_sync(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
virtual ~mextrsolver()
Definition: mextrsolver.cpp:25
void acceptstep_sync(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
void mextrsolvermessage(int, const char *,...)
Definition: mextrsolver.cpp:8
int prepare_netlist(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
Definition: mextrsolver.cpp:35
void getJac(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
void getnodev(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
int getsolution(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
void init_sync(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
void init_async(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
void rejectstep_async(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
void getvprobe(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
void acceptstep_async(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
void setecvs(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
int getM(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
int getN(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])