Darwin  1.10(beta)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
drwnMapInferenceFactory.h
1 /*****************************************************************************
2 ** DARWIN: A FRAMEWORK FOR MACHINE LEARNING RESEARCH AND DEVELOPMENT
3 ** Distributed under the terms of the BSD license (see the LICENSE file)
4 ** Copyright (c) 2007-2015, Stephen Gould
5 ** All rights reserved.
6 **
7 ******************************************************************************
8 ** FILENAME: drwnMapInferenceFactory.h
9 ** AUTHOR(S): Stephen Gould <stephen.gould@anu.edu.au>
10 **
11 *****************************************************************************/
12 
13 #pragma once
14 
15 #include <vector>
16 #include <set>
17 #include <map>
18 #include <list>
19 
20 #include "drwnBase.h"
21 #include "drwnMapInference.h"
22 
23 // drwnMAPInferenceFactory -------------------------------------------------
28 
30 {
31  public:
32  ~drwnMAPInferenceFactory() { /* do nothing */ }
34  static drwnMAPInferenceFactory& get();
35 
37  list<string> getRegisteredClasses() const;
38 
40  drwnMAPInference *create(const char *name, const drwnFactorGraph& graph) const;
41 
42  protected:
44  drwnMAPInferenceFactory() { /* do nothing */ }
45 };
Factory for creating drwnMAPInference objects.
Definition: drwnMapInferenceFactory.h:29
drwnMAPInference * create(const char *name, const drwnFactorGraph &graph) const
create a MAP inference object
Definition: drwnMapInferenceFactory.cpp:47
drwnMAPInferenceFactory()
singleton class so hide constructor
Definition: drwnMapInferenceFactory.h:44
list< string > getRegisteredClasses() const
get a list of all registered classes
Definition: drwnMapInferenceFactory.cpp:30
Container and utility functions for factor graphs.
Definition: drwnFactorGraph.h:40
Interface for various MAP inference (energy minimization) algorithms.
Definition: drwnMapInference.h:38