Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CircularPermutation.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/fldsgn/CircularPermutation.hh
11 /// @brief
12 /// @author Nobuyasu Koga ( nobuyasu@u.washington.edu )
13 
14 #ifndef INCLUDED_protocols_fldsgn_CircularPermutation_hh
15 #define INCLUDED_protocols_fldsgn_CircularPermutation_hh
16 
17 // unit headers
19 
20 // type headers
21 #include <core/types.hh>
22 
23 // package headers
24 
25 // project headers
27 #include <core/pose/Pose.fwd.hh>
28 #include <protocols/moves/Mover.hh>
29 
30 
31 // C++ headers
32 #include <string>
33 
34 // parser headers
35 #include <utility/tag/Tag.fwd.hh>
37 
38 
39 #include <utility/vector1.hh>
40 
41 namespace protocols {
42 namespace fldsgn {
43 
44 
46 
47 
48 private: // typedefs
49 
50 
52 
53 
54 public: // typedefs
55 
56 
57  //typedef std::string String;
58  //typedef core::Real Real;
59  typedef core::Size Size;
64 
65  // for parser
70 
71 
72 public: // construct/destruct
73 
74 
75  /// @brief default constructor
77 
78  /// @brief copy constructor
80 
81  /// @brief default destructor
82  virtual ~CircularPermutation();
83 
84 
85 private: // disallow assignment
86 
87 
88  /// @brief copy assignment
89  /// @remarks Mover base class prevents this from working properly...
91 
92 
93 public: // virtual constructors
94 
95 
96  /// @brief clone this object
97  virtual
98  MoverOP clone() const;
99 
100  /// @brief create this type of object
101  virtual
102  MoverOP fresh_instance() const;
103 
104 
105 public: // accessors
106 
107 
108  /// @brief
109  Size new_terminal_pos() const;
110 
111 
112 public: // mutators
113 
114 
115  /// @brief
116  void new_terminal_pos( Size const s );
117 
118 
119 public: // helper functions
120 
121 
122  /// @brief
123  Size which_chain( Size const s, Pose const pose ) const;
124 
125  /// @brief
126  void split_chains( Pose & pose, utility::vector1< Size > const & pos );
127 
128 
129 public: // virtual main methods
130 
131 
132  /// @brief apply defined moves to given Pose
133  virtual
134  void apply( Pose & pose );
135 
136  virtual std::string get_name() const;
137 
138 public: //parser
139 
140 
141  /// @brief parse xml file
142  void parse_my_tag( TagPtr const tag,
143  DataMap &,
144  Filters_map const &,
145  Movers_map const &,
146  Pose const & );
147 
148 
149 
150 private: // data
151 
152 
153  /// @brief new N- & C- terminal position
155 
156  /// @brief
158 
160 
161 
162 };
163 
164 
165 } // namespace fldsgn
166 } // namespace protocols
167 
168 
169 #endif /* INCLUDED_protocols_fldsgn_CircularPermutation_HH */