Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
RVisualizationIterator Class Reference

Iterator over visualization options.

Author
Patryk Pilichowski
Date
2025
Warning
This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!

Definition at line 159 of file RNTupleBrowseProvider.cxx.

Public Member Functions

 RVisualizationIterator (std::shared_ptr< ROOT::RNTupleReader > ntplReader, const std::string &fileName="")
 ~RVisualizationIterator () override=default
bool CanItemHaveChilds () const override
 Returns true if current item can have childs.
std::unique_ptr< RItemCreateItem () override
 Create item for the browser.
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< 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.

Private Attributes

int fCounter {-1}
std::string fFileName
std::shared_ptr< ROOT::RNTupleReaderfNtplReader
int fTotalItems {1}
Inheritance diagram for RVisualizationIterator:
ROOT::Browsable::RLevelIter

Constructor & Destructor Documentation

◆ RVisualizationIterator()

RVisualizationIterator::RVisualizationIterator ( std::shared_ptr< ROOT::RNTupleReader > ntplReader,
const std::string & fileName = "" )
inline

Definition at line 166 of file RNTupleBrowseProvider.cxx.

◆ ~RVisualizationIterator()

RVisualizationIterator::~RVisualizationIterator ( )
overridedefault

Member Function Documentation

◆ CanItemHaveChilds()

bool RVisualizationIterator::CanItemHaveChilds ( ) const
inlineoverridevirtual

Returns true if current item can have childs.

Reimplemented from ROOT::Browsable::RLevelIter.

Definition at line 183 of file RNTupleBrowseProvider.cxx.

◆ CreateItem()

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

Create item for the browser.

Reimplemented from ROOT::Browsable::RLevelIter.

Definition at line 186 of file RNTupleBrowseProvider.cxx.

◆ Find()

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

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.

◆ GetElement()

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

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

Implements ROOT::Browsable::RLevelIter.

Definition at line 196 of file RNTupleBrowseProvider.cxx.

◆ GetItemName()

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

Returns current entry name.

Implements ROOT::Browsable::RLevelIter.

Definition at line 175 of file RNTupleBrowseProvider.cxx.

◆ Next()

bool RVisualizationIterator::Next ( )
inlineoverridevirtual

Shift to next entry.

Implements ROOT::Browsable::RLevelIter.

Definition at line 173 of file RNTupleBrowseProvider.cxx.

Member Data Documentation

◆ fCounter

int RVisualizationIterator::fCounter {-1}
private

Definition at line 162 of file RNTupleBrowseProvider.cxx.

◆ fFileName

std::string RVisualizationIterator::fFileName
private

Definition at line 161 of file RNTupleBrowseProvider.cxx.

◆ fNtplReader

std::shared_ptr<ROOT::RNTupleReader> RVisualizationIterator::fNtplReader
private

Definition at line 160 of file RNTupleBrowseProvider.cxx.

◆ fTotalItems

int RVisualizationIterator::fTotalItems {1}
private

Definition at line 163 of file RNTupleBrowseProvider.cxx.


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