Logo ROOT  
Reference Guide
TIterator Class Referenceabstract

Iterator abstract base class.

This base class provides the interface for collection iterators.

Definition at line 30 of file TIterator.h.

Public Member Functions

virtual ~TIterator ()
 
virtual const TCollectionGetCollection () const =0
 
virtual Option_tGetOption () const
 
virtual TClassIsA () const
 
virtual TObjectNext ()=0
 
virtual Bool_t operator!= (const TIterator &) const
 Compare two iterator objects. More...
 
TObjectoperator() ()
 
virtual TObjectoperator* () const
 Return current object or nullptr. More...
 
virtual TIteratoroperator= (const TIterator &)=0
 
Bool_t operator== (const TIterator &other) const
 
virtual void Reset ()=0
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Protected Member Functions

 TIterator ()
 
 TIterator (const TIterator &)
 

#include <TIterator.h>

Inheritance diagram for TIterator:
[legend]

Constructor & Destructor Documentation

◆ TIterator() [1/2]

TIterator::TIterator ( )
inlineprotected

Definition at line 33 of file TIterator.h.

◆ TIterator() [2/2]

TIterator::TIterator ( const TIterator )
inlineprotected

Definition at line 34 of file TIterator.h.

◆ ~TIterator()

virtual TIterator::~TIterator ( )
inlinevirtual

Definition at line 38 of file TIterator.h.

Member Function Documentation

◆ Class()

static TClass * TIterator::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TIterator::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static Version_t TIterator::Class_Version ( )
inlinestatic
Returns
Version of this class

Definition at line 48 of file TIterator.h.

◆ DeclFileName()

static const char * TIterator::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 48 of file TIterator.h.

◆ GetCollection()

◆ GetOption()

virtual Option_t * TIterator::GetOption ( ) const
inlinevirtual

Reimplemented in TListIter, and TTreeFriendLeafIter.

Definition at line 40 of file TIterator.h.

◆ IsA()

virtual TClass * TIterator::IsA ( ) const
inlinevirtual

◆ Next()

◆ operator!=()

Bool_t TIterator::operator!= ( const TIterator ) const
virtual

Compare two iterator objects.

For backward compatibility reasons we have to provide this default implementation.

Reimplemented in TTreeFriendLeafIter, TBtreeIter, THashTableIter, TListIter, TMapIter, TObjArrayIter, TOrdCollectionIter, TRefArrayIter, TViewPubDataMembersIter, TViewPubFunctionsIter, RooDataHistSliceIter, RooLinkedListIterImpl, TIteratorToSTLInterface< STLContainer >, and RooLinkedListIter.

Definition at line 28 of file TIterator.cxx.

◆ operator()()

TObject * TIterator::operator() ( )
inline

Definition at line 43 of file TIterator.h.

◆ operator*()

TObject * TIterator::operator* ( ) const
virtual

Return current object or nullptr.

For backward compatibility reasons we have to provide this default implementation.

Reimplemented in TBtreeIter, THashTableIter, TListIter, TMapIter, TObjArrayIter, TOrdCollectionIter, TRefArrayIter, TViewPubDataMembersIter, TViewPubFunctionsIter, RooDataHistSliceIter, TIteratorToSTLInterface< STLContainer >, RooLinkedListIter, RooLinkedListIterImpl, RooAbsCategoryLegacyIterator, and TTreeFriendLeafIter.

Definition at line 39 of file TIterator.cxx.

◆ operator=()

◆ operator==()

Bool_t TIterator::operator== ( const TIterator other) const
inline

Definition at line 45 of file TIterator.h.

◆ Reset()

◆ Streamer()

◆ StreamerNVirtual()

void TIterator::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 48 of file TIterator.h.


The documentation for this class was generated from the following files: