BusBoy
2
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
cpp
api
algorithm
AlgorithmRegistry.h
Go to the documentation of this file.
1
17
#ifndef __BUSBOY_ALGORITHM_REGISTRY_H__
18
#define __BUSBOY_ALGORITHM_REGISTRY_H__
19
20
#include <string>
21
#include "
Algorithm.h
"
22
23
namespace
BUSBOY {
24
25
class
AlgorithmRegistryImpl;
26
31
class
AlgorithmRegistry
{
32
33
public
:
34
35
static
AlgorithmRegistry
&
instance
();
36
37
void
registerAlgorithm
(
const
std::string& name,
Algorithm
* algorithm);
38
39
bool
hasAlgorithm
(
const
std::string& name)
const
;
40
41
Algorithm
*
getAlgorithm
(
const
std::string& name)
const
;
42
43
~AlgorithmRegistry
();
44
45
private
:
46
47
AlgorithmRegistryImpl
* m_impl;
48
49
AlgorithmRegistry
();
50
AlgorithmRegistry
(
const
AlgorithmRegistry
& reg);
51
AlgorithmRegistry
& operator=(
const
AlgorithmRegistry
& reg);
52
53
};
54
55
}
56
57
#endif
Tue Nov 11 2014 23:19:41
1.8.3.1
Copyright 2014 Google Inc. All rights reserved.