##// END OF EJS Templates
Defines variable pool...
Alexandre Leroux -
r1203:dfb96acdbb6b
parent child
Show More
@@ -19,7 +19,11 namespace {
19 19 // Aliases //
20 20 // /////// //
21 21
22 using VariableId = int;
23
22 24 using OperationsPool = std::set<std::shared_ptr<IFuzzingOperation> >;
25 using VariablesPool = std::map<VariableId, std::shared_ptr<Variable> >;
26
23 27 // ///////// //
24 28 // Constants //
25 29 // ///////// //
@@ -35,7 +39,12 public:
35 39 explicit FuzzingTest(VariableController &variableController, Properties properties)
36 40 : m_VariableController{variableController},
37 41 m_Properties{std::move(properties)},
42 m_VariablesPool{}
38 43 {
44 // Inits variables pool: at init, all variables are null
45 for (auto variableId = 0; variableId < nbMaxVariables(); ++variableId) {
46 m_VariablesPool[variableId] = nullptr;
47 }
39 48 }
40 49
41 50 void execute()
@@ -65,6 +74,7 private:
65 74
66 75 VariableController &m_VariableController;
67 76 Properties m_Properties;
77 VariablesPool m_VariablesPool;
68 78 };
69 79
70 80 } // namespace
General Comments 0
You need to be logged in to leave comments. Login now