Iterator over list of elements, designed for support TBrowser usage.
Definition at line 39 of file TObjectElement.cxx.
Public Member Functions | |
TObjectLevelIter () | |
virtual | ~TObjectLevelIter ()=default |
void | AddElement (std::shared_ptr< RElement > &&elem) |
bool | CanItemHaveChilds () const override |
Returns true if current item can have childs. | |
std::unique_ptr< RItem > | CreateItem () override |
Create element for the browser. | |
bool | Find (const std::string &name, int indx=-1) override |
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< RElement > | GetElement () override |
Returns full information for current element. | |
std::string | GetItemName () const override |
Returns current entry name | |
bool | Next () override |
Shift to next entry. | |
auto | NumElements () const |
Public Member Functions inherited from ROOT::Browsable::RLevelIter | |
virtual | ~RLevelIter ()=default |
Private Attributes | |
int | fCounter {-1} |
std::vector< std::shared_ptr< RElement > > | fElements |
|
inlineexplicit |
Definition at line 46 of file TObjectElement.cxx.
|
virtualdefault |
|
inline |
Definition at line 50 of file TObjectElement.cxx.
|
inlineoverridevirtual |
Returns true if current item can have childs.
Reimplemented from ROOT::Browsable::RLevelIter.
Definition at line 64 of file TObjectElement.cxx.
|
inlineoverridevirtual |
Create element for the browser.
Reimplemented from ROOT::Browsable::RLevelIter.
Definition at line 71 of file TObjectElement.cxx.
Find item with specified name Default implementation, should work for all If index specified, not only name but also index should match.
Reimplemented from ROOT::Browsable::RLevelIter.
Definition at line 82 of file TObjectElement.cxx.
|
inlineoverridevirtual |
Returns full information for current element.
Implements ROOT::Browsable::RLevelIter.
Definition at line 77 of file TObjectElement.cxx.
|
inlineoverridevirtual |
Returns current entry name
Implements ROOT::Browsable::RLevelIter.
Definition at line 62 of file TObjectElement.cxx.
|
inlineoverridevirtual |
Shift to next entry.
Implements ROOT::Browsable::RLevelIter.
Definition at line 57 of file TObjectElement.cxx.
|
inline |
Definition at line 55 of file TObjectElement.cxx.
|
private |
Definition at line 43 of file TObjectElement.cxx.
|
private |
Definition at line 41 of file TObjectElement.cxx.