Loading...
Searching...
No Matches
residueIterator.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: residueIterator.h,v 1.15 2005/10/23 12:02:20 oliver Exp $
//
#ifndef BALL_KERNEL_RESIDUEITERATOR_H
#define BALL_KERNEL_RESIDUEITERATOR_H
#ifndef BALL_KERNEL_ITERATOR_H
# include <BALL/KERNEL/iterator.h>
#endif
#ifndef BALL_KERNEL_PREDICATE_H
# include <BALL/KERNEL/predicate.h>
#endif
namespace BALL
{
class BALL_EXPORT ResidueIteratorTraits
: public CompositeIteratorTraits
{
public:
ResidueIteratorTraits()
: CompositeIteratorTraits()
{
predicate_ = &RTTI::getDefault<KernelPredicate<Residue> >();
}
ResidueIteratorTraits(const Composite& composite)
: CompositeIteratorTraits(composite)
{
predicate_ = &RTTI::getDefault<KernelPredicate<Residue> >();
}
ResidueIteratorTraits(const ResidueIteratorTraits& traits, bool /* deep */ = true)
: CompositeIteratorTraits(traits)
{
}
ResidueIteratorTraits& operator =(const ResidueIteratorTraits& traits)
{
CompositeIteratorTraits::operator=(traits);
return *this;
}
void resetPredicate()
{
predicate_ = &RTTI::getDefault<KernelPredicate<Residue> >();
}
};
typedef BidirectionalIterator
<Composite, Residue, Composite::CompositeIterator, ResidueIteratorTraits>
ResidueIterator;
typedef ConstBidirectionalIterator
<Composite, Residue, Composite::CompositeIterator, ResidueIteratorTraits>
ResidueConstIterator;
typedef std::reverse_iterator<ResidueIterator> ResidueReverseIterator;
typedef std::reverse_iterator<ResidueConstIterator> ResidueConstReverseIterator;
IteratorWrapper(Residue)
ConstIteratorWrapper(Residue)
} // namespace BALL
#endif // BALL_KERNEL_RESIDUEITERATOR_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::ResidueIteratorTraits
Definition residueIterator.h:26
BALL::ResidueIteratorTraits::resetPredicate
void resetPredicate()
Definition residueIterator.h:52
BALL::ResidueIteratorTraits::ResidueIteratorTraits
ResidueIteratorTraits()
Definition residueIterator.h:29
BALL::ResidueIteratorTraits::ResidueIteratorTraits
ResidueIteratorTraits(const ResidueIteratorTraits &traits, bool=true)
Definition residueIterator.h:41
BALL::ResidueIteratorTraits::ResidueIteratorTraits
ResidueIteratorTraits(const Composite &composite)
Definition residueIterator.h:35
BALL::Residue
Definition residue.h:38
iterator.h
BALL::RTTI::getDefault
const T & getDefault()
Definition rtti.h:75
BALL
Definition constants.h:13
BALL::ResidueConstReverseIterator
std::reverse_iterator< ResidueConstIterator > ResidueConstReverseIterator
Definition residueIterator.h:73
BALL::ResidueIterator
BidirectionalIterator< Composite, Residue, Composite::CompositeIterator, ResidueIteratorTraits > ResidueIterator
Definition residueIterator.h:62
BALL::ResidueReverseIterator
std::reverse_iterator< ResidueIterator > ResidueReverseIterator
Definition residueIterator.h:70
BALL::ResidueConstIterator
ConstBidirectionalIterator< Composite, Residue, Composite::CompositeIterator, ResidueIteratorTraits > ResidueConstIterator
Definition residueIterator.h:67
ConstIteratorWrapper
#define ConstIteratorWrapper(type)
Definition stdIteratorWrapper.h:17
IteratorWrapper
#define IteratorWrapper(type)
Definition stdIteratorWrapper.h:4