ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TListIter Class Reference

Iterator of linked list.

Definition at line 187 of file TList.h.

Public Member Functions

 TListIter (const TList *l, Bool_t dir=kIterForward)
 
 TListIter (const TListIter &iter)
 Copy ctor. More...
 
 ~TListIter ()
 
TIteratoroperator= (const TIterator &rhs)
 Overridden assignment operator. More...
 
TListIteroperator= (const TListIter &rhs)
 Overloaded assignment operator. More...
 
const TCollectionGetCollection () const
 
Option_tGetOption () const
 Returns the object option stored in the list. More...
 
void SetOption (Option_t *option)
 Sets the object option stored in the list. More...
 
TObjectNext ()
 Return next object in the list. Returns 0 when no more objects in list. More...
 
void Reset ()
 Reset list iterator. More...
 
Bool_t operator!= (const TIterator &aIter) const
 This operator compares two TIterator objects. More...
 
Bool_t operator!= (const TListIter &aIter) const
 This operator compares two TListIter objects. More...
 
TObjectoperator* () const
 Return current object or nullptr. More...
 
- Public Member Functions inherited from TIterator
virtual ~TIterator ()
 
TObjectoperator() ()
 
Bool_t operator== (const TIterator &other) const
 

Protected Member Functions

 TListIter ()
 
- Protected Member Functions inherited from TIterator
 TIterator ()
 
 TIterator (const TIterator &)
 

Protected Attributes

const TListfList
 
TObjLinkfCurCursor
 
TObjLinkfCursor
 
Bool_t fDirection
 
Bool_t fStarted
 

#include <TList.h>

Inheritance diagram for TListIter:
[legend]

Constructor & Destructor Documentation

TListIter::TListIter ( )
inlineprotected

Definition at line 199 of file TList.h.

TListIter::TListIter ( const TList l,
Bool_t  dir = kIterForward 
)
TListIter::TListIter ( const TListIter iter)

Copy ctor.

Definition at line 888 of file TList.cxx.

TListIter::~TListIter ( )
inline

Definition at line 205 of file TList.h.

Member Function Documentation

const TCollection* TListIter::GetCollection ( ) const
inlinevirtual

Implements TIterator.

Definition at line 209 of file TList.h.

Referenced by THashTableIter::operator=(), and THashTableIter::THashTableIter().

Option_t * TListIter::GetOption ( ) const
virtual

Returns the object option stored in the list.

Reimplemented from TIterator.

Definition at line 960 of file TList.cxx.

Referenced by TMultiGraph::GetGraphDrawOption().

TObject * TListIter::Next ( )
virtual

Return next object in the list. Returns 0 when no more objects in list.

Implements TIterator.

Reimplemented in TFileIter, TListOfFunctionsIter, and TListOfEnumsWithLockIter.

Definition at line 933 of file TList.cxx.

Referenced by TGClient::HandleEvent(), TListOfEnumsWithLockIter::Next(), THashTableIter::Next(), TListOfFunctionsIter::Next(), TRecorderReplaying::RemapWindowReferences(), and TLegend::TLegend().

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

This operator compares two TIterator objects.

Reimplemented from TIterator.

Reimplemented in TFileIter.

Definition at line 985 of file TList.cxx.

Referenced by TFileIter::operator!=().

Bool_t TListIter::operator!= ( const TListIter aIter) const

This operator compares two TListIter objects.

Definition at line 1000 of file TList.cxx.

TObject* TListIter::operator* ( ) const
inlinevirtual

Return current object or nullptr.

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

Reimplemented from TIterator.

Reimplemented in TFileIter.

Definition at line 216 of file TList.h.

TIterator & TListIter::operator= ( const TIterator rhs)
virtual

Overridden assignment operator.

Reimplemented from TIterator.

Reimplemented in TFileIter.

Definition at line 900 of file TList.cxx.

TListIter & TListIter::operator= ( const TListIter rhs)

Overloaded assignment operator.

Definition at line 917 of file TList.cxx.

void TListIter::Reset ( void  )
virtual
void TListIter::SetOption ( Option_t option)

Sets the object option stored in the list.

Definition at line 969 of file TList.cxx.

Member Data Documentation

TObjLink* TListIter::fCurCursor
protected
TObjLink* TListIter::fCursor
protected

Definition at line 195 of file TList.h.

Referenced by Next(), operator=(), TFileIter::Reset(), TFileIter::SkipObjects(), and TListIter().

Bool_t TListIter::fDirection
protected
const TList* TListIter::fList
protected
Bool_t TListIter::fStarted
protected

Definition at line 197 of file TList.h.

Referenced by Next(), operator=(), Reset(), and TListIter().

Collaboration diagram for TListIter:
[legend]

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