roadrunner  2.6.0
Fast simulator for SBML models
rrc_cpp_support.h
Go to the documentation of this file.
1 
42 #ifndef rrc_cpp_supportH
43 #define rrc_cpp_supportH
44 
45 #include <vector>
46 
47 #ifdef _MSC_VER
48 #pragma warning(disable: 26812)
49 #pragma warning(disable: 26451)
50 #endif
51 #include "rr-libstruct/lsMatrix.h"
52 #ifdef _MSC_VER
53 #pragma warning(disable: 26812)
54 #pragma warning(disable: 26451)
55 #endif
56 
57 #include "rrcStringList.h"
58 #include "rrArrayList.h"
59 #include "rrc_types.h"
60 #include "rrc_exporter.h"
61 
62 namespace rr
63 {
64 class RoadRunner;
65 }
66 
67 //When using the rrc_core_api from C++, the following routines are useful
68 namespace rrc
69 {
70 using std::string;
71 using std::vector;
72 
79 C_DECL_SPEC void setError(const string& err);
80 
87 C_DECL_SPEC rr::RoadRunner* castToRoadRunner(RRHandle rrHandle);
88 
89 
97 C_DECL_SPEC bool copyVector(const RRVector* source, vector<double>& dest);
98 
105 C_DECL_SPEC RRVectorPtr createVector(const vector<double>& vec);
106 
113 C_DECL_SPEC RRComplexVectorPtr createVector(const vector<ls::Complex>& vec);
114 
121 C_DECL_SPEC vector<double> createVector(const RRVector* vec);
122 
129 C_DECL_SPEC RRDoubleMatrixPtr createMatrix(const ls::DoubleMatrix* mat);
130 
137 C_DECL_SPEC ls::DoubleMatrix* createMatrix(const RRDoubleMatrixPtr mat);
138 
139 
146 C_DECL_SPEC RRComplexMatrixPtr createMatrix(const ls::ComplexMatrix* mat);
147 
148 //Lists and arrays
155 C_DECL_SPEC RRStringArrayPtr createList(const rrc::StringList& list);
156 
163 C_DECL_SPEC RRListPtr createArrayList(const ArrayList& list);
164 
165 
173 C_DECL_SPEC RRCDataPtr createRRCData(const rr::RoadRunner&);
174 
175 }
176 #endif
177 
178 
The main RoadRunner class.
Definition: rrRoadRunner.h:59
Definition: rrStringList.h:19
C_DECL_SPEC RRVectorPtr rrcCallConv createVector(int size)
Create a new vector with a given size.
roadRunner C wrappers 2012
roadRunner C wrappers 2012
void * RRHandle
Void pointer to a RoadRunner instance.
Definition: rrc_types.h:50
Structure for the result type from the simulate calls. The client is responsible for freeing the RRCD...
Definition: rrc_types.h:111
Structure for a simple complex Matrix type.
Definition: rrc_types.h:101
Structure for a simple complex Vector type.
Definition: rrc_types.h:92
Structure for a simple double Matrix type.
Definition: rrc_types.h:74
A list type, stores int, double, strings and lists.
Definition: rrc_types.h:148
Structure for a simple vector of strings.
Definition: rrc_types.h:66
Structure for a simple vector of doubles.
Definition: rrc_types.h:58