QuISP
Loading...
Searching...
No Matches
RuntimeManager.h
Go to the documentation of this file.
1#pragma once
2
3#include "Runtime.h"
4
5namespace quisp::runtime {
7 public:
8 RuntimeManager(std::unique_ptr<Runtime::ICallBack>&& callback);
9 void acceptRuleSet(const RuleSet&);
10 Runtime* findById(unsigned long long ruleset_id);
11 void exec();
12 std::vector<Runtime>::iterator begin();
13 std::vector<Runtime>::iterator end();
14 std::vector<Runtime>::reference at(size_t);
15 size_t size() const;
16
17 protected:
18 std::vector<Runtime> runtimes = {};
19 std::unique_ptr<Runtime::ICallBack> callback;
20};
21} // namespace quisp::runtime
The RuleSet.
Definition RuleSet.h:80
Runtime class is responsible for executing the given RuleSet and the states' management.
Definition Runtime.h:48
Definition RuntimeManager.h:6
std::vector< Runtime >::iterator end()
Definition RuntimeManager.cc:31
std::vector< Runtime >::reference at(size_t)
Definition RuntimeManager.cc:32
std::vector< Runtime > runtimes
Definition RuntimeManager.h:18
std::vector< Runtime >::iterator begin()
Definition RuntimeManager.cc:30
std::unique_ptr< Runtime::ICallBack > callback
Definition RuntimeManager.h:19
void exec()
Definition RuntimeManager.cc:19
RuntimeManager(std::unique_ptr< Runtime::ICallBack > &&callback)
Definition RuntimeManager.cc:6
size_t size() const
Definition RuntimeManager.cc:33
Runtime * findById(unsigned long long ruleset_id)
Definition RuntimeManager.cc:10
void acceptRuleSet(const RuleSet &)
Definition RuntimeManager.cc:8
Definition InstructionVisitor.cc:7