Logo ROOT  
Reference Guide
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)
 
virtual ~TCollectionIter ()=default
 
bool CanItemHaveChilds () const override
 Check if item can be expanded. More...
 
std::unique_ptr< RItemCreateItem () override
 Create item for current TObject. More...
 
std::shared_ptr< RElementGetElement () override
 Returns full information for current element. More...
 
std::string GetItemName () const override
 Returns current entry name
More...
 
bool Next () override
 Shift to next entry. More...
 
- Public Member Functions inherited from ROOT::Experimental::Browsable::RLevelIter
virtual ~RLevelIter ()=default
 
virtual bool CanItemHaveChilds () const
 Returns true if current item can have childs. More...
 
virtual std::unique_ptr< RItemCreateItem ()
 Create generic description item for RBrowser. More...
 
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. More...
 
virtual std::shared_ptr< RElementGetElement ()=0
 Create RElement for current entry - may take much time to load object or open file. More...
 
virtual std::string GetItemName () const =0
 Returns current entry name
More...
 
virtual bool Next ()=0
 Shift to next entry. More...
 

Private Attributes

TIter fIter
 
Inheritance diagram for TCollectionIter:
[legend]

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()

virtual TCollectionIter::~TCollectionIter ( )
virtualdefault

Member Function Documentation

◆ CanItemHaveChilds()

bool TCollectionIter::CanItemHaveChilds ( ) const
inlineoverridevirtual

Check if item can be expanded.

Reimplemented from ROOT::Experimental::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::Experimental::Browsable::RLevelIter.

Definition at line 185 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 201 of file TObjectElement.cxx.

◆ GetItemName()

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

Returns current entry name

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

Definition at line 161 of file TObjectElement.cxx.

◆ Next()

bool TCollectionIter::Next ( )
inlineoverridevirtual

Shift to next entry.

Implements ROOT::Experimental::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: