library: libCore
#include "TMap.h"


class description - header file - source file
viewCVS header - viewCVS source

class TMapIter: public TIterator

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
TMapIter(const TMapIter& iter)
TMapIter(const TMap* map, Bool_t dir = kIterForward)
static TClass*Class()
virtual const TCollection*GetCollection() const
virtual Option_t*TIterator::GetOption() const
virtual TClass*IsA() const
virtual TObject*Next()
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)

Data Members

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

Class Description

 TMap implements an associative array of (key,value) pairs using a    
 THashTable for efficient retrieval (therefore TMap does not conserve 
 the order of the entries). The hash value is calculated              
 using the value returned by the keys Hash() function. Both key and   
 value need to inherit from TObject.                                  
/* */

TMapIter(const TMap *m, Bool_t dir)
 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.
 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.
{ }
const TCollection * GetCollection()
{ return fMap; }

Author: Fons Rademakers 12/11/95
Last update: root/cont:$Name: $:$Id: TMap.cxx,v 1.15 2006/03/20 21:43:41 pcanal Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *

ROOT page - Class index - Class Hierarchy - Top of the page

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.