Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RepeatMover.hh
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 src/protocols/moves/RepeatMover.hh
11 /// @brief
12 /// @author
13 
14 #ifndef INCLUDED_protocols_moves_RepeatMover_hh
15 #define INCLUDED_protocols_moves_RepeatMover_hh
16 
17 // Unit Headers
18 #include <protocols/moves/Mover.hh>
20 
21 // Project headers
22 // AUTO-REMOVED #include <core/types.hh>
23 
24 #include <core/pose/Pose.fwd.hh>
25 
26 // AUTO-REMOVED #include <core/scoring/ScoreType.hh>
27 // AUTO-REMOVED #include <core/scoring/ScoreFunction.fwd.hh>
28 
29 // ObjexxFCL Headers
30 
31 // C++ Headers
32 #include <string>
33 
34 // Utility Headers
35 #include <utility/pointer/ReferenceCount.hh>
36 // AUTO-REMOVED #include <ObjexxFCL/string.functions.hh>
37 
38 #include <utility/vector1.hh>
39 
40 
41 namespace protocols {
42 namespace moves {
43 
44 /// @brief A Mover that repeats an input Mover a user-specified number of times
45 ///
46 /// Common Methods:
47 /// RepeatMover.apply
48 class RepeatMover : public Mover {
49 public:
50  // default constructor (nmoves=1)
51  RepeatMover();
52  /// @brief Constructs a RepeatMover
53  /// repeatmover = RepeatMover( mover_in , nmoves_in )
54  ///
55  /// Mover mover_in /object defining what move to make
56  /// int nmoves_in /how many times to apply mover_in
57  RepeatMover( MoverOP mover_in, int nmoves_in );
58  ~RepeatMover();
59 
60  /// @brief Repeats the input Mover a specified number of times
61  ///
62  /// example(s):
63  /// repeatmover.apply(pose)
64  /// See Also:
65  /// MinMover
66  /// SequenceMover
67  /// ShearMover
68  /// SmallMover
69  /// TrialMover
70  virtual void apply( core::pose::Pose & pose );
71  virtual std::string get_name() const;
72  core::Size get_nmoves() const;
73  std::string get_mover() const;
74 
75 private:
77  int nmoves_;
78 };
79 
80 
81 std::ostream &operator<< (std::ostream &os, RepeatMover const &mover);
82 
83 } // moves
84 } // protocols
85 
86 
87 #endif