Public Member Functions | Public Attributes | Protected Attributes | List of all members
geo::CollectPathsByName Struct Reference

Public Member Functions

 CollectPathsByName (std::set< std::string > const &names)
 
void operator() (ROOTGeoNodeForwardIterator const &iter)
 If the name of the node matches, records the node full path. More...
 

Public Attributes

std::vector< std::vector< TGeoNode const * > > paths
 

Protected Attributes

NodeNameMatcherClass matcher
 

Detailed Description

Definition at line 692 of file GeometryCore.cxx.

Constructor & Destructor Documentation

geo::CollectPathsByName::CollectPathsByName ( std::set< std::string > const &  names)
inline

Definition at line 695 of file GeometryCore.cxx.

695 : matcher(names) {}
NodeNameMatcherClass matcher

Member Function Documentation

void geo::CollectPathsByName::operator() ( ROOTGeoNodeForwardIterator const &  iter)
inline

If the name of the node matches, records the node full path.

Definition at line 698 of file GeometryCore.cxx.

699  { if (matcher(**iter)) paths.push_back(iter.get_path()); }
std::vector< std::vector< TGeoNode const * > > paths
NodeNameMatcherClass matcher

Member Data Documentation

NodeNameMatcherClass geo::CollectPathsByName::matcher
protected

Definition at line 702 of file GeometryCore.cxx.

std::vector<std::vector<TGeoNode const*> > geo::CollectPathsByName::paths

Definition at line 693 of file GeometryCore.cxx.


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