Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
TCollectionIter Class Reference

Iterator over elements in TCollection.

Definition at line 148 of file TObjectElement.cxx.

Public Member Functions

 TCollectionIter (const TCollection *coll)
 TCollectionIter (const TFolder *f)
 ~TCollectionIter () override=default
bool CanItemHaveChilds () const override
 Check if item can be expanded.
std::unique_ptr< RItemCreateItem () override
 Create item for current TObject.
virtual bool Find (const std::string &name, int indx=-1)
 Find item with specified name Default implementation, should work for all If index specified, not only name but also index should match.
std::shared_ptr< RElementGetElement () override
 Returns full information for current element.
std::string GetItemName () const override
 Returns current entry name.
bool Next () override
 Shift to next entry.

Private Attributes

TIter fIter
Inheritance diagram for TCollectionIter:
ROOT::Browsable::RLevelIter

Constructor & Destructor Documentation

◆ TCollectionIter() [1/2]

TCollectionIter::TCollectionIter ( const TFolder * f)
inlineexplicit

Definition at line 153 of file TObjectElement.cxx.

◆ TCollectionIter() [2/2]

TCollectionIter::TCollectionIter ( const TCollection * coll)
inlineexplicit

Definition at line 155 of file TObjectElement.cxx.

◆ ~TCollectionIter()

TCollectionIter::~TCollectionIter ( )
overridedefault

Member Function Documentation

◆ CanItemHaveChilds()

bool TCollectionIter::CanItemHaveChilds ( ) const
inlineoverridevirtual

Check if item can be expanded.

Reimplemented from ROOT::Browsable::RLevelIter.

Definition at line 176 of file TObjectElement.cxx.

◆ CreateItem()

std::unique_ptr< RItem > TCollectionIter::CreateItem ( )
inlineoverridevirtual

Create item for current TObject.

Reimplemented from ROOT::Browsable::RLevelIter.

Definition at line 185 of file TObjectElement.cxx.

◆ Find()

bool RLevelIter::Find ( const std::string & name,
int indx = -1 )
virtualinherited

Find item with specified name Default implementation, should work for all If index specified, not only name but also index should match.

Reimplemented in RGroupIter, ROOT::Browsable::RSysDirLevelIter, and TObjectLevelIter.

Definition at line 21 of file RLevelIter.cxx.

◆ GetElement()

std::shared_ptr< RElement > TCollectionIter::GetElement ( )
inlineoverridevirtual

Returns full information for current element.

Implements ROOT::Browsable::RLevelIter.

Definition at line 201 of file TObjectElement.cxx.

◆ GetItemName()

std::string TCollectionIter::GetItemName ( ) const
inlineoverridevirtual

Returns current entry name.

Implements ROOT::Browsable::RLevelIter.

Definition at line 161 of file TObjectElement.cxx.

◆ Next()

bool TCollectionIter::Next ( )
inlineoverridevirtual

Shift to next entry.

Implements ROOT::Browsable::RLevelIter.

Definition at line 159 of file TObjectElement.cxx.

Member Data Documentation

◆ fIter

TIter TCollectionIter::fIter
private

Definition at line 150 of file TObjectElement.cxx.


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