Logo ROOT  
Reference Guide
ROOT::Experimental::RGeomBrowserIter Class Reference

Iterator of hierarchical geometry structures.

Definition at line 49 of file RGeomData.cxx.

Public Member Functions

 RGeomBrowserIter (RGeomDescription &desc)
 
std::vector< intCurrentIds () const
 Returns array of ids to currently selected node. More...
 
bool Enter ()
 
const std::string & GetName () const
 
int GetNodeId () const
 
bool HasChilds () const
 
bool IsValid () const
 
bool Leave ()
 
bool Navigate (const std::string &path)
 Navigate to specified path - path specified as string and should start with "/". More...
 
bool Navigate (const std::vector< std::string > &path)
 Navigate to specified path
More...
 
bool Next ()
 
bool NextNode ()
 
int NumChilds () const
 
bool Reset ()
 

Private Attributes

unsigned fChild {0}
 
RGeomDescriptionfDesc
 
int fNodeId {0}
 
int fParentId {-1}
 
std::vector< intfStackChilds
 
std::vector< intfStackParents
 

Constructor & Destructor Documentation

◆ RGeomBrowserIter()

ROOT::Experimental::RGeomBrowserIter::RGeomBrowserIter ( RGeomDescription desc)
inline

Definition at line 61 of file RGeomData.cxx.

Member Function Documentation

◆ CurrentIds()

std::vector< int > ROOT::Experimental::RGeomBrowserIter::CurrentIds ( ) const
inline

Returns array of ids to currently selected node.

Definition at line 210 of file RGeomData.cxx.

◆ Enter()

bool ROOT::Experimental::RGeomBrowserIter::Enter ( )
inline

Definition at line 73 of file RGeomData.cxx.

◆ GetName()

const std::string & ROOT::Experimental::RGeomBrowserIter::GetName ( ) const
inline

Definition at line 63 of file RGeomData.cxx.

◆ GetNodeId()

int ROOT::Experimental::RGeomBrowserIter::GetNodeId ( ) const
inline

Definition at line 67 of file RGeomData.cxx.

◆ HasChilds()

bool ROOT::Experimental::RGeomBrowserIter::HasChilds ( ) const
inline

Definition at line 69 of file RGeomData.cxx.

◆ IsValid()

bool ROOT::Experimental::RGeomBrowserIter::IsValid ( ) const
inline

Definition at line 65 of file RGeomData.cxx.

◆ Leave()

bool ROOT::Experimental::RGeomBrowserIter::Leave ( )
inline

Definition at line 94 of file RGeomData.cxx.

◆ Navigate() [1/2]

bool ROOT::Experimental::RGeomBrowserIter::Navigate ( const std::string &  path)
inline

Navigate to specified path - path specified as string and should start with "/".

Definition at line 157 of file RGeomData.cxx.

◆ Navigate() [2/2]

bool ROOT::Experimental::RGeomBrowserIter::Navigate ( const std::vector< std::string > &  path)
inline

Navigate to specified path

Definition at line 188 of file RGeomData.cxx.

◆ Next()

bool ROOT::Experimental::RGeomBrowserIter::Next ( )
inline

Definition at line 114 of file RGeomData.cxx.

◆ NextNode()

bool ROOT::Experimental::RGeomBrowserIter::NextNode ( )
inline

Definition at line 143 of file RGeomData.cxx.

◆ NumChilds()

int ROOT::Experimental::RGeomBrowserIter::NumChilds ( ) const
inline

Definition at line 71 of file RGeomData.cxx.

◆ Reset()

bool ROOT::Experimental::RGeomBrowserIter::Reset ( void  )
inline

Definition at line 132 of file RGeomData.cxx.

Member Data Documentation

◆ fChild

unsigned ROOT::Experimental::RGeomBrowserIter::fChild {0}
private

Definition at line 53 of file RGeomData.cxx.

◆ fDesc

RGeomDescription& ROOT::Experimental::RGeomBrowserIter::fDesc
private

Definition at line 51 of file RGeomData.cxx.

◆ fNodeId

int ROOT::Experimental::RGeomBrowserIter::fNodeId {0}
private

Definition at line 54 of file RGeomData.cxx.

◆ fParentId

int ROOT::Experimental::RGeomBrowserIter::fParentId {-1}
private

Definition at line 52 of file RGeomData.cxx.

◆ fStackChilds

std::vector<int> ROOT::Experimental::RGeomBrowserIter::fStackChilds
private

Definition at line 57 of file RGeomData.cxx.

◆ fStackParents

std::vector<int> ROOT::Experimental::RGeomBrowserIter::fStackParents
private

Definition at line 56 of file RGeomData.cxx.


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