Loading [MathJax]/extensions/tex2jax.js
Logo ROOT  
Reference Guide
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Loading...
Searching...
No Matches
TObjArrayIter Class Reference

Iterator of object array.

Definition at line 123 of file TObjArray.h.

Public Member Functions

 TObjArrayIter (const TObjArray *arr, Bool_t dir=kIterForward)
 Create array iterator.
 
 TObjArrayIter (const TObjArrayIter &iter)
 Copy ctor.
 
 ~TObjArrayIter ()
 
const TCollectionGetCollection () const
 
TObjectNext ()
 Return next object in array. Returns 0 when no more objects in array.
 
Bool_t operator!= (const TIterator &aIter) const
 This operator compares two TIterator objects.
 
Bool_t operator!= (const TObjArrayIter &aIter) const
 This operator compares two TObjArrayIter objects.
 
TObjectoperator* () const
 Return current object or nullptr.
 
TIteratoroperator= (const TIterator &rhs)
 Overridden assignment operator.
 
TObjArrayIteroperator= (const TObjArrayIter &rhs)
 Overloaded assignment operator.
 
void Reset ()
 Reset array iterator.
 
- Public Member Functions inherited from TIterator
virtual ~TIterator ()
 
virtual Option_tGetOption () const
 
TObjectoperator() ()
 
Bool_t operator== (const TIterator &other) const
 

Private Member Functions

 TObjArrayIter ()
 

Private Attributes

const TObjArrayfArray
 
Int_t fCurCursor
 
Int_t fCursor
 
Bool_t fDirection
 

Additional Inherited Members

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

#include <TObjArray.h>

Inheritance diagram for TObjArrayIter:
[legend]

Constructor & Destructor Documentation

◆ TObjArrayIter() [1/3]

TObjArrayIter::TObjArrayIter ( )
inlineprivate

Definition at line 134 of file TObjArray.h.

◆ TObjArrayIter() [2/3]

TObjArrayIter::TObjArrayIter ( const TObjArray arr,
Bool_t  dir = kIterForward 
)

Create array iterator.

By default the iteration direction is kIterForward. To go backward use kIterBackward.

Definition at line 881 of file TObjArray.cxx.

◆ TObjArrayIter() [3/3]

TObjArrayIter::TObjArrayIter ( const TObjArrayIter iter)

Copy ctor.

Definition at line 891 of file TObjArray.cxx.

◆ ~TObjArrayIter()

TObjArrayIter::~TObjArrayIter ( )
inline

Definition at line 139 of file TObjArray.h.

Member Function Documentation

◆ GetCollection()

const TCollection * TObjArrayIter::GetCollection ( ) const
inlinevirtual

Implements TIterator.

Definition at line 143 of file TObjArray.h.

◆ Next()

TObject * TObjArrayIter::Next ( )
virtual

Return next object in array. Returns 0 when no more objects in array.

Implements TIterator.

Definition at line 931 of file TObjArray.cxx.

◆ operator!=() [1/2]

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

This operator compares two TIterator objects.

Reimplemented from TIterator.

Definition at line 969 of file TObjArray.cxx.

◆ operator!=() [2/2]

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

This operator compares two TObjArrayIter objects.

Definition at line 981 of file TObjArray.cxx.

◆ operator*()

TObject * TObjArrayIter::operator* ( ) const
virtual

Return current object or nullptr.

Reimplemented from TIterator.

Definition at line 989 of file TObjArray.cxx.

◆ operator=() [1/2]

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

Overridden assignment operator.

Reimplemented from TIterator.

Definition at line 902 of file TObjArray.cxx.

◆ operator=() [2/2]

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

Overloaded assignment operator.

Definition at line 917 of file TObjArray.cxx.

◆ Reset()

void TObjArrayIter::Reset ( )
virtual

Reset array iterator.

Implements TIterator.

Definition at line 956 of file TObjArray.cxx.

Member Data Documentation

◆ fArray

const TObjArray* TObjArrayIter::fArray
private

Definition at line 129 of file TObjArray.h.

◆ fCurCursor

Int_t TObjArrayIter::fCurCursor
private

Definition at line 130 of file TObjArray.h.

◆ fCursor

Int_t TObjArrayIter::fCursor
private

Definition at line 131 of file TObjArray.h.

◆ fDirection

Bool_t TObjArrayIter::fDirection
private

Definition at line 132 of file TObjArray.h.

  • core/cont/inc/TObjArray.h
  • core/cont/src/TObjArray.cxx