Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Browsable::RLevelIter Class Referenceabstract

Iterator over single level hierarchy like any array, keys list, ...

Author
Sergey Linev S.Lin.nosp@m.ev@g.nosp@m.si.de
Date
2019-10-14
Warning
This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!

Definition at line 29 of file RLevelIter.hxx.

Public Member Functions

virtual ~RLevelIter ()=default
 
virtual bool CanItemHaveChilds () const
 Returns true if current item can have childs.
 
virtual std::unique_ptr< RItemCreateItem ()
 Create generic description item for RBrowser.
 
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.
 
virtual std::shared_ptr< RElementGetElement ()=0
 Create RElement for current entry - may take much time to load object or open file.
 
virtual std::string GetItemName () const =0
 Returns current entry name

 
virtual bool Next ()=0
 Shift to next entry.
 

#include <ROOT/Browsable/RLevelIter.hxx>

Inheritance diagram for ROOT::Browsable::RLevelIter:
[legend]

Constructor & Destructor Documentation

◆ ~RLevelIter()

virtual ROOT::Browsable::RLevelIter::~RLevelIter ( )
virtualdefault

Member Function Documentation

◆ CanItemHaveChilds()

virtual bool ROOT::Browsable::RLevelIter::CanItemHaveChilds ( ) const
inlinevirtual

Returns true if current item can have childs.

Reimplemented in RGroupIter, RFieldsIterator, ROOT::Browsable::RSysDirLevelIter, TDirectoryLevelIter, ROOT::Browsable::TGeoVolumeIter, TObjectLevelIter, and TCollectionIter.

Definition at line 40 of file RLevelIter.hxx.

◆ CreateItem()

std::unique_ptr< RItem > RLevelIter::CreateItem ( )
virtual

◆ Find()

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

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, TObjectLevelIter, and ROOT::Browsable::RSysDirLevelIter.

Definition at line 21 of file RLevelIter.cxx.

◆ GetElement()

virtual std::shared_ptr< RElement > ROOT::Browsable::RLevelIter::GetElement ( )
pure virtual

Create RElement for current entry - may take much time to load object or open file.

Implemented in RGroupIter, RFieldsIterator, ROOT::Browsable::RSysDirLevelIter, TDirectoryLevelIter, ROOT::Browsable::TGeoVolumeIter, TObjectLevelIter, and TCollectionIter.

◆ GetItemName()

virtual std::string ROOT::Browsable::RLevelIter::GetItemName ( ) const
pure virtual

◆ Next()

virtual bool ROOT::Browsable::RLevelIter::Next ( )
pure virtual

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