Logo ROOT   6.19/01
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 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:

Constructor & Destructor Documentation

◆ TIterator() [1/2]

TIterator::TIterator ( )

Definition at line 33 of file TIterator.h.

◆ TIterator() [2/2]

TIterator::TIterator ( const TIterator )

Definition at line 34 of file TIterator.h.

◆ ~TIterator()

virtual TIterator::~TIterator ( )

Definition at line 38 of file TIterator.h.

Member Function Documentation

◆ GetCollection()

◆ GetOption()

virtual Option_t* TIterator::GetOption ( ) const

Reimplemented in TTreeFriendLeafIter, and TListIter.

Definition at line 40 of file TIterator.h.

◆ Next()

◆ operator!=()

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

Compare two iterator objects.

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

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

Definition at line 28 of file TIterator.cxx.

◆ operator()()

TObject* TIterator::operator() ( )

Definition at line 43 of file TIterator.h.

◆ operator*()

TObject * TIterator::operator* ( ) const

◆ operator=()

◆ operator==()

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

Definition at line 45 of file TIterator.h.

◆ Reset()

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