Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ResidueTypeLinkingConstraint.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/constraints/ResidueConstraint.hh
11 ///
12 /// @brief implements favor_native_residue constraints, assigning an energy bonus
13 /// to a residue if it matches the identity within the constraint object
14 /// @author Sarel Fleishman
15 
16 
17 #ifndef INCLUDED_core_scoring_constraints_ResidueTypeLinkingConstraint_hh
18 #define INCLUDED_core_scoring_constraints_ResidueTypeLinkingConstraint_hh
19 
22 
24 #include <core/id/AtomID.hh>
25 
26 #include <utility/vector1.hh>
27 
28 
29 namespace core {
30 namespace scoring {
31 namespace constraints {
32 
33 ///@brief This class favors a particular residue identity at a particular position by reducing its res_type energy.
35 {
36 public:
37  typedef core::Real Real;
38 public:
40 
42  pose::Pose const & pose,
43  Size seqpos1,
44  Size seqpos2,
45  Real bonus
46  );
47 
48 
50  pose::Pose const & pose,
51  Size seqpos1,
52  Size seqpos2,
55  Real bonus
56  );
57 /*
58  ResidueTypeLinkingConstraint(
59  Size seqpos1,
60  Size seqpos2,
61  std::string aa_in,
62  std::string name3_in,
63  core::Real bonus_in,
64  utility::vector1< AtomID > const & atoms_in
65  );
66 */
68 
69  virtual
70  Size
71  natoms() const { return 0; }
72 
73  virtual
74  AtomID const &
75  atom( Size const ) const {
76  utility_exit_with_message("ResidueTypeLinkingConstraint is not atom-based!.");
77  return core::id::BOGUS_ATOM_ID; // required for compilation on Windows
78  }
79 
80  virtual
82  residues() const;
83 
84  void
85  show( std::ostream & out ) const;
86 /*
87  virtual
88  ConstraintOP
89  remap_resid( core::id::SequenceMapping const &seqmap ) const;
90 */
91 
92  /// @brief possibility to compare constraint according to data
93  /// and not just pointers
94  bool operator == ( Constraint const & other ) const;
95 /*
96  virtual ConstraintOP remapped_clone(
97  pose::Pose const & src,
98  pose::Pose const & dest,
99  id::SequenceMappingCOP map = NULL
100  ) const;
101 */
102  virtual
103  void
104  score( XYZ_Func const & xyz_func, EnergyMap const & weights, EnergyMap & emap ) const;
105 
106  virtual
107  void
108  fill_f1_f2(
109  AtomID const & atom,
110  XYZ_Func const & xyz,
111  Vector & F1,
112  Vector & F2,
113  EnergyMap const & weights
114  ) const;
115 
116  virtual ConstraintOP
117  clone() const;
118 private:
126 }; // RotamerConstraint
127 
128 
129 } // namespace constraints
130 } // namespace scoring
131 } // namespace core
132 
133 #endif // INCLUDED_core_scoring_constraints_ResidueTypeLinkingConstraint_HH