Logo ROOT   6.08/07
Reference Guide
List of all members | Public Member Functions | Private Member Functions | Private Attributes | List of all members
TRefArrayIter Class Reference

Iterator of object array.

Definition at line 126 of file TRefArray.h.

Public Member Functions

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

Private Member Functions

 TRefArrayIter ()
 

Private Attributes

const TRefArrayfArray
 
Int_t fCurCursor
 
Int_t fCursor
 
Bool_t fDirection
 

Additional Inherited Members

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

#include <TRefArray.h>

Inheritance diagram for TRefArrayIter:
[legend]

Constructor & Destructor Documentation

◆ TRefArrayIter() [1/3]

TRefArrayIter::TRefArrayIter ( )
inlineprivate

Definition at line 137 of file TRefArray.h.

◆ TRefArrayIter() [2/3]

TRefArrayIter::TRefArrayIter ( const TRefArray arr,
Bool_t  dir = kIterForward 
)

Create array iterator.

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

Definition at line 849 of file TRefArray.cxx.

◆ TRefArrayIter() [3/3]

TRefArrayIter::TRefArrayIter ( const TRefArrayIter iter)

Copy ctor.

Definition at line 859 of file TRefArray.cxx.

◆ ~TRefArrayIter()

TRefArrayIter::~TRefArrayIter ( )
inline

Definition at line 142 of file TRefArray.h.

Member Function Documentation

◆ GetCollection()

const TCollection* TRefArrayIter::GetCollection ( ) const
inlinevirtual

Implements TIterator.

Definition at line 146 of file TRefArray.h.

◆ Next()

TObject * TRefArrayIter::Next ( )
virtual

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

Implements TIterator.

Definition at line 899 of file TRefArray.cxx.

◆ operator!=() [1/2]

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

This operator compares two TIterator objects.

Reimplemented from TIterator.

Definition at line 939 of file TRefArray.cxx.

◆ operator!=() [2/2]

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

This operator compares two TRefArrayIter objects.

Definition at line 951 of file TRefArray.cxx.

◆ operator*()

TObject * TRefArrayIter::operator* ( ) const
virtual

Return current object or nullptr.

Reimplemented from TIterator.

Definition at line 959 of file TRefArray.cxx.

◆ operator=() [1/2]

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

Overridden assignment operator.

Reimplemented from TIterator.

Definition at line 870 of file TRefArray.cxx.

◆ operator=() [2/2]

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

Overloaded assignment operator.

Definition at line 885 of file TRefArray.cxx.

◆ Reset()

void TRefArrayIter::Reset ( void  )
virtual

Reset array iterator.

Implements TIterator.

Definition at line 926 of file TRefArray.cxx.

Member Data Documentation

◆ fArray

const TRefArray* TRefArrayIter::fArray
private

Definition at line 132 of file TRefArray.h.

◆ fCurCursor

Int_t TRefArrayIter::fCurCursor
private

Definition at line 133 of file TRefArray.h.

◆ fCursor

Int_t TRefArrayIter::fCursor
private

Definition at line 134 of file TRefArray.h.

◆ fDirection

Bool_t TRefArrayIter::fDirection
private

Definition at line 135 of file TRefArray.h.


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