Rosetta 3.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
protocols
ligand_docking
DistributionMap.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 protocols/ligand_docking/distributions.hh
11
/// @brief enumerate some distributions and map them to strings
12
/// @author Gordon Lemmon
13
14
#ifndef INCLUDED_protocols_ligand_docking_DistributionMap_hh
15
#define INCLUDED_protocols_ligand_docking_DistributionMap_hh
16
17
#include <map>
18
#include <string>
19
20
namespace
protocols {
21
namespace
ligand_docking {
22
23
enum
Distribution
{
24
Uniform
,
25
Gaussian
26
};
27
28
/// A singleton class that returns a map of strings to enum types
29
class
DistributionMap
{
30
public
:
31
Distribution
operator[]
(
std::string
distribution);
32
static
DistributionMap
*
get_instance
();
33
34
private
:
35
DistributionMap
();
// private constructor
36
37
static
DistributionMap
*
instance_
;
// pointer to the singleton class
38
std::map< std::string, Distribution >
distribution_map_
;
39
40
41
};
42
43
Distribution
get_distribution
(
std::string
distribution_str);
44
45
}
//namespace ligand_docking
46
}
//namespace protocols
47
48
#endif
Generated on Sat Jun 1 2013 11:55:48 for Rosetta 3.5 by
1.8.4