Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FrameIteratorWorker_.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 // :noTabs=false:tabSize=4:indentSize=4:
4 //
5 // (c) Copyright Rosetta Commons Member Institutions.
6 // (c) This file is part of the Rosetta software suite and is made available under license.
7 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
8 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
9 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
10 
11 /// @file core/fragments/FragSet.hh
12 /// @brief set of fragments
13 /// @author Oliver Lange ( olange@u.washington.edu)
14 /// @date Wed Aug 22 12:08:31 2007
15 ///
16 
17 #ifndef INCLUDED_core_fragment_FrameIteratorWorker__HH
18 #define INCLUDED_core_fragment_FrameIteratorWorker__HH
19 
20 // Unit Headers
22 
23 // type headers
24 // AUTO-REMOVED #include <core/types.hh>
25 
26 // Package Headers
27 #include <core/fragment/Frame.hh>
28 // AUTO-REMOVED #include <core/fragment/FragID.hh>
29 
30 // Project Headers
31 // AUTO-REMOVED #include <core/pose/Pose.fwd.hh>
32 
33 // AUTO-REMOVED #include <core/fragment/FrameIterator.fwd.hh>
34 // AUTO-REMOVED #include <core/fragment/FragID_Iterator.fwd.hh>
35 
36 
37 // Utility headers
38 // AUTO-REMOVED #include <utility/vector1.hh>
39 #include <utility/pointer/ReferenceCount.hh>
40 
41 // std Headers
42 // AUTO-REMOVED #include <iterator>
43 
45 #include <iostream>
46 
47 
48 /* Just a mad thought: with fragments becoming ever more "Residue" like one might want to use the
49  packer to choose a combination of good fragments instead of makeing independent choices.
50  I guess, it is only a question of keeping the combinatorics in control...
51  maybe it makes sense to pack with only "unconfident" regions of the backbone flexible ..
52 */
53 
54 namespace core {
55 namespace fragment {
56 
57 
58 // virtual Base class for FrameIterator
60  friend class FrameIterator;
61  friend class FragID_Iterator;
62 protected:
63  // FrameIteratorWorker_ ( BaseFragSet& bfs );
64  virtual bool operator != ( FrameIteratorWorker_ const& ) const = 0;
65  virtual bool operator == ( FrameIteratorWorker_ const& fit) const {
66  return !( (*this)!= fit );
67  };
68 
69  virtual FrameIteratorWorker_& operator++ ()=0;
70 
71  virtual FrameIteratorWorker_& operator+ ( Size offset ) {
72  for ( Size i = 1; i<=offset; i++ ) ++(*this);
73  return *this;
74  }
75 
76  virtual FrameIteratorWorker_& operator = ( FrameIteratorWorker_ const& itr ) = 0;
77 
79  return frame_ptr();
80  }
81 
82  FrameCOP operator* () const {
83  return frame_ptr();
84  }
85 
87  return ( frame_ptr() );
88  }
89 
91  return ( frame_ptr() );
92  }
93 
94  virtual FrameOP frame_ptr() = 0;
95  virtual FrameCOP frame_ptr() const = 0;
96 };
97 
98 }
99 }
100 #endif