GEGELATI

Loading...
Searching...
No Matches
tpgSwitchGenerationEngine.h
1
40#ifdef CODE_GENERATION
41
42#ifndef TPG_SWITCH_GENERATION_ENGINE_H
43#define TPG_SWITCH_GENERATION_ENGINE_H
44#include "codeGen/tpgGenerationEngine.h"
45
46namespace CodeGen {
54 class TPGSwitchGenerationEngine : public CodeGen::TPGGenerationEngine
55 {
56 protected:
63 virtual void initTpgFile();
64
73 virtual void initHeaderFile();
74
81 virtual void initActivationFunction();
82
83 public:
96 TPGSwitchGenerationEngine(const std::string& filename,
97 const TPG::TPGGraph& tpg,
98 const std::string& path = "./")
99 : TPGGenerationEngine(filename, tpg, path){};
100
106 // ~TPGSwitchGenerationEngine() : ~TPGGenerationEngine() {};
107
115 virtual void generateTPGGraph();
116
117 protected:
131 virtual void generateEdge(const TPG::TPGEdge& edge);
132
143 virtual void generateTeam(const TPG::TPGTeam& team);
144
155 virtual void generateAction(const TPG::TPGAction& action);
156
163 std::string vertexName(const TPG::TPGVertex& v);
164 };
165} // namespace CodeGen
166
167#endif // TPG_SWITCH_GENERATION_ENGINE_H
168
169#endif // CODE_GENERATION
CodeGen::TPGGenerationEngine
Class in charge of generating the C code of a TPGGraph.
Definition tpgGenerationEngine.h:70
CodeGen::TPGSwitchGenerationEngine
Class in charge of generating the C code of a TPGGraph.
Definition tpgSwitchGenerationEngine.h:55
CodeGen::TPGSwitchGenerationEngine::generateTeam
virtual void generateTeam(const TPG::TPGTeam &team)
Method for generating the code for a team of the graph.
Definition tpgSwitchGenerationEngine.cpp:67
CodeGen::TPGSwitchGenerationEngine::generateTPGGraph
virtual void generateTPGGraph()
destructor of the class.
Definition tpgSwitchGenerationEngine.cpp:142
CodeGen::TPGSwitchGenerationEngine::generateAction
virtual void generateAction(const TPG::TPGAction &action)
Method for generating a action of the graph.
Definition tpgSwitchGenerationEngine.cpp:104
CodeGen::TPGSwitchGenerationEngine::initTpgFile
virtual void initTpgFile()
function printing generic code in the main file.
Definition tpgSwitchGenerationEngine.cpp:187
CodeGen::TPGSwitchGenerationEngine::vertexName
std::string vertexName(const TPG::TPGVertex &v)
Generate function name depending on the vertex type.
Definition tpgSwitchGenerationEngine.cpp:253
CodeGen::TPGSwitchGenerationEngine::initActivationFunction
virtual void initActivationFunction()
function printing activation function code in the C files.
Definition tpgSwitchGenerationEngine.cpp:221
CodeGen::TPGSwitchGenerationEngine::initHeaderFile
virtual void initHeaderFile()
function printing generic code declaration in the main file header.
Definition tpgSwitchGenerationEngine.cpp:214
CodeGen::TPGSwitchGenerationEngine::TPGSwitchGenerationEngine
TPGSwitchGenerationEngine(const std::string &filename, const TPG::TPGGraph &tpg, const std::string &path="./")
Main constructor of the class.
Definition tpgSwitchGenerationEngine.h:96
CodeGen::TPGSwitchGenerationEngine::generateEdge
virtual void generateEdge(const TPG::TPGEdge &edge)
Method for generating the code for an edge of the graph.
Definition tpgSwitchGenerationEngine.cpp:43
TPG::TPGAbstractEngine::tpg
const TPG::TPGGraph & tpg
Reference to the TPGGraph whose content will be used to fill the maps.
Definition tpgAbstractEngine.h:56
TPG::TPGAction
Class representing an Action of a TPGGraph.
Definition tpgAction.h:55
TPG::TPGEdge
Class representing edges of the Tangled Program Graphs.
Definition tpgEdge.h:54
TPG::TPGGraph
Class for storing a Tangled-Program-Graph.
Definition tpgGraph.h:58
TPG::TPGTeam
Definition tpgTeam.h:49
TPG::TPGVertex
Abstract class representing the vertices of a TPGGraph.
Definition tpgVertex.h:55
CodeGen
Definition programGenerationEngine.h:49