Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SecMatchResiduePairEvaluator.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 // :noTabs=false:tabSize=4:indentSize=4:
4 //
5 // (c) Copyright Rosetta Commons Member Institutions.
6 // (c) This file is part of the Rosetta software suite and is made available under license.
7 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
8 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
9 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
10 
11 /// @file protocols/match/downstream/SecMatchResiduePairEvaluator.hh
12 /// @brief
13 /// @author Florian Richter, floric@u.washington.edu, june 09
14 
15 
16 #ifndef INCLUDED_protocols_match_downstream_SecMatchResiduePairEvaluator_hh
17 #define INCLUDED_protocols_match_downstream_SecMatchResiduePairEvaluator_hh
18 
19 // Unit headers
21 
22 
23 // Project headers
24 #include <core/types.hh>
25 // AUTO-REMOVED #include <core/chemical/ResidueType.fwd.hh>
27 // AUTO-REMOVED #include <core/pose/Pose.fwd.hh>
28 
29 // Utility headers
30 #include <utility/pointer/ReferenceCount.hh>
31 
32 
33 // C++ headers
34 
35 namespace protocols {
36 namespace match {
37 namespace downstream {
38 
39 
40 /// @brief base for class used by secondary matcher
41 /// to determine whether a given residue to be matched
42 /// interacts satisfactorily with a target residue
44 {
45 public:
46  typedef core::Size Size;
47  typedef core::Real Real;
48 
49 public:
51 
53 
54  /// @brief Returns true if the interaction between the two residues satisifies the
55  /// secondary match requirement.
56  /// candidate_res: the rotamer of the residue trying to be placed
57  /// target_res: the previously placed residue
58  virtual
59  bool
61  core::conformation::Residue const & candidate_res,
62  core::conformation::Residue const & target_res
63  ) const = 0;
64 
65  /// @brief Returns true if all coordinates of the target residue are required
66  /// in order to evaluate the interaction between the candidate and the target residues.
67  virtual
68  bool
70 
71  /// @brief If require_all_target_residue_atom_coordinates() returns false, then
72  /// this method should return true for the atoms on the target residue that the
73  /// evaluator requires.
74  virtual
75  bool
76  require_target_atom_coordinate( Size target_atom_id ) const = 0;
77 
78  /// @brief Are there atoms of the candidate residue that must be within
79  /// some cutoff distance of a given atom on the target residue? Base
80  /// class implementation returns false.
81  virtual
82  bool
84 
85  /// @brief Return a list of atom indices on the candidate residue; if all atoms
86  /// in this list are further than max_separation_dist_to_target_atom() away
87  /// from the target_atom_id atom for a given pair of conformations of the
88  /// target_residue and the candidate_residue, then this evaluator will return false
89  /// in the call to evaluate( candidate_residue, target_residue ).
90  /// This list will allow the SecondaryMatcher to (conservatively!) prune
91  /// conformations of the candidate_residue from consideration. The base class implements
92  /// a noop -- it returns an empty list.
93  virtual
96  Size target_atom_id
97  ) const;
98 
99  /// @brief Return the maximum separation distance that any of the match-residue
100  /// atoms identified by the function match_atoms_reqd_near_target_atom
101  /// may be from a particular atom on the target residue. Returns a negative value
102  /// if there is no requirement that any atom be within a certain radius of the
103  /// target atom. The base class implementation returns -1.0.
104  virtual
105  Real
106  max_separation_dist_to_target_atom( Size target_atom_id ) const;
107 
108 };
109 
110 
111 }
112 }
113 }
114 
115 #endif