BICO 1.1

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Pages
discreteproxyprovider.h
Go to the documentation of this file.
1 #ifndef DISCRETEPROXYPROVIDER_H
2 #define DISCRETEPROXYPROVIDER_H
3
4 #include "../base/solutionprovider.h"
5
6 #include <vector>
7
8 namespace CluE
9 {
10
16 template<typename T> class DiscreteProxyProvider
17 {
18 public:
19
20 virtual ~DiscreteProxyProvider()
21 {
22 }
23
31 virtual unsigned int number_of_solutions() const = 0;
32
39 virtual unsigned int size_of_solution(unsigned int index) const = 0;
40
47 virtual T* discrete_proxy(unsigned int solutionIndex, unsigned int proxyIndex) const = 0;
48
55 virtual std::vector<T*> discrete_proxies(unsigned int solutionIndex) const = 0;
56
61 static DiscreteProxyProvider<T>* toDiscreteProxyProvider(SolutionProvider* s)
62 {
63 return dynamic_cast<DiscreteProxyProvider<T>*>(s);
64 }
65 };
66
67 }
68
69 #endif
CluE::DiscreteProxyProvider::toDiscreteProxyProvider
static DiscreteProxyProvider< T > * toDiscreteProxyProvider(SolutionProvider *s)
Does a dynamic cast of the given SolutionProvider to a DiscreteProxyProvider.
Definition: discreteproxyprovider.h:61
CluE::DiscreteProxyProvider::discrete_proxy
virtual T * discrete_proxy(unsigned int solutionIndex, unsigned int proxyIndex) const =0
Returns a pointer to the proxy for the specified clustering and cluster.
CluE::DiscreteProxyProvider
Abstract base class to access the results of proxy / center based clustering algorithms.
Definition: discreteproxyprovider.h:16
CluE::DiscreteProxyProvider::~DiscreteProxyProvider
virtual ~DiscreteProxyProvider()
Definition: discreteproxyprovider.h:20
CluE::DiscreteProxyProvider::size_of_solution
virtual unsigned int size_of_solution(unsigned int index) const =0
returns the size of a particular solution
CluE::DiscreteProxyProvider::number_of_solutions
virtual unsigned int number_of_solutions() const =0
returns the number of available solutions
CluE::DiscreteProxyProvider::discrete_proxies
virtual std::vector< T * > discrete_proxies(unsigned int solutionIndex) const =0
Returns a vector of pointers to the proxies for the specified clustering.
CluE::SolutionProvider
Abstract base class for algorithm solutions.
Definition: solutionprovider.h:16