Logo ROOT  
Reference Guide
TOrdCollectionIter Class Reference

Iterator of ordered collection.

Definition at line 96 of file TOrdCollection.h.

Public Types

using const_pointer = const TObject **
 
using difference_type = std::ptrdiff_t
 
using iterator_category = std::bidirectional_iterator_tag
 
using pointer = TObject **
 
using reference = const TObject *&
 
using value_type = TObject *
 

Public Member Functions

 TOrdCollectionIter (const TOrdCollection *col, Bool_t dir=kIterForward)
 Create collection iterator. More...
 
 TOrdCollectionIter (const TOrdCollectionIter &iter)
 Copy ctor. More...
 
 ~TOrdCollectionIter ()
 
const TCollectionGetCollection () const override
 
TClassIsA () const override
 
TObjectNext () override
 Return next object in collection. More...
 
Bool_t operator!= (const TIterator &aIter) const override
 This operator compares two TIterator objects. More...
 
Bool_t operator!= (const TOrdCollectionIter &aIter) const
 This operator compares two TOrdCollectionIter objects. More...
 
TObjectoperator* () const override
 Return current object or nullptr. More...
 
TIteratoroperator= (const TIterator &rhs) override
 Overridden assignment operator. More...
 
TOrdCollectionIteroperator= (const TOrdCollectionIter &rhs)
 Overloaded assignment operator. More...
 
void Reset () override
 Reset collection iterator. More...
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TIterator
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. More...
 
TObjectoperator() ()
 
virtual TObjectoperator* () const
 Return current object or nullptr. More...
 
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 Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TIterator
static TClassClass ()
 
static const char * Class_Name ()
 
static Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Private Member Functions

 TOrdCollectionIter ()
 

Private Attributes

const TOrdCollectionfCol
 
Int_t fCurCursor
 
Int_t fCursor
 
Bool_t fDirection
 

Additional Inherited Members

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

#include <TOrdCollection.h>

Inheritance diagram for TOrdCollectionIter:
[legend]

Member Typedef Documentation

◆ const_pointer

Definition at line 111 of file TOrdCollection.h.

◆ difference_type

using TOrdCollectionIter::difference_type = std::ptrdiff_t

Definition at line 109 of file TOrdCollection.h.

◆ iterator_category

using TOrdCollectionIter::iterator_category = std::bidirectional_iterator_tag

Definition at line 107 of file TOrdCollection.h.

◆ pointer

Definition at line 110 of file TOrdCollection.h.

◆ reference

Definition at line 112 of file TOrdCollection.h.

◆ value_type

Definition at line 108 of file TOrdCollection.h.

Constructor & Destructor Documentation

◆ TOrdCollectionIter() [1/3]

TOrdCollectionIter::TOrdCollectionIter ( )
inlineprivate

Definition at line 104 of file TOrdCollection.h.

◆ TOrdCollectionIter() [2/3]

TOrdCollectionIter::TOrdCollectionIter ( const TOrdCollection col,
Bool_t  dir = kIterForward 
)

Create collection iterator.

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

Definition at line 453 of file TOrdCollection.cxx.

◆ TOrdCollectionIter() [3/3]

TOrdCollectionIter::TOrdCollectionIter ( const TOrdCollectionIter iter)

Copy ctor.

Definition at line 461 of file TOrdCollection.cxx.

◆ ~TOrdCollectionIter()

TOrdCollectionIter::~TOrdCollectionIter ( )
inline

Definition at line 116 of file TOrdCollection.h.

Member Function Documentation

◆ Class()

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

◆ Class_Name()

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

◆ Class_Version()

static Version_t TOrdCollectionIter::Class_Version ( )
inlinestatic
Returns
Version of this class

Definition at line 127 of file TOrdCollection.h.

◆ DeclFileName()

static const char * TOrdCollectionIter::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 127 of file TOrdCollection.h.

◆ GetCollection()

const TCollection * TOrdCollectionIter::GetCollection ( ) const
inlineoverridevirtual

Implements TIterator.

Definition at line 120 of file TOrdCollection.h.

◆ IsA()

TClass * TOrdCollectionIter::IsA ( ) const
inlineoverridevirtual
Returns
TClass describing current object

Reimplemented from TIterator.

Definition at line 127 of file TOrdCollection.h.

◆ Next()

TObject * TOrdCollectionIter::Next ( )
overridevirtual

Return next object in collection.

Returns 0 when no more objects in collection.

Implements TIterator.

Definition at line 502 of file TOrdCollection.cxx.

◆ operator!=() [1/2]

Bool_t TOrdCollectionIter::operator!= ( const TIterator aIter) const
overridevirtual

This operator compares two TIterator objects.

Reimplemented from TIterator.

Definition at line 531 of file TOrdCollection.cxx.

◆ operator!=() [2/2]

This operator compares two TOrdCollectionIter objects.

Definition at line 543 of file TOrdCollection.cxx.

◆ operator*()

TObject * TOrdCollectionIter::operator* ( ) const
overridevirtual

Return current object or nullptr.

Reimplemented from TIterator.

Definition at line 551 of file TOrdCollection.cxx.

◆ operator=() [1/2]

TIterator & TOrdCollectionIter::operator= ( const TIterator rhs)
overridevirtual

Overridden assignment operator.

Implements TIterator.

Definition at line 472 of file TOrdCollection.cxx.

◆ operator=() [2/2]

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

Overloaded assignment operator.

Definition at line 487 of file TOrdCollection.cxx.

◆ Reset()

void TOrdCollectionIter::Reset ( void  )
overridevirtual

Reset collection iterator.

Implements TIterator.

Definition at line 518 of file TOrdCollection.cxx.

◆ Streamer()

void TOrdCollectionIter::Streamer ( TBuffer )
overridevirtual

Reimplemented from TIterator.

◆ StreamerNVirtual()

void TOrdCollectionIter::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 127 of file TOrdCollection.h.

Member Data Documentation

◆ fCol

const TOrdCollection* TOrdCollectionIter::fCol
private

Definition at line 99 of file TOrdCollection.h.

◆ fCurCursor

Int_t TOrdCollectionIter::fCurCursor
private

Definition at line 100 of file TOrdCollection.h.

◆ fCursor

Int_t TOrdCollectionIter::fCursor
private

Definition at line 101 of file TOrdCollection.h.

◆ fDirection

Bool_t TOrdCollectionIter::fDirection
private

Definition at line 102 of file TOrdCollection.h.


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