Loading...
Searching...
No Matches
proteinIterator.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: proteinIterator.h,v 1.15 2005/10/23 12:02:20 oliver Exp $
//
#ifndef BALL_KERNEL_PROTEINITERATOR_H
#define BALL_KERNEL_PROTEINITERATOR_H
#ifndef BALL_KERNEL_ITERATOR_H
# include <BALL/KERNEL/iterator.h>
#endif
#ifndef BALL_KERNEL_PROTEIN_H
# include <BALL/KERNEL/protein.h>
#endif
#ifndef BALL_KERNEL_PREDICATE_H
# include <BALL/KERNEL/predicate.h>
#endif
namespace BALL
{
class BALL_EXPORT ProteinIteratorTraits
: public CompositeIteratorTraits
{
public:
ProteinIteratorTraits()
: CompositeIteratorTraits()
{
predicate_ = &RTTI::getDefault<KernelPredicate<Protein> >();
}
ProteinIteratorTraits(const Composite& composite)
: CompositeIteratorTraits(composite)
{
predicate_ = &RTTI::getDefault<KernelPredicate<Protein> >();
}
ProteinIteratorTraits(const ProteinIteratorTraits& traits, bool /* deep */ = true)
: CompositeIteratorTraits(traits)
{
}
ProteinIteratorTraits& operator = (const ProteinIteratorTraits& traits)
{
CompositeIteratorTraits::operator=(traits);
return *this;
}
void resetPredicate()
{
predicate_ = &RTTI::getDefault<KernelPredicate<Protein> >();
}
};
typedef BidirectionalIterator
<Composite, Protein, Composite::CompositeIterator,ProteinIteratorTraits>
ProteinIterator;
typedef ConstBidirectionalIterator
<Composite, Protein, Composite::CompositeIterator, ProteinIteratorTraits>
ProteinConstIterator;
typedef std::reverse_iterator<ProteinIterator> ProteinReverseIterator;
typedef std::reverse_iterator<ProteinConstIterator> ProteinConstReverseIterator;
IteratorWrapper(Protein)
ConstIteratorWrapper(Protein)
} // namespace BALL
#endif // BALL_KERNEL_PROTEINITERATOR_H
BALL_EXPORT
#define BALL_EXPORT
Definition COMMON/global.h:50
predicate.h
BALL::CompositeIteratorTraits::predicate_
const UnaryPredicate< Composite > * predicate_
The predicate.
Definition iterator.h:235
BALL::CompositeIteratorTraits::CompositeIteratorTraits
CompositeIteratorTraits()
Default constructor.
Definition iterator.h:238
BALL::CompositeIteratorTraits::operator=
CompositeIteratorTraits & operator=(const CompositeIteratorTraits &traits)
Assignment operator.
Definition iterator.h:259
BALL::Composite
Definition composite.h:74
BALL::Composite::CompositeIterator
BidirectionalIterator< Composite, Composite, Composite *, CompositeIteratorTraits > CompositeIterator
Definition composite.h:1468
BALL::ConstBidirectionalIterator
Definition bidirectionalIterator.h:25
BALL::ProteinIteratorTraits
Definition proteinIterator.h:30
BALL::ProteinIteratorTraits::ProteinIteratorTraits
ProteinIteratorTraits(const ProteinIteratorTraits &traits, bool=true)
Definition proteinIterator.h:45
BALL::ProteinIteratorTraits::ProteinIteratorTraits
ProteinIteratorTraits(const Composite &composite)
Definition proteinIterator.h:39
BALL::ProteinIteratorTraits::ProteinIteratorTraits
ProteinIteratorTraits()
Definition proteinIterator.h:33
BALL::ProteinIteratorTraits::resetPredicate
void resetPredicate()
Definition proteinIterator.h:56
BALL::Protein
Definition protein.h:30
iterator.h
BALL::RTTI::getDefault
const T & getDefault()
Definition rtti.h:75
BALL
Definition constants.h:13
BALL::ProteinIterator
BidirectionalIterator< Composite, Protein, Composite::CompositeIterator, ProteinIteratorTraits > ProteinIterator
Definition proteinIterator.h:66
BALL::ProteinConstReverseIterator
std::reverse_iterator< ProteinConstIterator > ProteinConstReverseIterator
Definition proteinIterator.h:77
BALL::ProteinConstIterator
ConstBidirectionalIterator< Composite, Protein, Composite::CompositeIterator, ProteinIteratorTraits > ProteinConstIterator
Definition proteinIterator.h:71
BALL::ProteinReverseIterator
std::reverse_iterator< ProteinIterator > ProteinReverseIterator
Definition proteinIterator.h:74
protein.h
ConstIteratorWrapper
#define ConstIteratorWrapper(type)
Definition stdIteratorWrapper.h:17
IteratorWrapper
#define IteratorWrapper(type)
Definition stdIteratorWrapper.h:4