Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
IgnoreSubsetConstraintSet.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
11 /// @brief
12 /// @author James Thompson
13 
14 #ifndef INCLUDED_protocols_comparative_modeling_IgnoreSubsetConstraintSet_hh
15 #define INCLUDED_protocols_comparative_modeling_IgnoreSubsetConstraintSet_hh
16 
18 
19 #include <core/types.hh>
20 #include <core/pose/Pose.fwd.hh>
23 // AUTO-REMOVED #include <utility/vector1.hh>
24 
25 // C++ headers
26 #include <set>
27 #include <string>
28 
29 #include <utility/vector1.hh>
30 
31 
32 
33 namespace protocols {
34 namespace comparative_modeling {
35 
38 public:
39  //IgnoreSubsetConstraintSet( ConstraintSet const & other );
40 
42 
44  std::set< int > residues_to_ignore,
45  ConstraintSet const & other
46  );
47 
48 
50  return new IgnoreSubsetConstraintSet( *this );
51  }
52 
53  void
55  Residue const & rsd1,
56  Residue const & rsd2,
57  Pose const & pose,
58  core::scoring::ScoreFunction const & scorefxn,
60  ) const;
61 
62  /// @brief Allow the parent class implementation to add the residue constraints
63  /// for this residue to the res_data_cache if this residue is not being ignored.
64  virtual
65  void
67  core::conformation::Residue const & rsd,
68  core::pose::Pose const & pose,
69  core::scoring::ScoreFunction const & sfxn,
72  ) const;
73 
74 
75  /// @brief Allow the parent class implenetation to add the residue-pair constraints
76  /// for this residue pair to the respair_data_cache if neither residues are being ignored.
77  virtual
78  void
80  core::conformation::Residue const & rsd1,
81  core::conformation::Residue const & rsd2,
82  core::pose::Pose const & pose,
83  core::scoring::ScoreFunction const & sfxn,
85  core::scoring::ResSingleMinimizationData const & res1_data_cache,
86  core::scoring::ResSingleMinimizationData const & res2_data_cache,
87  core::scoring::ResPairMinimizationData & respair_data_cache
88  ) const;
89 
90  /// @brief Returns true if we're supposed to ignore this sequence position,
91  /// false otherwise.
92  bool ignore( int const pos ) const;
93 
94  void ignore_residue( int const pos );
95 
96  std::set< int > ignore_list() const;
97 
98 
99  ///
100  bool
101  residue_pair_constraint_exists( int const pos1, int const pos2 ) const
102  {
103  if ( ignore(pos1) || ignore(pos2) ) return false;
105  }
106 
107 protected:
108 
109  /*void
110  eval_atom_derivative_for_residue_pairs(
111  core::id::AtomID const & atom_id,
112  core::pose::Pose const & pose,
113  core::scoring::ScoreFunction const &,
114  core::scoring::EnergyMap const & weights,
115  core::Vector & F1,
116  core::Vector & F2
117  ) const;*/
118 
119 private:
120  std::set< int > ignore_list_;
121 }; // class IgnoreSubsetConstraintSet
122 
123 } // comparative_modeling
124 } // protocols
125 
126 #endif