Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ExtendedPoseMover.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 protocols/moves/ExtendedPoseMover.hh
11 /// @author Christopher Miles (cmiles@uw.edu)
12 
13 #ifndef INCLUDED_protocols_simple_moves_ExtendedPoseMover_HH
14 #define INCLUDED_protocols_simple_moves_ExtendedPoseMover_HH
15 
16 // Unit header
18 
19 // C/C++ headers
20 #include <string>
21 
22 // Project headers
23 #include <core/pose/Pose.fwd.hh>
24 
25 // Package headers
27 #include <protocols/moves/Mover.hh>
28 
29 #include <utility/vector1.hh>
30 
31 
32 namespace protocols {
33 namespace simple_moves {
34 
37 
38  public:
39  ExtendedPoseMover(const string& sequence = "",
40  const string& residue_type_set_ = "centroid");
41 
42  /// @brief Creates an extended, idealized pose from the sequence and residue
43  /// type set specified in the constructor.
44  void apply(core::pose::Pose& pose);
45 
46  /// @brief Returns the name of this mover
47  string get_name() const;
48 
49  /// @brief Returns true if this instance is valid (i.e. contains a sequence).
50  /// Since RosettaScripts mandates the existence of a no-argument constructor,
51  /// we lose the ability to reason about the validity of a particular instance.
52  bool valid() const;
53 
54  // -- Accessors -- //
55  /// @brief Returns the sequence
56  const string& sequence() const;
57 
58  /// @brief Returns the residue type set
59  const string& residue_type_set() const;
60 
61  // -- Mutators -- //
62  /// @brief Updates the sequence to be used in calls to apply()
63  void sequence(const string& sequence);
64 
65  /// @brief Updates the residue type set to be used in calls to apply()
66  void residue_type_set(const string& residue_type_set);
67 
68  // -- RosettaScripts -- //
69  /// @brief Creates a replica of this protocols::moves::Mover
71 
72  /// @brief Creates a new instance by calling the no-argument constructor
74 
75  /// @brief protocols::moves::Mover-specific parsing required by RosettaScripts
76  void parse_my_tag(const utility::tag::TagPtr tag,
78  const protocols::filters::Filters_map& filters,
79  const protocols::moves::Movers_map& movers,
80  const core::pose::Pose& pose);
81 
82  private:
83  string sequence_;
85 };
86 
87 } // namespace simple_moves
88 } // namespace protocols
89 
90 #endif // INCLUDED_protocols_simple_moves_ExtendedPoseMover_HH