ATLAS Offline Software
Loading...
Searching...
No Matches
GeoGetIds.h File Reference

Visitor to collect all IDs under a GeoModel node. More...

#include "GeoPrimitives/GeoPrimitives.h"
#include "GeoModelKernel/GeoNodeAction.h"
Include dependency graph for GeoGetIds.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  IGeoGetIdsAction
 Ensure that the extensions for the Vector3D are properly loaded. More...
class  GeoGetIds
 Visitor to traverse a GeoModel graph and make a callback for each identifier found. More...
class  GeoGetIdsAction< FUNCTION >
 Callback object calling a templated functional. More...

Functions

template<class FUNCTION>
void geoGetIds (FUNCTION f, const GeoGraphNode *node, int depthLimit=1)
 Template helper for running the visitor.

Detailed Description

Visitor to collect all IDs under a GeoModel node.

Author
scott snyder snyde.nosp@m.r@bn.nosp@m.l.gov
Date
Jun, 2019

Definition in file GeoGetIds.h.

Function Documentation

◆ geoGetIds()

template<class FUNCTION>
void geoGetIds ( FUNCTION f,
const GeoGraphNode * node,
int depthLimit = 1 )

Template helper for running the visitor.

Example:

GeoFullPhysVol* pv = ...;
std::vector<int> ids;
geoGetIds ([&](int id) { ids.push_back (id); }, pv);
void geoGetIds(FUNCTION f, const GeoGraphNode *node, int depthLimit=1)
Template helper for running the visitor.
Definition GeoGetIds.h:82

Definition at line 82 of file GeoGetIds.h.

83{
85 GeoGetIds visitor (act, depthLimit);
86 node->exec (&visitor);
87}
Callback object calling a templated functional.
Definition GeoGetIds.h:61
Visitor to traverse a GeoModel graph and make a callback for each identifier found.
Definition GeoGetIds.h:41
Definition node.h:24