KIDS  ver-0.0.1
KIDS : Kernel Integrated Dynamics Simulator
Loading...
Searching...
No Matches
VariableDescriptor.h
Go to the documentation of this file.
1
29#ifndef KIDS_VariableDescriptor_H
30#define KIDS_VariableDescriptor_H
31
32#include "kids/DataSet.h"
33#include "kids/Einsum.h"
34
35namespace PROJECT_NS {
36
41 public:
49 VariableDescriptor(const std::string& token_string);
50
56 void referIn(std::shared_ptr<DataSet>& DS);
57
63 void defineIn(std::shared_ptr<DataSet>& DS, kids_dtype data_type, const std::vector<std::size_t>& cxxshape);
64
65 private:
66 friend class RuleEvaluator;
67 friend class RuleSet;
68 friend class Kernel;
69
70 std::string tokenString;
71 std::string name;
72 std::string field;
73 std::string index;
74 std::string type;
75 std::string time;
79};
80
81}; // namespace PROJECT_NS
82
83#endif // KIDS_VariableDescriptor_H
Declaration of the DataSet class and related classes.
this file provides einsum operation
this class provides the container and implementation of algorithms
Definition Kernel.h:60
Represents a handler for input/output operations related to expressions.
Definition RuleSet.h:48
Shape class provide information about of a Tensor's shape.
Definition Shape.h:50
< http://warp.povusers.org/FunctionParser/fparser.html
Definition Context.h:39
Represents a rule for evaluating an expression.
Represents a variable token in an expression rule.
std::string name
The name of the variable.
void referIn(std::shared_ptr< DataSet > &DS)
Associates the variable with data in the DataSet.
std::string time
The time of the variable.
kids_dtype dataType
The data type of the variable.
VariableDescriptor(const std::string &token_string)
Constructs a VariableDescriptor object.
std::string tokenString
The input token string.
void defineIn(std::shared_ptr< DataSet > &DS, kids_dtype data_type, const std::vector< std::size_t > &cxxshape)
Define variable with data in the DataSet.
Shape * shape
Pointer to the shape of the variable.
std::string field
The field of the variable.
void * dataPointer
Pointer to the data of the variable.
std::string type
The type of the variable.
std::string index
The index of the variable.