42#ifndef TPG_SWITCH_GENERATION_ENGINE_H
43#define TPG_SWITCH_GENERATION_ENGINE_H
44#include "codeGen/tpgGenerationEngine.h"
98 const std::string& path =
"./")
Class in charge of generating the C code of a TPGGraph.
Definition tpgGenerationEngine.h:70
Class in charge of generating the C code of a TPGGraph.
Definition tpgSwitchGenerationEngine.h:55
virtual void generateTeam(const TPG::TPGTeam &team)
Method for generating the code for a team of the graph.
Definition tpgSwitchGenerationEngine.cpp:67
virtual void generateTPGGraph()
destructor of the class.
Definition tpgSwitchGenerationEngine.cpp:142
virtual void generateAction(const TPG::TPGAction &action)
Method for generating a action of the graph.
Definition tpgSwitchGenerationEngine.cpp:104
virtual void initTpgFile()
function printing generic code in the main file.
Definition tpgSwitchGenerationEngine.cpp:187
std::string vertexName(const TPG::TPGVertex &v)
Generate function name depending on the vertex type.
Definition tpgSwitchGenerationEngine.cpp:253
virtual void initActivationFunction()
function printing activation function code in the C files.
Definition tpgSwitchGenerationEngine.cpp:221
virtual void initHeaderFile()
function printing generic code declaration in the main file header.
Definition tpgSwitchGenerationEngine.cpp:214
TPGSwitchGenerationEngine(const std::string &filename, const TPG::TPGGraph &tpg, const std::string &path="./")
Main constructor of the class.
Definition tpgSwitchGenerationEngine.h:96
virtual void generateEdge(const TPG::TPGEdge &edge)
Method for generating the code for an edge of the graph.
Definition tpgSwitchGenerationEngine.cpp:43
const TPG::TPGGraph & tpg
Reference to the TPGGraph whose content will be used to fill the maps.
Definition tpgAbstractEngine.h:57
Class representing an Action of a TPGGraph.
Definition tpgAction.h:55
Class representing edges of the Tangled Program Graphs.
Definition tpgEdge.h:54
Class for storing a Tangled-Program-Graph.
Definition tpgGraph.h:58
Abstract class representing the vertices of a TPGGraph.
Definition tpgVertex.h:55
Definition programGenerationEngine.h:49