BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
secondaryStructureIterator.h
Go to the documentation of this file.
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4 // $Id: secondaryStructureIterator.h,v 1.15 2005/10/23 12:02:20 oliver Exp $
5 //
6 
7 #ifndef BALL_KERNEL_SECONDARYSTRUCTUREITERATOR_H
8 #define BALL_KERNEL_SECONDARYSTRUCTUREITERATOR_H
9 
10 #ifndef BALL_COMMON_H
11 # include <BALL/common.h>
12 #endif
13 
14 #ifndef BALL_KERNEL_SECONDARY_STRUCTURE_H
16 #endif
17 
18 #ifndef BALL_KERNEL_ITERATOR_H
19 # include <BALL/KERNEL/iterator.h>
20 #endif
21 
22 #ifndef BALL_KERNEL_PREDICATE_H
23 # include <BALL/KERNEL/predicate.h>
24 #endif
25 
26 namespace BALL
27 {
34  {
35  public:
36 
39  {
40  predicate_ = &RTTI::getDefault<KernelPredicate<SecondaryStructure> >();
41  }
42 
44  : CompositeIteratorTraits(composite)
45  {
46  predicate_ = &RTTI::getDefault<KernelPredicate<SecondaryStructure> >();
47  }
48 
50  : CompositeIteratorTraits(traits)
51  {
52  }
53 
55  {
57  return *this;
58  }
59 
61  {
62  predicate_ = &RTTI::getDefault<KernelPredicate<SecondaryStructure> >();
63  }
64  };
65 
66 
68  typedef BidirectionalIterator
69  <Composite, SecondaryStructure, Composite::CompositeIterator, SecondaryStructureIteratorTraits>
71 
76 
78  typedef std::reverse_iterator<SecondaryStructureIterator> SecondaryStructureReverseIterator;
79 
81  typedef std::reverse_iterator<SecondaryStructureConstIterator> SecondaryStructureConstReverseIterator;
82 
85 
86 } // namespace BALL
87 
88 #endif // BALL_KERNEL_SECONDARYSTRUCTUREITERATOR_H
std::reverse_iterator< SecondaryStructureConstIterator > SecondaryStructureConstReverseIterator
SecondaryStructureIteratorTraits(const SecondaryStructureIteratorTraits &traits, bool=true)
#define IteratorWrapper(type)
#define ConstIteratorWrapper(type)
ConstBidirectionalIterator< Composite, SecondaryStructure, Composite::CompositeIterator, SecondaryStructureIteratorTraits > SecondaryStructureConstIterator
CompositeIteratorTraits & operator=(const CompositeIteratorTraits &traits)
Assignment operator.
Definition: iterator.h:259
BidirectionalIterator< Composite, Composite, Composite *, CompositeIteratorTraits > CompositeIterator
Definition: composite.h:1468
std::reverse_iterator< SecondaryStructureIterator > SecondaryStructureReverseIterator
SecondaryStructureIteratorTraits(const Composite &composite)
BidirectionalIterator< Composite, SecondaryStructure, Composite::CompositeIterator, SecondaryStructureIteratorTraits > SecondaryStructureIterator
#define BALL_EXPORT
Definition: COMMON/global.h:50