Rosetta 3.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
protocols
simple_moves
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
14
#include <
protocols/simple_moves/SwitchResidueTypeSetMover.hh
>
15
#include <
protocols/simple_moves/SwitchResidueTypeSetMoverCreator.hh
>
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>
28
#include <
core/chemical/ResidueType.hh
>
29
#include <
core/kinematics/Jump.hh
>
30
#include <
core/util/SwitchResidueTypeSet.hh
>
31
#include <utility/vector0.hh>
32
#include <utility/vector1.hh>
33
34
35
namespace
protocols {
36
namespace
simple_moves {
37
38
std::string
39
SwitchResidueTypeSetMoverCreator::keyname
()
const
40
{
41
return
SwitchResidueTypeSetMoverCreator::mover_name
();
42
}
43
44
protocols::moves::MoverOP
45
SwitchResidueTypeSetMoverCreator::create_mover
()
const
{
46
return
new
SwitchResidueTypeSetMover
;
47
}
48
49
std::string
50
SwitchResidueTypeSetMoverCreator::mover_name
()
51
{
52
return
"SwitchResidueTypeSetMover"
;
53
}
54
55
SwitchResidueTypeSetMover::SwitchResidueTypeSetMover
()
56
: moves::
Mover
(
"SwitchResidueTypeSetMover"
)
57
{}
58
59
SwitchResidueTypeSetMover::SwitchResidueTypeSetMover
(
std::string
const
& type_set_tag_in )
60
: moves::
Mover
(
"SwitchResidueTypeSetMover"
),
61
type_set_tag_( type_set_tag_in )
62
{}
63
64
std::string
65
SwitchResidueTypeSetMover::get_residue_type_set
()
const
{
66
return
type_set_tag_
;
67
}
68
69
70
void
71
SwitchResidueTypeSetMover::apply
(
Pose
& pose )
72
{
73
core::util::switch_to_residue_type_set
( pose,
type_set_tag_
);
74
}
75
76
std::string
77
SwitchResidueTypeSetMover::get_name
()
const
{
78
return
SwitchResidueTypeSetMoverCreator::mover_name
();
79
}
80
81
moves::MoverOP
82
SwitchResidueTypeSetMover::clone
()
const
83
{
84
return
new
SwitchResidueTypeSetMover
( *
this
);
85
}
86
87
moves::MoverOP
88
SwitchResidueTypeSetMover::fresh_instance
()
const
89
{
90
return
new
SwitchResidueTypeSetMover
;
91
}
92
93
void
94
SwitchResidueTypeSetMover::parse_my_tag
(
95
utility::tag::TagPtr
const
tag,
96
protocols::moves::DataMap
&,
97
protocols::filters::Filters_map
const
&,
98
protocols::moves::Movers_map
const
&,
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
Generated on Sat Jun 1 2013 12:17:41 for Rosetta 3.5 by
1.8.4