Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ConstantConstraint.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/ConstantConstraint.hh
11 
12 #ifndef INCLUDED_core_scoring_constraints_ConstantConstraint_hh
13 #define INCLUDED_core_scoring_constraints_ConstantConstraint_hh
14 
20 
21 // Project headers
22 #include <core/pose/Pose.fwd.hh>
23 #include <core/id/AtomID.fwd.hh>
25 
26 #include <utility/vector1.hh>
27 
28 
29 namespace core {
30 namespace scoring {
31 namespace constraints {
32 
33 /// @brief A Constant Constraint.
35 public:
36  using Constraint::score;
37 
38  /// @brief compute score
39  Real
40  score() const;
41 
42  virtual std::string type() const;
43 
44  /// @brief compute score
45  void
46  score( XYZ_Func const &, EnergyMap const &, EnergyMap & emap ) const;
47 
48  //Real score( pose::Pose const & ) const;
49 
50  /// @brief compute atom deriv
51  void
52  fill_f1_f2(
53  AtomID const & ,
54  XYZ_Func const &,
55  Vector & F1,
56  Vector & F2,
57  EnergyMap const &
58  ) const;
59 
60  /// @brief Constructor
62  FuncOP func_in,
64  );
65 
66  // destructor
68 
69  /// @brief number of atoms --- zero
70  Size
71  natoms() const;
72 
73  AtomID const &
74  atom( Size const n ) const;
75 
76  /// @brief output violation of constraint (none!)
77  Size show_violations( std::ostream &, pose::Pose const &, Size, core::Real ) const;
78 
79  void show( std::ostream& out ) const;
80 
81 private:
83 };
84 
85 } // constraints
86 } // scoring
87 } // core
88 
89 #endif