Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AtomPairConstraintsScore.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/frag_picker/scores/AtomPairConstraintsScore.hh
11 /// @brief
12 /// @author Dominik Gront (dgront@chem.uw.edu.pl)
13 
14 #ifndef INCLUDED_protocols_frag_picker_scores_AtomPairConstraintsScore_hh
15 #define INCLUDED_protocols_frag_picker_scores_AtomPairConstraintsScore_hh
16 
19 
20 // package headers
25 // mini
28 #include <numeric/xyzVector.hh>
29 
31 #include <utility/vector1.hh>
32 
33 
34 namespace protocols {
35 namespace frag_picker {
36 namespace scores {
37 
38 /// @brief Scores a fragment with a set of AtomPair constraints
40 public:
41 
43  std::string>);
44 
46 
48 
49 private:
53  Size get_atom_type(std::string atom_name);
54 };
55 
56 /// @brief Holds data about a single distance constraint in the form AtomPairConstraintsScore needs
57 /// @detailed This class is used by AtomPairConstraintsScore to store data obtained from file
59 public:
60 
61  /// @brief makes a new object
63  Size offset, Size first_atom, Size second_atom) {
64  offset_ = offset;
65  func_ = function;
66  first_atom_ = first_atom;
67  second_atom_ = second_atom;
68  }
69 
70  virtual ~AtomPairConstraintsData() ; // auto-removing definition from header{}
71 
72  inline Size get_offset() {
73  return offset_;
74  }
75 
76  inline Size get_first_atom() {
77  return first_atom_;
78  }
79 
80  inline Size get_second_atom() {
81  return second_atom_;
82  }
83 
85  return func_;
86  }
87 
88 private:
93 };
94 
95 /// @brief Maker class that produces a new AtomPairConstraintsScore object
97 public:
98 
100  MakeFragmentScoringMethod("AtomPairConstraintsScore") {
101  }
102 
104 };
105 } // scores
106 } // frag_picker
107 } // protocols
108 
109 #endif /* INCLUDED_protocols_frag_picker_scores_AtomPairConstraintsScore_HH */
110