Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RelativeConnectRight.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/forge/build/RelativeConnectRight.hh
11 /// @brief version of ConnectRight instruction that depends upon results from
12 /// another BuildInstruction
13 /// @author Yih-En Andrew Ban (yab@u.washington.edu)
14 
15 #ifndef INCLUDED_protocols_forge_build_RelativeConnectRight_hh
16 #define INCLUDED_protocols_forge_build_RelativeConnectRight_hh
17 
18 // unit headers
20 
21 // package headers
24 
26 
27 #include <utility/vector1.hh>
28 
29 
30 
31 namespace protocols {
32 namespace forge {
33 namespace build {
34 
35 
36 /// @brief version of ConnectRight instruction that depends upon results from
37 /// another BuildInstruction
39 
40 
41 private: // typedefs
42 
43 
45 
46 
47 public: // typedefs
48 
49 
50  typedef Super::Size Size;
51 
55  typedef Super::Pose Pose;
56 
59 
61 
62 
63 public: // construct/destruct
64 
65 
66  /// @brief default constructor
68 
69 
70  /// @brief RelativeSequencePosition + position on-right jump constructor
71  /// @param[in] rp RelativeSequencePosition defining the type of computation to perform.
72  /// (will be cloned)
73  /// @param[in] right_position connect at this position on 'pose_right'
74  /// @param[in] pose_right connect this pose to the right of pose_left when
75  /// modify( pose_left ) is called
77  RelativeSequencePositionOP const & rp,
78  Size const right_position,
79  Pose const & pose_right
80  );
81 
82 
83  /// @brief copy constructor
85 
86 
87  /// @brief default destructor
88  virtual
90 
91 
92 public: // assignment
93 
94 
95  /// @brief copy assignment
97 
98 
99 public: // virtual constructors
100 
101 
102  /// @brief clone this object
103  virtual
104  BuildInstructionOP clone() const;
105 
106 
107 public: // virtual Pose modification methods
108 
109 
110  /// @brief do the actual work of modifying the Pose
111  virtual
112  void modify_impl( Pose & pose_left );
113 
114 
115 public: // instruction comparison
116 
117 
118  /// @brief return set of any fixed positions necessary with respect to the original
119  /// interval and original Pose numbering
120  /// @return always empty set, no fixed positions
121  /// @remarks Used for ensuring build regions for instructions do not overlap and
122  /// so that jumps may be placed correctly. There is currently no way to
123  /// represent the dependent fixed position, so we're forced to return an empty
124  /// set.
125  virtual
127 
128 
129 private: // data
130 
131 
132  /// @brief function object used to compute the 'left_position' in
133  /// ConnectRight
135 
136 
137 };
138 
139 
140 } // namespace build
141 } // namespace forge
142 } // namespace protocols
143 
144 
145 #endif /* INCLUDED_protocols_forge_build_RelativeConnectRight_HH */