BALL  1.5.0
proteinIterator.h
Go to the documentation of this file.
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4 // $Id: proteinIterator.h,v 1.15 2005/10/23 12:02:20 oliver Exp $
5 //
6 
7 #ifndef BALL_KERNEL_PROTEINITERATOR_H
8 #define BALL_KERNEL_PROTEINITERATOR_H
9 
10 #ifndef BALL_KERNEL_ITERATOR_H
11 # include <BALL/KERNEL/iterator.h>
12 #endif
13 
14 #ifndef BALL_KERNEL_PROTEIN_H
15 # include <BALL/KERNEL/protein.h>
16 #endif
17 
18 #ifndef BALL_KERNEL_PREDICATE_H
19 # include <BALL/KERNEL/predicate.h>
20 #endif
21 
22 namespace BALL
23 {
30  {
31  public:
32 
35  {
36  predicate_ = &RTTI::getDefault<KernelPredicate<Protein> >();
37  }
38 
39  ProteinIteratorTraits(const Composite& composite)
40  : CompositeIteratorTraits(composite)
41  {
42  predicate_ = &RTTI::getDefault<KernelPredicate<Protein> >();
43  }
44 
45  ProteinIteratorTraits(const ProteinIteratorTraits& traits, bool /* deep */ = true)
46  : CompositeIteratorTraits(traits)
47  {
48  }
49 
50  ProteinIteratorTraits& operator = (const ProteinIteratorTraits& traits)
51  {
53  return *this;
54  }
55 
57  {
58  predicate_ = &RTTI::getDefault<KernelPredicate<Protein> >();
59  }
60  };
61 
62 
64  typedef BidirectionalIterator
65  <Composite, Protein, Composite::CompositeIterator,ProteinIteratorTraits>
67 
72 
74  typedef std::reverse_iterator<ProteinIterator> ProteinReverseIterator;
75 
77  typedef std::reverse_iterator<ProteinConstIterator> ProteinConstReverseIterator;
78 
81 } // namespace BALL
82 
83 #endif // BALL_KERNEL_PROTEINITERATOR_H
BALL::CompositeIteratorTraits::operator=
CompositeIteratorTraits & operator=(const CompositeIteratorTraits &traits)
Assignment operator.
Definition: iterator.h:259
BALL_EXPORT
#define BALL_EXPORT
Definition: COMMON/global.h:50
BALL::ProteinIteratorTraits::resetPredicate
void resetPredicate()
Definition: proteinIterator.h:56
BALL::ProteinIteratorTraits::ProteinIteratorTraits
ProteinIteratorTraits(const ProteinIteratorTraits &traits, bool=true)
Definition: proteinIterator.h:45
BALL::ProteinIteratorTraits
Definition: proteinIterator.h:28
IteratorWrapper
#define IteratorWrapper(type)
Definition: stdIteratorWrapper.h:4
BALL::ProteinIteratorTraits::ProteinIteratorTraits
ProteinIteratorTraits()
Definition: proteinIterator.h:33
BALL::ConstBidirectionalIterator
Definition: bidirectionalIterator.h:23
BALL::ProteinConstIterator
ConstBidirectionalIterator< Composite, Protein, Composite::CompositeIterator, ProteinIteratorTraits > ProteinConstIterator
Definition: proteinIterator.h:71
BALL
Definition: constants.h:12
predicate.h
ConstIteratorWrapper
#define ConstIteratorWrapper(type)
Definition: stdIteratorWrapper.h:17
BALL::Protein
Definition: protein.h:28
protein.h
BALL::ProteinReverseIterator
std::reverse_iterator< ProteinIterator > ProteinReverseIterator
Definition: proteinIterator.h:74
BALL::ProteinIteratorTraits::ProteinIteratorTraits
ProteinIteratorTraits(const Composite &composite)
Definition: proteinIterator.h:39
BALL::Composite::CompositeIterator
BidirectionalIterator< Composite, Composite, Composite *, CompositeIteratorTraits > CompositeIterator
Definition: composite.h:1468
BALL::ProteinIterator
BidirectionalIterator< Composite, Protein, Composite::CompositeIterator, ProteinIteratorTraits > ProteinIterator
Definition: proteinIterator.h:66
BALL::CompositeIteratorTraits
Definition: iterator.h:83
BALL::ProteinConstReverseIterator
std::reverse_iterator< ProteinConstIterator > ProteinConstReverseIterator
Definition: proteinIterator.h:77
BALL::Composite
Definition: composite.h:71
iterator.h