BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
nucleicAcidIterator.h
Go to the documentation of this file.
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4 // $Id: nucleicAcidIterator.h,v 1.11 2005/10/23 12:02:19 oliver Exp $
5 //
6 
7 #ifndef BALL_KERNEL_NUCLEICACIDITERATOR_H
8 #define BALL_KERNEL_NUCLEICACIDITERATOR_H
9 
10 #ifndef BALL_COMMON_H
11 # include <BALL/common.h>
12 #endif
13 
14 #ifndef BALL_KERNEL_NUCLEOTIDE_H
15 # include <BALL/KERNEL/nucleicAcid.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 {
28  class NucleicAcid;
29 
36  {
37  public:
38 
41  {
42  predicate_ = &RTTI::getDefault<KernelPredicate<NucleicAcid> >();
43  }
44 
46  : CompositeIteratorTraits(composite)
47  {
48  predicate_ = &RTTI::getDefault<KernelPredicate<NucleicAcid> >();
49  }
50 
51  NucleicAcidIteratorTraits(const NucleicAcidIteratorTraits& traits, bool /* deep */ = true)
52  : CompositeIteratorTraits(traits)
53  {
54  }
55 
57  {
59  return *this;
60  }
61 
63  {
64  predicate_ = &RTTI::getDefault<KernelPredicate<NucleicAcid> >();
65  }
66  };
67 
68 
69 
70  typedef BidirectionalIterator
71  <Composite, NucleicAcid, Composite::CompositeIterator, NucleicAcidIteratorTraits>
73 
77 
78  typedef std::reverse_iterator<NucleicAcidIterator> NucleicAcidReverseIterator;
79 
80  typedef std::reverse_iterator<NucleicAcidConstIterator> NucleicAcidConstReverseIterator;
81 
84 } // namespace BALL
85 
86 #endif // BALL_KERNEL_NUCLEICACIDITERATOR_H
NucleicAcidIteratorTraits(const Composite &composite)
NucleicAcidIteratorTraits(const NucleicAcidIteratorTraits &traits, bool=true)
std::reverse_iterator< NucleicAcidConstIterator > NucleicAcidConstReverseIterator
BidirectionalIterator< Composite, NucleicAcid, Composite::CompositeIterator, NucleicAcidIteratorTraits > NucleicAcidIterator
#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
std::reverse_iterator< NucleicAcidIterator > NucleicAcidReverseIterator
ConstBidirectionalIterator< Composite, NucleicAcid, Composite::CompositeIterator, NucleicAcidIteratorTraits > NucleicAcidConstIterator
#define BALL_EXPORT
Definition: COMMON/global.h:50