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
ligand_docking
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
>
17
#include <
core/conformation/Conformation.hh
>
18
19
// Unit Headers
20
#include <
protocols/ligand_docking/MinimizeLigand.hh
>
21
#include <
protocols/ligand_docking/ResidueTorsionRestraints.hh
>
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
46
MinimizeLigand::MinimizeLigand
():
47
//utility::pointer::ReferenceCount(),
48
protocols::moves::Mover(
"MinimizeLigand"
)
49
{
50
ligand_torsion_restraints_
.clear();
51
}
52
53
MinimizeLigand::MinimizeLigand
(
char
chain,
core::Real
degrees):
54
chain_(chain), degrees_(degrees)
55
{
56
ligand_torsion_restraints_
.clear();
57
}
58
59
MinimizeLigand::MinimizeLigand
(
MinimizeLigand
const
& that):
60
//utility::pointer::ReferenceCount(),
61
protocols::moves::Mover( that ),
62
chain_(that.chain_),
63
degrees_(that.degrees_)
64
{}
65
66
MinimizeLigand::~MinimizeLigand
() {}
67
68
std::string
MinimizeLigand::get_name
()
const
{
69
return
"MinimizeLigand"
;
70
}
71
72
void
73
MinimizeLigand::apply
(
core::pose::Pose
& pose ){
74
core::Size
chain_id=
core::pose::get_chain_id_from_chain
(
chain_
, pose);
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
) {
78
ligand_torsion_restraints_
.push_back(
79
new
protocols::ligand_docking::ResidueTorsionRestraints
(pose, begin,
degrees_
));
80
}
81
}
82
83
bool
MinimizeLigand::operator==
(
char
const
& chain)
const
{
84
return
chain ==
chain_
;
85
}
86
87
utility::vector1<protocols::ligand_docking::ResidueTorsionRestraintsOP>::iterator
88
MinimizeLigand::begin
(){
89
return
ligand_torsion_restraints_
.begin();
90
}
91
utility::vector1<protocols::ligand_docking::ResidueTorsionRestraintsOP>::iterator
92
MinimizeLigand::end
(){
93
return
ligand_torsion_restraints_
.end();
94
}
95
96
97
}
//namespace ligand_docking
98
}
//namespace protocols
Generated on Sat Jun 1 2013 11:56:08 for Rosetta 3.5 by
1.8.4