Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MMBondLengthLibrary.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/mm/MMBondLengthLibrary.hh
11 /// @brief Molecular mechanics bond length score class
12 /// @author Frank DiMaio (based on Colin Smith's MMBondAngle potential)
13 
14 
15 #ifndef INCLUDED_core_scoring_mm_MMBondLengthLibrary_hh
16 #define INCLUDED_core_scoring_mm_MMBondLengthLibrary_hh
17 
18 // Project headers
20 
21 // Utility header
22 #include <utility/pointer/access_ptr.hh>
23 #include <utility/pointer/owning_ptr.hh>
24 #include <utility/pointer/ReferenceCount.hh>
25 
26 // C++ headers
27 #include <map>
28 
29 #include <utility/keys/Key2Tuple.fwd.hh>
30 
31 
32 namespace core {
33 namespace scoring {
34 namespace mm {
35 
36 // all ints for now
37 typedef utility::keys::Key2Tuple< int, int > mm_bondlength_atom_pair;
38 typedef utility::keys::Key2Tuple< double, double > mm_bondlength_param_set;
39 typedef std::multimap< mm_bondlength_atom_pair, mm_bondlength_param_set > mm_bondlength_library;
40 typedef std::multimap< mm_bondlength_atom_pair, mm_bondlength_param_set >::const_iterator mm_bondlength_library_citer;
41 typedef std::pair< mm_bondlength_library_citer, mm_bondlength_library_citer > mm_bondlength_library_citer_pair;
42 
44 {
45 
46 public:
47  ///@brief Automatically generated virtual destructor for class deriving directly from ReferenceCount
48  virtual ~MMBondLengthLibrary();
49  /// @brief ctor
51 
52  /// @brief lookup by atom type ints
54  lookup( int atom1, int atom2 ) const;
55 
56  /// @brief lookup by atom type strings
58  lookup( std::string atom1, std::string atom2 ) const;
59 
60  /// @brief pretty print / debug
61  void pretty_print() const;
62  void pretty_print( int atom1, int atom2 ) const;
63  void pretty_print( std::string atom1, std::string atom2 ) const;
64 
65 private:
66 
67  /// @brief library containing all bond-length params
69 
71 
72 };
73 
74 
75 } // namespace mm
76 } // namespace scoring
77 } // namespace core
78 
79 
80 #endif // INCLUDED_core_mm_mm_bondangle_library_HH