Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FuncFactory.hh
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file core/scoring/constraints/FuncFactory.hh
11 /// @brief Factory for creating various types of constraints.
12 /// @author Greg Taylor <gktaylor@u.washington.edu>
13 
14 #ifndef INCLUDED_core_scoring_constraints_FuncFactory_hh
15 #define INCLUDED_core_scoring_constraints_FuncFactory_hh
16 
17 // Unit headers
19 
20 // Package headers
22 
23 // Project headers
24 // AUTO-REMOVED #include <core/types.hh>
25 
26 // C++ Headers
27 #include <string>
28 #include <map>
29 
30 namespace core {
31 namespace scoring {
32 namespace constraints {
33 
34 class FuncFactory {
35  public:
36  FuncFactory(void);
37  void add_type( std::string type_name, FuncOP new_func );
38  FuncOP new_func( std::string const& type ) const;
39  typedef std::map< std::string, scoring::constraints::FuncOP > FuncTypes;
41 };
42 
43 } //constraints
44 } //scoring
45 } //core
46 
47 #endif