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
moves
WhileMover.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 Mover.cc
11
/// @brief Method code and full headers for Mover--
12
/// keeps heavily-included Mover.hh small and concise to maximize compiling
13
/// efficiency and to make the class definitions easier to read.
14
/// @author
15
16
// Unit Headers
17
#include <
protocols/moves/WhileMover.hh
>
18
19
// Package headers
20
// AUTO-REMOVED #include <protocols/moves/MonteCarlo.hh>
21
// AUTO-REMOVED #include <protocols/moves/MoverStatistics.hh>
22
23
// Project headers
24
// AUTO-REMOVED #include <core/pose/Pose.hh>
25
// AUTO-REMOVED #include <core/scoring/ScoreFunction.hh>
26
27
// tracer
28
#include <basic/Tracer.hh>
29
30
#include <utility/vector1.hh>
31
32
using
basic::T
;
33
using
basic::Error;
34
using
basic::Warning;
35
36
// C++ Headers
37
38
// ObjexxFCL Headers
39
40
namespace
protocols {
41
namespace
moves {
42
43
/// WhileMover
44
PoseCondition::~PoseCondition
() {}
45
46
WhileMover::WhileMover
() :
Mover
(), nmoves_(1) {}
47
48
WhileMover::WhileMover
(
49
MoverOP
mover_in,
50
core::Size
nmoves_in,
51
PoseConditionOP
condition
52
) :
53
Mover
(
"ConditionalRepeatMover"
),
54
mover_(mover_in),
55
nmoves_(nmoves_in),
56
p_cond_( condition )
57
{}
58
59
WhileMover::~WhileMover
() {}
60
61
void
62
WhileMover::apply
(
core::pose::Pose
& pose ) {
63
PoseCondition
&cond_( *
p_cond_
);
64
for
(
Size
i=0; ( i<
nmoves_
) && cond_( pose ); ++i ) {
65
mover_
->apply( pose );
66
}
67
}
68
69
std::string
70
WhileMover::get_name
()
const
{
71
return
"WhileMover"
;
72
}
73
74
75
}
// moves
76
}
// protocols
77
Generated on Sat Jun 1 2013 12:00:41 for Rosetta 3.5 by
1.8.4