Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SwitchResidueTypeSetMover.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 SwitchResidueTypeSetMover.cc
11 /// @brief switch between residue type sets (e.g. centroid and all atom)
12 
13 // Unit headers
16 
17 // AUTO-REMOVED #include <core/pose/Pose.hh>
18 
19 
20 #include <basic/Tracer.hh>
21 using basic::T;
22 using basic::Error;
23 using basic::Warning;
24 static basic::Tracer TR("protocols.simple_moves.SwitchResidueTypeSetMover");
25 #include <utility/tag/Tag.hh>
26 
27 // AUTO-REMOVED #include <core/chemical/AtomType.hh>
29 #include <core/kinematics/Jump.hh>
31 #include <utility/vector0.hh>
32 #include <utility/vector1.hh>
33 
34 
35 namespace protocols {
36 namespace simple_moves {
37 
40 {
42 }
43 
46  return new SwitchResidueTypeSetMover;
47 }
48 
51 {
52  return "SwitchResidueTypeSetMover";
53 }
54 
56  : moves::Mover("SwitchResidueTypeSetMover")
57 {}
58 
60  : moves::Mover("SwitchResidueTypeSetMover"),
61  type_set_tag_( type_set_tag_in )
62 {}
63 
66  return type_set_tag_;
67 }
68 
69 
70 void
72 {
74 }
75 
79 }
80 
83 {
84  return new SwitchResidueTypeSetMover( *this );
85 }
86 
89 {
90  return new SwitchResidueTypeSetMover;
91 }
92 
93 void
95  utility::tag::TagPtr const tag,
99  core::pose::Pose const & )
100 {
101  if ( tag->hasOption("set") ) type_set_tag_ = tag->getOption<std::string>("set");
102 }
103 
104 void SwitchResidueTypeSetMover::parse_def( utility::lua::LuaObject const & def,
105  utility::lua::LuaObject const & /*score_fxns*/,
106  utility::lua::LuaObject const & /*tasks*/,
107  protocols::moves::MoverCacheSP /*cache*/ ) {
108  if( def["set"] ) type_set_tag_ = def["set"].to<std::string>();
109 }
110 
111 std::ostream &operator<< (std::ostream &os, SwitchResidueTypeSetMover const &mover)
112 {
113  moves::operator<<(os, mover);
114  os << "Residue type set: " << mover.get_residue_type_set() << std::endl;
115 
116  return os;
117 }
118 
119 } // simple_moves
120 } // protocols