#include <OTC/collctn/prmodifr.hh> template<class T1, class T2> class OTC_PairModifier : public OTC_PairIterator<T1,T2> {
public:
static os_typespec* get_os_typespec();
inline OTC_PairModifier();
inline OTC_PairModifier(OTC_PairCursor<T1,T2>* theIter);
inline OTC_PairModifier(OTC_PairModifier<T1,T2> const& theIter);
inline OTC_PairModifier<T1,T2>& operator=( OTC_PairCursor<T1,T2>* theIter );
inline OTC_PairModifier<T1,T2>& operator=( OTC_PairModifier<T1,T2> const& theIter );
inline T2& item() const;
inline OTC_PairModifier<T1,T2> clone() const;
inline void apply(OTC_PairVisitor<T1,T2>& theApplicator);
inline void apply(OTC_PairWorker<T1,T2>& theApplicator);
};
new
. The difference between
this class and OTC_PairModifier
is that it is possible to
modify the items through this class.
inline OTC_PairModifier();
inline OTC_PairModifier(OTC_PairCursor<T1,T2>* theIter);
theIter
is 0
a
null iterator is constructed.
inline OTC_PairModifier(OTC_PairModifier<T1,T2> const& theIter);
inline OTC_PairModifier<T1,T2>& operator=(
OTC_PairCursor<T1,T2>* theIter
);
theIter
.
If theIter
is 0
, the iterator
is turned into a null iterator and
all associations with the previous
collection are lost.
inline OTC_PairModifier<T1,T2>& operator=(
OTC_PairModifier<T1,T2> const& theIter
);
theIter
.
inline T2& item() const;
inline OTC_PairModifier<T1,T2> clone() const;
inline void apply(OTC_PairVisitor<T1,T2>& theApplicator);
theApplicator
to each key/item
pair accessible by this iterator.
inline void apply(OTC_PairWorker<T1,T2>& theApplicator);
theApplicator
to each key/item
pair accessible by this iterator.