Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
ROOT::Browsable::TGeoVolumeIter Class Reference

Iterating over nodes in the volume.

Definition at line 98 of file TGeoBrowseProvider.cxx.

Public Member Functions

 TGeoVolumeIter (TGeoVolume *vol)
 ~TGeoVolumeIter () override=default
bool CanItemHaveChilds () const override
 Returns true if current item can have childs.
std::unique_ptr< RItemCreateItem () override
 Returns full item information.
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
 Returns full information for current element.
std::string GetItemName () const override
 Returns current entry name.
bool Next () override
 Shift to next entry.

Private Attributes

TGeoNodefCurrent {nullptr}
 ! current node
TGeoIterator fIter
 ! iterator
Inheritance diagram for ROOT::Browsable::TGeoVolumeIter:
ROOT::Browsable::RLevelIter

Constructor & Destructor Documentation

◆ TGeoVolumeIter()

ROOT::Browsable::TGeoVolumeIter::TGeoVolumeIter ( TGeoVolume * vol)
inlineexplicit

Definition at line 103 of file TGeoBrowseProvider.cxx.

◆ ~TGeoVolumeIter()

ROOT::Browsable::TGeoVolumeIter::~TGeoVolumeIter ( )
overridedefault

Member Function Documentation

◆ CanItemHaveChilds()

bool ROOT::Browsable::TGeoVolumeIter::CanItemHaveChilds ( ) const
inlineoverridevirtual

Returns true if current item can have childs.

Reimplemented from ROOT::Browsable::RLevelIter.

Definition at line 118 of file TGeoBrowseProvider.cxx.

◆ CreateItem()

std::unique_ptr< RItem > ROOT::Browsable::TGeoVolumeIter::CreateItem ( )
inlineoverridevirtual

Returns full item information.

Reimplemented from ROOT::Browsable::RLevelIter.

Definition at line 130 of file TGeoBrowseProvider.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 > ROOT::Browsable::TGeoVolumeIter::GetElement ( )
inlineoverridevirtual

Returns full information for current element.

Implements ROOT::Browsable::RLevelIter.

Definition at line 124 of file TGeoBrowseProvider.cxx.

◆ GetItemName()

std::string ROOT::Browsable::TGeoVolumeIter::GetItemName ( ) const
inlineoverridevirtual

Returns current entry name.

Implements ROOT::Browsable::RLevelIter.

Definition at line 116 of file TGeoBrowseProvider.cxx.

◆ Next()

bool ROOT::Browsable::TGeoVolumeIter::Next ( )
inlineoverridevirtual

Shift to next entry.

Implements ROOT::Browsable::RLevelIter.

Definition at line 110 of file TGeoBrowseProvider.cxx.

Member Data Documentation

◆ fCurrent

TGeoNode* ROOT::Browsable::TGeoVolumeIter::fCurrent {nullptr}
private

! current node

Definition at line 100 of file TGeoBrowseProvider.cxx.

◆ fIter

TGeoIterator ROOT::Browsable::TGeoVolumeIter::fIter
private

! iterator

Definition at line 99 of file TGeoBrowseProvider.cxx.


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