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

Iterator over elements in TCollection.

Definition at line 156 of file TObjectElement.cxx.

Public Member Functions

 TCollectionIter (const TCollection *coll)
 
 TCollectionIter (const TFolder *f)
 
virtual ~TCollectionIter ()=default
 
bool CanItemHaveChilds () const override
 Returns true if current item can have childs.
 
std::unique_ptr< RItemCreateItem () override
 Create item for current TObject.
 
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.
 
- Public Member Functions inherited from ROOT::Experimental::Browsable::RLevelIter
virtual ~RLevelIter ()=default
 
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.
 

Private Attributes

TIter fIter
 
Inheritance diagram for TCollectionIter:
[legend]

Constructor & Destructor Documentation

◆ TCollectionIter() [1/2]

TCollectionIter::TCollectionIter ( const TFolder f)
inlineexplicit

Definition at line 161 of file TObjectElement.cxx.

◆ TCollectionIter() [2/2]

TCollectionIter::TCollectionIter ( const TCollection coll)
inlineexplicit

Definition at line 163 of file TObjectElement.cxx.

◆ ~TCollectionIter()

virtual TCollectionIter::~TCollectionIter ( )
virtualdefault

Member Function Documentation

◆ CanItemHaveChilds()

bool TCollectionIter::CanItemHaveChilds ( ) const
inlineoverridevirtual

Returns true if current item can have childs.

Reimplemented from ROOT::Experimental::Browsable::RLevelIter.

Definition at line 174 of file TObjectElement.cxx.

◆ CreateItem()

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

Create item for current TObject.

Reimplemented from ROOT::Experimental::Browsable::RLevelIter.

Definition at line 181 of file TObjectElement.cxx.

◆ GetElement()

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

Returns full information for current element.

Implements ROOT::Experimental::Browsable::RLevelIter.

Definition at line 203 of file TObjectElement.cxx.

◆ GetItemName()

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

Returns current entry name

Implements ROOT::Experimental::Browsable::RLevelIter.

Definition at line 172 of file TObjectElement.cxx.

◆ Next()

bool TCollectionIter::Next ( )
inlineoverridevirtual

Shift to next entry.

Implements ROOT::Experimental::Browsable::RLevelIter.

Definition at line 167 of file TObjectElement.cxx.

Member Data Documentation

◆ fIter

TIter TCollectionIter::fIter
private

Definition at line 158 of file TObjectElement.cxx.

  • gui/browsable/src/TObjectElement.cxx