Iterator over keys in TDirectory.
Definition at line 42 of file TDirectoryElement.cxx.
Public Member Functions | |
| TDirectoryLevelIter (TDirectory *dir) | |
| ~TDirectoryLevelIter () override=default | |
| bool | CanItemHaveChilds () const override |
| Returns true if current item can have childs. | |
| std::unique_ptr< RItem > | CreateItem () override |
| Create item for the client. | |
| 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. | |
| std::shared_ptr< RElement > | GetDirElement (bool read_dir) |
| Return element for current TKey object in TDirectory. | |
| 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. | |
Private Member Functions | |
| bool | CreateIter () |
| bool | NextDirEntry () |
Private Attributes | |
| std::string | fCurrentName |
| ! current key name | |
| TDirectory * | fDir {nullptr} |
| ! current directory handle | |
| std::unique_ptr< TIterator > | fIter |
| ! created iterator | |
| TKey * | fKey {nullptr} |
| ! currently selected key | |
| bool | fKeysIter {true} |
| ! iterating over keys list (default) | |
| TObject * | fObj {nullptr} |
| ! currently selected object | |
|
inlineexplicit |
Definition at line 138 of file TDirectoryElement.cxx.
|
overridedefault |
|
inlineoverridevirtual |
Returns true if current item can have childs.
Reimplemented from ROOT::Browsable::RLevelIter.
Definition at line 152 of file TDirectoryElement.cxx.
|
inlineoverridevirtual |
Create item for the client.
Reimplemented from ROOT::Browsable::RLevelIter.
Definition at line 167 of file TDirectoryElement.cxx.
|
inlineprivate |
Definition at line 50 of file TDirectoryElement.cxx.
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, ROOT::Browsable::RSysDirLevelIter, and TObjectLevelIter.
Definition at line 21 of file RLevelIter.cxx.
Return element for current TKey object in TDirectory.
Definition at line 538 of file TDirectoryElement.cxx.
|
inlineoverridevirtual |
Returns full information for current element.
Implements ROOT::Browsable::RLevelIter.
Definition at line 185 of file TDirectoryElement.cxx.
|
inlineoverridevirtual |
Returns current entry name.
Implements ROOT::Browsable::RLevelIter.
Definition at line 150 of file TDirectoryElement.cxx.
|
inlineoverridevirtual |
Shift to next entry.
Implements ROOT::Browsable::RLevelIter.
Definition at line 145 of file TDirectoryElement.cxx.
|
inlineprivate |
Definition at line 69 of file TDirectoryElement.cxx.
|
private |
! current key name
Definition at line 48 of file TDirectoryElement.cxx.
|
private |
! current directory handle
Definition at line 43 of file TDirectoryElement.cxx.
|
private |
! created iterator
Definition at line 44 of file TDirectoryElement.cxx.
|
private |
! currently selected key
Definition at line 46 of file TDirectoryElement.cxx.
|
private |
! iterating over keys list (default)
Definition at line 45 of file TDirectoryElement.cxx.
|
private |
! currently selected object
Definition at line 47 of file TDirectoryElement.cxx.