Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BoolMover.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
11 /// @brief
12 /// @author
13 
14 #ifndef INCLUDED_protocols_moves_BoolMover_hh
15 #define INCLUDED_protocols_moves_BoolMover_hh
16 
17 // Unit Headers
18 // AUTO-REMOVED #include <protocols/moves/Mover.fwd.hh>
19 
20 // Package headers
21 // AUTO-REMOVED #include <protocols/moves/MonteCarlo.fwd.hh>
22 // AUTO-REMOVED #include <protocols/moves/MoverStatistics.hh>
23 
24 // Project headers
25 // AUTO-REMOVED #include <core/types.hh>
26 
27 #include <core/pose/Pose.fwd.hh>
28 
29 // AUTO-REMOVED #include <core/scoring/ScoreType.hh>
30 // AUTO-REMOVED #include <core/scoring/ScoreFunction.fwd.hh>
31 
32 // ObjexxFCL Headers
33 
34 // C++ Headers
35 // AUTO-REMOVED #include <string>
36 
37 // Utility Headers
38 #include <utility/pointer/ReferenceCount.hh>
39 // AUTO-REMOVED #include <ObjexxFCL/string.functions.hh>
40 
41 #include <utility/vector1.hh>
42 #include <iostream>
43 
44 
45 namespace protocols {
46 namespace moves {
47 
48 //temporary code duplication of Mover class to return bool from apply..
49 // want to make this interface the one and only Mover at some point
50 // This is completely obsolet now... the new jd2 design takes care of this issue.
51 // and exceptions of course
53 public:
54  _BoolMover();
55  virtual ~_BoolMover();
56 
57  _BoolMover( std::string const & type );
58 
59  _BoolMover( _BoolMover const & other );
60 
61  virtual bool apply( core::pose::Pose & ) = 0;
62 
63  std::string const & type() const { return type_; }
64 
65  /// @brief A tag is a unique identifier used to identify structures produced
66  /// by this Mover. get_current_tag() returns the tag, and set_current_tag( std::string tag )
67  /// sets the tag.
68  std::string const & get_current_tag() const { return current_tag_; }
69  void set_current_tag( const std::string& new_tag ) { current_tag_ = new_tag; }
70 
71  ///@brief setters and getters for poses contained for rms
74 
75 
76 
79 
80  ///@brief: Unit test support function. Apply one move to a given pose.
81  /// Allows extra test specific functions to be called before applying
82  virtual void test_move( core::pose::Pose & pose ) {
83  apply( pose );
84  }
85 
86  //protected:
87  //OL 4/23/08 made this public. it is not really a safety issue to have that
88  //protected and it allows more detail in MC diagnosis
89  void type( const std::string & type_in ) { type_ = type_in; }
90 
91 private:
92  std::string type_; // should be const
94 
97 }; // end Mover base class
98 
99 }
100 }
101 
102 #endif