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 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()

◆ GetOption()

virtual Option_t * TIterator::GetOption ( ) const
inlinevirtual

Reimplemented in TListIter, and TTreeFriendLeafIter.

Definition at line 40 of file TIterator.h.

◆ 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, RooMultiCatIter, 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

◆ operator=()

◆ operator==()

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

Definition at line 45 of file TIterator.h.

◆ Reset()


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