Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MinimizeLigand.cc
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/task/ResfileReader.cc
11 /// @brief implementation of resfile reader and its command classes
12 /// @author Gordon Lemmon (glemmon@gmail.com), adapted from the ResfileReader code
13 /// by Steven Lewis (smlewi@unc.edu) and Andrew Leaver-Fay
14 
15 // Project Headers
16 #include <core/pose/Pose.hh>
18 
19 // Unit Headers
22 #include <core/pose/util.hh>
23 
24 // Utility Headers
25 #include <utility/exit.hh>
26 #include <basic/Tracer.hh>
27 #include <core/types.hh>
28 // AUTO-REMOVED #include <utility/tag/Tag.hh>
29 
30 #include <utility/vector0.hh>
31 #include <utility/vector1.hh>
32 
33 
34 using basic::T;
35 using basic::Error;
36 using basic::Warning;
37 
38 //STL headers
39 
40 
41 namespace protocols {
42 namespace ligand_docking {
43 
44 static basic::Tracer MinimizeLigand_tracer("protocols.ligand_docking.MinimizeLigand", basic::t_debug);
45 
47  //utility::pointer::ReferenceCount(),
48  protocols::moves::Mover("MinimizeLigand")
49 {
51 }
52 
54  chain_(chain), degrees_(degrees)
55 {
57 }
58 
60  //utility::pointer::ReferenceCount(),
61  protocols::moves::Mover( that ),
62  chain_(that.chain_),
63  degrees_(that.degrees_)
64 {}
65 
67 
69  return "MinimizeLigand";
70 }
71 
72 void
75  core::Size begin = pose.conformation().chain_begin(chain_id);
76  core::Size const end = pose.conformation().chain_end(chain_id);
77  for (; begin <= end; ++begin) {
80  }
81 }
82 
83 bool MinimizeLigand::operator==(char const & chain) const{
84  return chain == chain_;
85 }
86 
89  return ligand_torsion_restraints_.begin();
90 }
93  return ligand_torsion_restraints_.end();
94 }
95 
96 
97 } //namespace ligand_docking
98 } //namespace protocols