GEGELATI

Loading...
Searching...
No Matches
tpgAbstractEngine.h
1
36#ifndef TPG_ABSTRACT_ENGINE_H
37#define TPG_ABSTRACT_ENGINE_H
38
39#include "program/program.h"
40#include "tpg/tpgGraph.h"
41
42namespace TPG {
48 class TPGAbstractEngine
49 {
50
51 protected:
56 const TPG::TPGGraph& tpg;
57
61 std::set<uint64_t> programID;
62
70 uint64_t nbActions;
71
79 TPGAbstractEngine(const TPG::TPGGraph& tpg) : tpg{tpg}, nbActions{0} {};
80
81 public:
90 bool programIDIsNew(const uint64_t& progID);
91 };
92} // namespace TPG
93#endif // TPG_ABSTRACT_ENGINE_H
TPG::TPGAbstractEngine
Abstract Class in charge of managing maps to give a unique ID for vertex and a program of a TPGGraph.
Definition tpgAbstractEngine.h:49
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::TPGAbstractEngine::nbActions
uint64_t nbActions
Integer number used during export to associate a unique integer identifier to each TPGAction.
Definition tpgAbstractEngine.h:70
TPG::TPGAbstractEngine::programIDIsNew
bool programIDIsNew(const uint64_t &progID)
Method to find if the given Program is already in the programID set.
Definition tpgAbstractEngine.cpp:38
TPG::TPGAbstractEngine::programID
std::set< uint64_t > programID
Set of all program ID.
Definition tpgAbstractEngine.h:61
TPG::TPGAbstractEngine::TPGAbstractEngine
TPGAbstractEngine(const TPG::TPGGraph &tpg)
Constructor for the abstract engine.
Definition tpgAbstractEngine.h:79
TPG::TPGGraph
Class for storing a Tangled-Program-Graph.
Definition tpgGraph.h:58
TPG
Definition executionStats.h:44