Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
TIterator Class Referenceabstract

Iterator abstract base class.

This base class provides the interface for collection iterators.

Note
See TList documentation for examples of derived classes and on how to loop with these iterators, and TCollection documentation for more modern alternatives that dynamically cast the derived class.

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.
TObjectoperator() ()
virtual TObjectoperator* () const
 Return current object or nullptr.
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 constexpr Version_t Class_Version ()
static const char * DeclFileName ()

Protected Member Functions

 TIterator ()
 TIterator (const TIterator &)

#include <TIterator.h>

Inheritance diagram for TIterator:
TIteratorToSTLInterface< RefCountList_t::Container_t > TIteratorToSTLInterface< Storage_t > RooAbsCategoryLegacyIterator RooDataHistSliceIter RooLinkedListIter RooLinkedListIterImpl TBtreeIter THashTableIter TIteratorToSTLInterface< STLContainer > TListIter TMapIter TObjArrayIter TOrdCollectionIter TRefArrayIter TTreeFriendLeafIter TViewPubDataMembersIter TViewPubFunctionsIter

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

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

◆ Class_Name()

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

◆ Class_Version()

constexpr Version_t TIterator::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 48 of file TIterator.h.

◆ DeclFileName()

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

◆ operator()()

TObject * TIterator::operator() ( )
inline

Definition at line 43 of file TIterator.h.

◆ operator*()

◆ 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: