class TMapIter: public TIterator


TMapIter

Iterator of map.


Function Members (Methods)

public:
TMapIter(const TMapIter& iter)
TMapIter(const TMap* map, Bool_t dir = kIterForward)
virtual~TMapIter()
static TClass*Class()
virtual const TCollection*GetCollection() const
virtual Option_t*TIterator::GetOption() const
virtual TClass*IsA() const
virtual TObject*Next()
TObject*TIterator::operator()()
virtual TIterator&operator=(const TIterator& rhs)
TMapIter&operator=(const TMapIter& rhs)
virtual voidReset()
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
private:
TMapIter()

Data Members

private:
THashTableIter*fCursorcurrent position in map
Bool_tfDirectioniteration direction
const TMap*fMapmap being iterated

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TMapIter(const TMap* map, Bool_t dir = kIterForward)
 Create a map iterator. Use dir to specify the desired iteration direction.
TMapIter(const TMapIter& iter)
 Copy ctor.
TIterator & operator=(const TIterator &rhs)
 Overridden assignment operator.
TMapIter & operator=(const TMapIter &rhs)
 Overloaded assignment operator.
~TMapIter()
 Map iterator dtor.
TObject * Next()
 Returns the next key from a map. Use TMap::GetValue() to get the value
 associated with the key. Returns 0 when no more items in map.
void Reset()
 Reset the map iterator.
TMapIter(const TMapIter& iter)
{ }
const TCollection * GetCollection()
{ return fMap; }

Author: Fons Rademakers 12/11/95
Last update: root/cont:$Id: TMap.h 20882 2007-11-19 11:31:26Z rdm $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.