Rosetta 3.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
core
fragment
FrameListIterator_.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/ConstantLengthFragSet.hh
12
/// @brief yields a simple implementation of a fragset
13
/// @author Oliver Lange ( olange@u.washington.edu)
14
/// @date Wed Aug 22 12:08:31 2007
15
///
16
17
#ifndef INCLUDED_core_fragment_FramelistIterator__HH
18
#define INCLUDED_core_fragment_FramelistIterator__HH
19
20
// Package Headers
21
// AUTO-REMOVED #include <core/fragment/Frame.hh>
22
#include <
core/fragment/FrameList.hh
>
23
24
// Project Headers
25
// AUTO-REMOVED #include <core/types.hh>
26
27
// Package Headers
28
// AUTO-REMOVED #include <core/fragment/FrameIterator.hh>
29
30
#include <
core/fragment/FrameIteratorWorker_.hh
>
31
32
/* Just a mad thought: with fragments becoming ever more "Residue" like one might want to use the
33
packer to choose a combination of good fragments instead of makeing independent choices.
34
I guess, it is only a question of keeping the combinatorics in control...
35
maybe it makes sense to pack with only "unconfident" regions of the backbone flexible ..
36
*/
37
38
namespace
core {
39
namespace
fragment {
40
41
42
class
FrameListIterator_
:
public
FrameIteratorWorker_
{
43
friend
class
FrameList
;
44
friend
class
FragID_Iterator
;
45
protected
:
46
FrameListIterator_
( FrameList::iterator it ) :
it_
( it ) {};
47
48
bool
operator !=
(
FrameIteratorWorker_
const
& fiw )
const
{
49
FrameListIterator_
const
& fsit ( dynamic_cast< FrameListIterator_ const& > ( fiw ) );
50
return
it_
!=fsit.
it_
;
51
};
52
53
FrameIteratorWorker_
&
operator++
() {
54
++
it_
;
55
return
*
this
;
56
}
57
58
FrameIteratorWorker_
&
operator =
(
FrameIteratorWorker_
const
& fiw ) {
59
FrameListIterator_
const
& fsit ( dynamic_cast< FrameListIterator_ const& > ( fiw ) );
60
it_
= fsit.
it_
;
61
return
*
this
;
62
}
63
64
FrameOP
frame_ptr
() {
65
return
*
it_
;
66
}
67
68
FrameCOP
frame_ptr
()
const
{
69
return
*
it_
;
70
}
71
72
private
:
73
FrameList::iterator
it_
;
74
};
75
76
}
77
}
78
79
#endif
Generated on Sat Jun 1 2013 11:32:35 for Rosetta 3.5 by
1.8.4