KIDS  ver-0.0.1
KIDS : Kernel Integrated Dynamics Simulator
Loading...
Searching...
No Matches
Model_Hello.h
Go to the documentation of this file.
1#ifndef MODEL_HELLO
2#define MODEL_HELLO
3
4#include "kids/Kernel.h"
5#include "kids/hash_fnv1a.h"
6#include "kids/macro_utils.h"
7
8namespace PROJECT_NS {
9
10class Model_Hello final : public Kernel {
11 public:
12 virtual const std::string getName() { return "Model_Hello"; }
13
14 virtual int getType() const { return utils::hash(FUNCTION_NAME); }
15
16 private:
17 int N, F;
18 double *x, *V, *dV, *ddV;
19 double *m, *w;
20
21 virtual void setInputParam_impl(std::shared_ptr<Param>& PM){};
22
23 virtual void setInputDataSet_impl(std::shared_ptr<DataSet>& DS){};
24
26 std::cout << "Hello\n";
27 return 0;
28 }
29};
30
31}; // namespace PROJECT_NS
32
33#endif // MODEL_HELLO
this file provide Kernel class
this class provides the container and implementation of algorithms
Definition Kernel.h:60
virtual const std::string getName()
Get the name of the kernel.
Definition Model_Hello.h:12
virtual Status & executeKernel_impl(Status &stat)
Virtual function to execute the kernel implementation.
Definition Model_Hello.h:25
virtual void setInputDataSet_impl(std::shared_ptr< DataSet > &DS)
Virtual function to set input data set for the kernel implementation.
Definition Model_Hello.h:23
virtual void setInputParam_impl(std::shared_ptr< Param > &PM)
Virtual function to set input parameters for the kernel implementation.
Definition Model_Hello.h:21
virtual int getType() const
Get the type of the kernel.
Definition Model_Hello.h:14
#define FUNCTION_NAME
Definition macro_utils.h:9
< http://warp.povusers.org/FunctionParser/fparser.html
Definition Context.h:39
constexpr uint32_t hash(const char *str)
Definition hash_fnv1a.h:12