Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DunbrackConstraint.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/pack/dunbrack/DunbrackConstraint.hh
11 /// @author James Thompson
12 
13 #ifndef INCLUDED_core_pack_dunbrack_DunbrackConstraint_hh
14 #define INCLUDED_core_pack_dunbrack_DunbrackConstraint_hh
15 
18 
19 // AUTO-REMOVED #include <utility/vector1.hh>
20 #include <core/pose/Pose.fwd.hh>
22 
23 #include <utility/vector1.hh>
24 
25 
26 namespace core {
27 namespace pack {
28 namespace dunbrack {
29 
31 public:
33 
34  virtual ~DunbrackConstraint();
35 
36  virtual std::string type() const;
37 
38  virtual
40  clone() const;
41 
42  virtual
43  Size
44  natoms() const;
45 
46  virtual
47  AtomID const &
48  atom( Size const index ) const;
49 
50  virtual void score(
51  scoring::constraints::XYZ_Func const & xyz_func,
52  scoring::EnergyMap const & weights,
53  scoring::EnergyMap & emap
54  ) const;
55 
56  virtual
57  void
58  fill_f1_f2(
59  AtomID const & atom,
61  Vector & F1,
62  Vector & F2,
63  scoring::EnergyMap const & weights
64  ) const;
65 
66  /// @brief This gets used to compare one constraint to
67  /// another, so it should uniquely reflect all the
68  /// parameters.
69  virtual void show( std::ostream & out ) const;
70 
71  virtual void read_def(
72  std::istream & in,
73  pose::Pose const & pose,
74  scoring::constraints::FuncFactory const & func_factory
75  );
76 
77 private:
80  core::Size rot_vec_pos_; // position in RotVector
81  core::Size rot_bin_; // desired bin at this position
83 }; // DunbrackConstraint
84 
85 } // namespace constraints
86 } // namespace scoring
87 } // namespace core
88 
89 #endif // INCLUDED_core_pack_dunbrack_DunbrackConstraint_HH