Loading...
Searching...
No Matches
nucleicAcidIterator.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: nucleicAcidIterator.h,v 1.11 2005/10/23 12:02:19 oliver Exp $
//
#ifndef BALL_KERNEL_NUCLEICACIDITERATOR_H
#define BALL_KERNEL_NUCLEICACIDITERATOR_H
#ifndef BALL_COMMON_H
# include <BALL/common.h>
#endif
#ifndef BALL_KERNEL_NUCLEOTIDE_H
# include <BALL/KERNEL/nucleicAcid.h>
#endif
#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 NucleicAcid;
class BALL_EXPORT NucleicAcidIteratorTraits
: public CompositeIteratorTraits
{
public:
NucleicAcidIteratorTraits()
: CompositeIteratorTraits()
{
predicate_ = &RTTI::getDefault<KernelPredicate<NucleicAcid> >();
}
NucleicAcidIteratorTraits(const Composite& composite)
: CompositeIteratorTraits(composite)
{
predicate_ = &RTTI::getDefault<KernelPredicate<NucleicAcid> >();
}
NucleicAcidIteratorTraits(const NucleicAcidIteratorTraits& traits, bool /* deep */ = true)
: CompositeIteratorTraits(traits)
{
}
NucleicAcidIteratorTraits& operator =(const NucleicAcidIteratorTraits& traits)
{
CompositeIteratorTraits::operator=(traits);
return *this;
}
void resetPredicate()
{
predicate_ = &RTTI::getDefault<KernelPredicate<NucleicAcid> >();
}
};
typedef BidirectionalIterator
<Composite, NucleicAcid, Composite::CompositeIterator, NucleicAcidIteratorTraits>
NucleicAcidIterator;
typedef ConstBidirectionalIterator
<Composite, NucleicAcid, Composite::CompositeIterator, NucleicAcidIteratorTraits>
NucleicAcidConstIterator;
typedef std::reverse_iterator<NucleicAcidIterator> NucleicAcidReverseIterator;
typedef std::reverse_iterator<NucleicAcidConstIterator> NucleicAcidConstReverseIterator;
IteratorWrapper(NucleicAcid)
ConstIteratorWrapper(NucleicAcid)
} // namespace BALL
#endif // BALL_KERNEL_NUCLEICACIDITERATOR_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::NucleicAcidIteratorTraits
Definition nucleicAcidIterator.h:36
BALL::NucleicAcidIteratorTraits::resetPredicate
void resetPredicate()
Definition nucleicAcidIterator.h:62
BALL::NucleicAcidIteratorTraits::NucleicAcidIteratorTraits
NucleicAcidIteratorTraits(const NucleicAcidIteratorTraits &traits, bool=true)
Definition nucleicAcidIterator.h:51
BALL::NucleicAcidIteratorTraits::NucleicAcidIteratorTraits
NucleicAcidIteratorTraits()
Definition nucleicAcidIterator.h:39
BALL::NucleicAcidIteratorTraits::NucleicAcidIteratorTraits
NucleicAcidIteratorTraits(const Composite &composite)
Definition nucleicAcidIterator.h:45
BALL::NucleicAcid
Definition nucleicAcid.h:29
common.h
iterator.h
BALL::RTTI::getDefault
const T & getDefault()
Definition rtti.h:75
BALL
Definition constants.h:13
BALL::NucleicAcidReverseIterator
std::reverse_iterator< NucleicAcidIterator > NucleicAcidReverseIterator
Definition nucleicAcidIterator.h:78
BALL::NucleicAcidConstReverseIterator
std::reverse_iterator< NucleicAcidConstIterator > NucleicAcidConstReverseIterator
Definition nucleicAcidIterator.h:80
BALL::NucleicAcidConstIterator
ConstBidirectionalIterator< Composite, NucleicAcid, Composite::CompositeIterator, NucleicAcidIteratorTraits > NucleicAcidConstIterator
Definition nucleicAcidIterator.h:76
BALL::NucleicAcidIterator
BidirectionalIterator< Composite, NucleicAcid, Composite::CompositeIterator, NucleicAcidIteratorTraits > NucleicAcidIterator
Definition nucleicAcidIterator.h:72
nucleicAcid.h
ConstIteratorWrapper
#define ConstIteratorWrapper(type)
Definition stdIteratorWrapper.h:17
IteratorWrapper
#define IteratorWrapper(type)
Definition stdIteratorWrapper.h:4