BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
moleculeIterator.h
Go to the documentation of this file.
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4 // $Id: moleculeIterator.h,v 1.16 2005/10/23 12:02:19 oliver Exp $
5 //
6 
7 #ifndef BALL_KERNEL_MOLECULEITERATOR_H
8 #define BALL_KERNEL_MOLECULEITERATOR_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 {
29  {
30  public:
31 
34  {
35  predicate_ = &RTTI::getDefault<KernelPredicate<Molecule> >();
36  }
37 
39  : CompositeIteratorTraits(composite)
40  {
41  predicate_ = &RTTI::getDefault<KernelPredicate<Molecule> >();
42  }
43 
44  MoleculeIteratorTraits(const MoleculeIteratorTraits& traits, bool /* deep */ = true)
45  : CompositeIteratorTraits(traits)
46  {
47  }
48 
49  MoleculeIteratorTraits &operator = (const MoleculeIteratorTraits& traits)
50  {
52  return *this;
53  }
54 
56  {
57  predicate_ = &RTTI::getDefault<KernelPredicate<Molecule> >();
58  }
59  };
60 
61 
63  typedef BidirectionalIterator
64  <Composite, Molecule, Composite::CompositeIterator, MoleculeIteratorTraits>
66 
71 
73  typedef std::reverse_iterator<MoleculeIterator> MoleculeReverseIterator;
74 
76  typedef std::reverse_iterator<MoleculeConstIterator> MoleculeConstReverseIterator;
77 
80 } // namespace BALL
81 
82 #endif // BALL_KERNEL_MOLECULEITERATOR_H
std::reverse_iterator< MoleculeConstIterator > MoleculeConstReverseIterator
ConstBidirectionalIterator< Composite, Molecule, Composite::CompositeIterator, MoleculeIteratorTraits > MoleculeConstIterator
MoleculeIteratorTraits(const Composite &composite)
MoleculeIteratorTraits(const MoleculeIteratorTraits &traits, bool=true)
#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< MoleculeIterator > MoleculeReverseIterator
BidirectionalIterator< Composite, Molecule, Composite::CompositeIterator, MoleculeIteratorTraits > MoleculeIterator
#define BALL_EXPORT
Definition: COMMON/global.h:50