Logo ROOT   6.14/05
Reference Guide
List of all members | Public Member Functions | Protected Member Functions | List of all members
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 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 &)
 
Bool_t operator== (const TIterator &other) const
 
virtual void Reset ()=0
 

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

◆ GetCollection()

virtual const TCollection* TIterator::GetCollection ( ) const
pure virtual

◆ GetOption()

virtual Option_t* TIterator::GetOption ( ) const
inlinevirtual

Reimplemented in TTreeFriendLeafIter, and TListIter.

Definition at line 40 of file TIterator.h.

◆ Next()

virtual TObject* TIterator::Next ( )
pure virtual

◆ 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, TListIter, TMapIter, TObjArrayIter, TRefArrayIter, THashTableIter, TViewPubFunctionsIter, TOrdCollectionIter, TViewPubDataMembersIter, RooLinkedListIter, TFileIter, RooMultiCatIter, and RooDataHistSliceIter.

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 TTreeFriendLeafIter, TBtreeIter, TListIter, TMapIter, TObjArrayIter, TRefArrayIter, THashTableIter, TViewPubFunctionsIter, TOrdCollectionIter, TViewPubDataMembersIter, RooLinkedListIter, TFileIter, RooMultiCatIter, and RooDataHistSliceIter.

Definition at line 39 of file TIterator.cxx.

◆ operator=()

virtual TIterator& TIterator::operator= ( const TIterator )
inlinevirtual

◆ operator==()

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

Definition at line 45 of file TIterator.h.

◆ Reset()

virtual void TIterator::Reset ( )
pure virtual

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