Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DistributionMap.cc
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.cc
11 /// @brief enumerate some distributions and map them to strings
12 /// @author Gordon Lemmon
13 
15 
16 // Unit Headers
17 ///////////////////////////////////////////////////////////////////////
18 
19 namespace protocols {
20 namespace ligand_docking {
21 
22 DistributionMap* DistributionMap::instance_( 0 );
23 
25  return distribution_map_[distribution];
26 }
27 
29  if ( instance_ == 0 ) instance_ = new DistributionMap();
30  return instance_;
31 }
32 
34  distribution_map_["uniform"]= Uniform;
35  distribution_map_["gaussian"]= Gaussian;
36 }// private constructor
37 
40  return (*distribution_map)[distribution_str];
41 }
42 
43 } //namespace ligand_docking
44 } //namespace protocols