Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
NonResidueTypeConstraint.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_non_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_NonResidueTypeConstraint_HH
18 #define INCLUDED_core_scoring_constraints_NonResidueTypeConstraint_HH
19 
22 
23 // AUTO-REMOVED #include <core/pose/Pose.hh>
25 #include <core/id/AtomID.hh>
26 
27 // AUTO-REMOVED #include <utility/vector1.hh>
28 
29 #include <utility/vector1.hh>
30 
31 
32 namespace core {
33 namespace scoring {
34 namespace constraints {
35 
36 ///@brief This class favors a particular residue identity at a particular position by reducing its res_type energy.
38 {
39 public:
40  typedef core::Real Real;
41 public:
42 
44  pose::Pose const & pose,
45  Size seqpos,
46  Real non_native_residue_bonus
47  );
48 
49 
51  pose::Pose const & pose,
52  Size seqpos,
54  Real favor_non_native_bonus
55  );
56 
58  Size seqpos,
59  std::string aa_in,
60  std::string name3_in,
61  core::Real bonus_in
62  );
63 
64  virtual ~NonResidueTypeConstraint();
65 
66  virtual
67  Size
68  natoms() const { return 0; }
69 
70  virtual
71  AtomID const &
72  atom( Size const ) const {
73  utility_exit_with_message("NonResidueTypeConstraint is not atom-based!.");
74  return core::id::BOGUS_ATOM_ID; // required for compilation on Windows
75  }
76 
77  virtual
79  residues() const;
80 
81  void
82  show( std::ostream & out ) const;
83 
84  virtual
86  remap_resid( core::id::SequenceMapping const &seqmap ) const;
87 
88  virtual
89  void
90  score( XYZ_Func const & xyz_func, EnergyMap const & weights, EnergyMap & emap ) const;
91 
92  virtual
93  void
94  fill_f1_f2(
95  AtomID const & atom,
96  XYZ_Func const & xyz,
97  Vector & F1,
98  Vector & F2,
99  EnergyMap const & weights
100  ) const;
101 
102  virtual ConstraintOP
103  clone() const;
104 private:
109 }; // RotamerConstraint
110 
111 
112 } // namespace constraints
113 } // namespace scoring
114 } // namespace core
115 
116 #endif // INCLUDED_core_scoring_constraints_NonResidueTypeConstraint_HH