BusBoy
2
|
Singleton that holds a mapping of names to algorithms. More...
#include <AlgorithmRegistry.h>
Public Member Functions | |
void | registerAlgorithm (const std::string &name, Algorithm *algorithm) |
bool | hasAlgorithm (const std::string &name) const |
Algorithm * | getAlgorithm (const std::string &name) const |
~AlgorithmRegistry () | |
Static Public Member Functions | |
static AlgorithmRegistry & | instance () |
Singleton that holds a mapping of names to algorithms.
BUSBOY::AlgorithmRegistry::~AlgorithmRegistry | ( | ) |
Algorithm * BUSBOY::AlgorithmRegistry::getAlgorithm | ( | const std::string & | name | ) | const |
bool BUSBOY::AlgorithmRegistry::hasAlgorithm | ( | const std::string & | name | ) | const |
|
static |
void BUSBOY::AlgorithmRegistry::registerAlgorithm | ( | const std::string & | name, |
Algorithm * | algorithm | ||
) |
Copyright 2014 Google Inc. All rights reserved.