ROOT  6.06/09
Reference Guide
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TObjArrayIter Class Reference

Iterator of object array.

Definition at line 124 of file TObjArray.h.

Public Member Functions

 TObjArrayIter (const TObjArray *arr, Bool_t dir=kIterForward)
 
 TObjArrayIter (const TObjArrayIter &iter)
 Copy ctor. More...
 
 ~TObjArrayIter ()
 
TIteratoroperator= (const TIterator &rhs)
 Overridden assignment operator. More...
 
TObjArrayIteroperator= (const TObjArrayIter &rhs)
 Overloaded assignment operator. More...
 
const TCollectionGetCollection () const
 
TObjectNext ()
 Return next object in array. Returns 0 when no more objects in array. More...
 
void Reset ()
 Reset array iterator. More...
 
Bool_t operator!= (const TIterator &aIter) const
 This operator compares two TIterator objects. More...
 
Bool_t operator!= (const TObjArrayIter &aIter) const
 This operator compares two TObjArrayIter objects. More...
 
TObjectoperator* () const
 Return current object or nullptr. More...
 
- 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:
+ Collaboration diagram for TObjArrayIter:

Constructor & Destructor Documentation

TObjArrayIter::TObjArrayIter ( )
inlineprivate

Definition at line 135 of file TObjArray.h.

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

Copy ctor.

Definition at line 812 of file TObjArray.cxx.

TObjArrayIter::~TObjArrayIter ( )
inline

Definition at line 140 of file TObjArray.h.

Member Function Documentation

const TCollection* TObjArrayIter::GetCollection ( ) const
inlinevirtual

Implements TIterator.

Definition at line 144 of file TObjArray.h.

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

This operator compares two TIterator objects.

Reimplemented from TIterator.

Definition at line 890 of file TObjArray.cxx.

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

This operator compares two TObjArrayIter objects.

Definition at line 902 of file TObjArray.cxx.

TObject * TObjArrayIter::operator* ( ) const
virtual

Return current object or nullptr.

Reimplemented from TIterator.

Definition at line 910 of file TObjArray.cxx.

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

Overridden assignment operator.

Reimplemented from TIterator.

Definition at line 823 of file TObjArray.cxx.

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

Overloaded assignment operator.

Definition at line 838 of file TObjArray.cxx.

void TObjArrayIter::Reset ( void  )
virtual

Reset array iterator.

Implements TIterator.

Definition at line 877 of file TObjArray.cxx.

Member Data Documentation

const TObjArray* TObjArrayIter::fArray
private

Definition at line 130 of file TObjArray.h.

Referenced by GetCollection(), Next(), operator*(), operator=(), Reset(), and TObjArrayIter().

Int_t TObjArrayIter::fCurCursor
private

Definition at line 131 of file TObjArray.h.

Referenced by Next(), operator!=(), operator*(), operator=(), Reset(), and TObjArrayIter().

Int_t TObjArrayIter::fCursor
private

Definition at line 132 of file TObjArray.h.

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

Bool_t TObjArrayIter::fDirection
private

Definition at line 133 of file TObjArray.h.

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


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