Logo ROOT  
Reference Guide
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Loading...
Searching...
No Matches
RFieldsIterator Class Reference

Iterator over RNTuple fields.

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

Definition at line 153 of file RNTupleBrowseProvider.cxx.

Public Member Functions

 RFieldsIterator (std::shared_ptr< ROOT::Experimental::RNTupleReader > ntplReader, std::vector< ROOT::DescriptorId_t > &&ids, const std::string &parent_name=""s)
 
virtual ~RFieldsIterator ()=default
 
bool CanItemHaveChilds () const override
 Returns true if current item can have childs.
 
std::unique_ptr< RItemCreateItem () override
 Create element for the browser.
 
std::shared_ptr< RElementGetElement () override
 Create RElement for current entry - may take much time to load object or open file.
 
std::string GetItemName () const override
 Returns current entry name

 
bool Next () override
 Shift to next entry.
 
- Public Member Functions inherited from ROOT::Browsable::RLevelIter
virtual ~RLevelIter ()=default
 
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.
 

Private Attributes

int fCounter {-1}
 
std::vector< ROOT::DescriptorId_tfFieldIds
 
std::shared_ptr< ROOT::Experimental::RNTupleReaderfNtplReader
 
std::string fParentName
 
Inheritance diagram for RFieldsIterator:
[legend]

Constructor & Destructor Documentation

◆ RFieldsIterator()

RFieldsIterator::RFieldsIterator ( std::shared_ptr< ROOT::Experimental::RNTupleReader > ntplReader,
std::vector< ROOT::DescriptorId_t > && ids,
const std::string & parent_name = ""s )
inline

Definition at line 161 of file RNTupleBrowseProvider.cxx.

◆ ~RFieldsIterator()

virtual RFieldsIterator::~RFieldsIterator ( )
virtualdefault

Member Function Documentation

◆ CanItemHaveChilds()

bool RFieldsIterator::CanItemHaveChilds ( ) const
inlineoverridevirtual

Returns true if current item can have childs.

Reimplemented from ROOT::Browsable::RLevelIter.

Definition at line 179 of file RNTupleBrowseProvider.cxx.

◆ CreateItem()

std::unique_ptr< RItem > RFieldsIterator::CreateItem ( )
inlineoverridevirtual

Create element for the browser.

Reimplemented from ROOT::Browsable::RLevelIter.

Definition at line 186 of file RNTupleBrowseProvider.cxx.

◆ GetElement()

std::shared_ptr< RElement > RFieldsIterator::GetElement ( )
inlineoverridevirtual

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

Implements ROOT::Browsable::RLevelIter.

Definition at line 204 of file RNTupleBrowseProvider.cxx.

◆ GetItemName()

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

Returns current entry name

Implements ROOT::Browsable::RLevelIter.

Definition at line 174 of file RNTupleBrowseProvider.cxx.

◆ Next()

bool RFieldsIterator::Next ( )
inlineoverridevirtual

Shift to next entry.

Implements ROOT::Browsable::RLevelIter.

Definition at line 169 of file RNTupleBrowseProvider.cxx.

Member Data Documentation

◆ fCounter

int RFieldsIterator::fCounter {-1}
private

Definition at line 158 of file RNTupleBrowseProvider.cxx.

◆ fFieldIds

std::vector<ROOT::DescriptorId_t> RFieldsIterator::fFieldIds
private

Definition at line 156 of file RNTupleBrowseProvider.cxx.

◆ fNtplReader

std::shared_ptr<ROOT::Experimental::RNTupleReader> RFieldsIterator::fNtplReader
private

Definition at line 155 of file RNTupleBrowseProvider.cxx.

◆ fParentName

std::string RFieldsIterator::fParentName
private

Definition at line 157 of file RNTupleBrowseProvider.cxx.

  • gui/browsable/src/RNTupleBrowseProvider.cxx