ROOT logo
ROOT » CORE » CONT » TExMapIter

class TExMapIter


TExMap

This class stores a (key,value) pair using an external hash.
The (key,value) are Long_t's and therefore can contain object
pointers or any longs. The map uses an open addressing hashing
method (linear probing).


Function Members (Methods)

public:
TExMapIter(const TExMap* map)
TExMapIter(const TExMapIter& tei)
virtual~TExMapIter()
static TClass*Class()
const TExMap*GetCollection() const
virtual TClass*IsA() const
Bool_tNext(Long_t& key, Long_t& value)
Bool_tNext(ULong_t& hash, Long_t& key, Long_t& value)
TExMapIter&operator=(const TExMapIter&)
voidReset()
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

Data Members

private:
Int_tfCursor
const TExMap*fMap

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TExMapIter(const TExMap *map)
 Create TExMap iterator.
TExMapIter & operator=(const TExMapIter& )
 Overloaded assignment operator.
Bool_t Next(ULong_t& hash, Long_t& key, Long_t& value)
 Get next entry from TExMap. Returns kFALSE at end of map.
Bool_t Next(Long_t& key, Long_t& value)
 Get next entry from TExMap. Returns kFALSE at end of map.
TExMapIter(const TExMap *map)
virtual ~TExMapIter()
{ }
const TExMap * GetCollection() const
{ return fMap; }
void Reset()
{ fCursor = 0; }