KIDS  ver-0.0.1
KIDS : Kernel Integrated Dynamics Simulator
Loading...
Searching...
No Matches
Result.h
Go to the documentation of this file.
1
29#ifndef KIDS_RESULT_H
30#define KIDS_RESULT_H
31
32#include <tuple>
33#include <vector>
34
35#include "kids/Types.h"
36
37namespace PROJECT_NS {
38class Result final {
39 public:
40 using DataType = std::vector<std::tuple<std::string, // key
41 void*, // data pointer
42 kids_dtype, // data type
43 std::size_t, // size of data
44 std::size_t // stride of data
45 >>;
46 using HeaderType = std::vector<std::string>;
47 using DataframeType = std::vector<std::vector<kids_real>>;
48
49 // std::pair<HeaderType, DataframeType>
50 // int asDataframe() { return 0; }
51 //
52
53 Result(){};
54
55 DataType& data() { return _data; }
56
57 private:
58 friend class RuleSet;
60};
61
62}; // namespace PROJECT_NS
63
64#endif // KIDS_RESULT_H
definition of types in the project and some utiles for types
DataType _data
Definition Result.h:59
std::vector< std::string > HeaderType
Definition Result.h:46
std::vector< std::vector< kids_real > > DataframeType
Definition Result.h:47
std::vector< std::tuple< std::string, void *, kids_dtype, std::size_t, std::size_t > > DataType
Definition Result.h:40
DataType & data()
Definition Result.h:55
Represents a handler for input/output operations related to expressions.
Definition RuleSet.h:48
< http://warp.povusers.org/FunctionParser/fparser.html
Definition Context.h:39