Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FragID_Iterator.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_FragID_Iterator_HH
18 #define INCLUDED_core_fragment_FragID_Iterator_HH
19 
20 // Unit Headers
21 // AUTO-REMOVED #include <core/fragment/FragSet.fwd.hh>
22 
23 // Package Headers
28 
29 // Project Headers
30 #include <core/types.hh>
31 
32 // Utility headers
33 // AUTO-REMOVED #include <utility/vector1.hh>
34 // AUTO-REMOVED #include <utility/pointer/ReferenceCount.hh>
35 
36 // std Headers
37 // AUTO-REMOVED #include <iterator>
38 
39 #include <core/fragment/FragID.hh>
40 #include <utility/vector1.hh>
41 
42 
43 /* Just a mad thought: with fragments becoming ever more "Residue" like one might want to use the
44  packer to choose a combination of good fragments instead of makeing independent choices.
45  I guess, it is only a question of keeping the combinatorics in control...
46  maybe it makes sense to pack with only "unconfident" regions of the backbone flexible ..
47 */
48 
49 namespace core {
50 namespace fragment {
51 
52 class FragID_Iterator : std::iterator< std::forward_iterator_tag, FragID > {
53 public:
56  FragID_Iterator( FrameList::iterator it );
58 
60 
61  bool operator != ( FragID_Iterator const& fi) const;
62 
63  bool operator == ( FragID_Iterator const& fi) const;
64 
66 
67  FragID_Iterator& operator+ ( Size offset );
68 
70 
71  FragID frag_id();
72 
74 
75  // can't provide that operator, can I ? Could point to a member instance of FragID
76  // normally this operator is never used to actually asked for the pointer to something...
78 
79 protected:
80  //BaseFragSet& fragset_;
82  Size ipos_; //intra_frame_pos
84 
85 };
86 
87 }
88 }
89 
90 #endif