BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
nucleotideIterator.h
Go to the documentation of this file.
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4 // $Id: nucleotideIterator.h,v 1.13 2005/10/23 12:02:19 oliver Exp $
5 //
6 
7 #ifndef BALL_KERNEL_NUCLEOTIDEITERATOR_H
8 #define BALL_KERNEL_NUCLEOTIDEITERATOR_H
9 
10 #ifndef BALL_KERNEL_ITERATOR_H
11 # include <BALL/KERNEL/iterator.h>
12 #endif
13 
14 #ifndef BALL_KERNEL_PREDICATE_H
15 # include <BALL/KERNEL/predicate.h>
16 #endif
17 
18 #ifndef BALL_CONCEPT_STDITERATORWRAPPER_H
20 #endif
21 
22 namespace BALL
23 {
24  class Nucleotide;
25 
31  {
32  public:
33 
36  {
37  predicate_ = &RTTI::getDefault<KernelPredicate<Nucleotide> >();
38  }
39 
41  : CompositeIteratorTraits(composite)
42  {
43  predicate_ = &RTTI::getDefault<KernelPredicate<Nucleotide> >();
44  }
45 
46  NucleotideIteratorTraits(const NucleotideIteratorTraits& traits, bool /* deep */ = true)
47  : CompositeIteratorTraits(traits)
48  {
49  }
50 
52  {
54  return *this;
55  }
56 
58  {
59  predicate_ = &RTTI::getDefault<KernelPredicate<Nucleotide> >();
60  }
61  };
62 
63 
64 
65  typedef BidirectionalIterator
66  <Composite, Nucleotide, Composite::CompositeIterator, NucleotideIteratorTraits>
68 
72 
73  typedef std::reverse_iterator<NucleotideIterator> NucleotideReverseIterator;
74 
75  typedef std::reverse_iterator<NucleotideConstIterator> NucleotideConstReverseIterator;
76 
79 } // namespace BALL
80 
81 #endif // BALL_KERNEL_NUCLEOTIDEITERATOR_H
NucleotideIteratorTraits(const Composite &composite)
std::reverse_iterator< NucleotideIterator > NucleotideReverseIterator
BidirectionalIterator< Composite, Nucleotide, Composite::CompositeIterator, NucleotideIteratorTraits > NucleotideIterator
#define IteratorWrapper(type)
#define ConstIteratorWrapper(type)
CompositeIteratorTraits & operator=(const CompositeIteratorTraits &traits)
Assignment operator.
Definition: iterator.h:259
BidirectionalIterator< Composite, Composite, Composite *, CompositeIteratorTraits > CompositeIterator
Definition: composite.h:1468
NucleotideIteratorTraits(const NucleotideIteratorTraits &traits, bool=true)
ConstBidirectionalIterator< Composite, Nucleotide, Composite::CompositeIterator, NucleotideIteratorTraits > NucleotideConstIterator
std::reverse_iterator< NucleotideConstIterator > NucleotideConstReverseIterator
#define BALL_EXPORT
Definition: COMMON/global.h:50