Skip to content
Snippets Groups Projects
Commit d97f3aca authored by Martin Hanzik's avatar Martin Hanzik Committed by Jan Trávníček
Browse files

Add Registry::deinitialize

parent 8fe24ce1
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,10 @@ void Registry::initialize() {
}
}
 
void Registry::deinitialize() {
Registry::getInstance().algorithms.clear();
}
Registry& Registry::getInstance() {
static Registry instance;
return instance;
......@@ -52,4 +56,4 @@ Algorithm* Registry::getAlgorithm(const std::string& name) {
 
const std::map<std::string, std::unique_ptr<Algorithm>>& Registry::getAlgorithms() {
return Registry::getInstance().algorithms;
}
\ No newline at end of file
}
......@@ -8,6 +8,7 @@
class Registry {
public:
static void initialize();
static void deinitialize();
 
static Algorithm* getAlgorithm(const std::string& name);
static const std::map<std::string, std::unique_ptr<Algorithm>>& getAlgorithms();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment