Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::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 30 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::Experimental::Browsable::RLevelIter:
[legend]

Constructor & Destructor Documentation

◆ ~RLevelIter()

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

Member Function Documentation

◆ CanItemHaveChilds()

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

Returns true if current item can have childs.

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

Definition at line 41 of file RLevelIter.hxx.

◆ CreateItem()

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

Create generic description item for RBrowser.

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

Definition at line 42 of file RLevelIter.cxx.

◆ 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::Experimental::Browsable::RSysDirLevelIter.

Definition at line 21 of file RLevelIter.cxx.

◆ GetElement()

virtual std::shared_ptr< RElement > ROOT::Experimental::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::Experimental::Browsable::RSysDirLevelIter, TDirectoryLevelIter, TObjectLevelIter, and TCollectionIter.

◆ GetItemName()

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

◆ Next()

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

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