##// END OF EJS Templates
Defines variable pool...
Alexandre Leroux -
r1203:dfb96acdbb6b
parent child
Show More
@@ -19,7 +19,11 namespace {
19 // Aliases //
19 // Aliases //
20 // /////// //
20 // /////// //
21
21
22 using VariableId = int;
23
22 using OperationsPool = std::set<std::shared_ptr<IFuzzingOperation> >;
24 using OperationsPool = std::set<std::shared_ptr<IFuzzingOperation> >;
25 using VariablesPool = std::map<VariableId, std::shared_ptr<Variable> >;
26
23 // ///////// //
27 // ///////// //
24 // Constants //
28 // Constants //
25 // ///////// //
29 // ///////// //
@@ -35,7 +39,12 public:
35 explicit FuzzingTest(VariableController &variableController, Properties properties)
39 explicit FuzzingTest(VariableController &variableController, Properties properties)
36 : m_VariableController{variableController},
40 : m_VariableController{variableController},
37 m_Properties{std::move(properties)},
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 void execute()
50 void execute()
@@ -65,6 +74,7 private:
65
74
66 VariableController &m_VariableController;
75 VariableController &m_VariableController;
67 Properties m_Properties;
76 Properties m_Properties;
77 VariablesPool m_VariablesPool;
68 };
78 };
69
79
70 } // namespace
80 } // namespace
General Comments 0
You need to be logged in to leave comments. Login now