LDMX Software
acts_examples::detail::GeometryIdGetter Struct Reference

Public Member Functions

constexpr Acts::GeometryIdentifier operator() (Acts::GeometryIdentifier geometryId) const
 
constexpr Acts::GeometryIdentifier operator() (Acts::GeometryIdentifier::Value encoded) const
 
template<typename T >
constexpr Acts::GeometryIdentifier operator() (const std::pair< Acts::GeometryIdentifier, T > &mapItem) const
 
template<typename T >
auto operator() (const T &thing) const -> decltype(thing.geometryId(), Acts::GeometryIdentifier())
 
template<typename T >
auto operator() (std::reference_wrapper< T > thing) const -> decltype(thing.get().geometryId(), Acts::GeometryIdentifier())
 

Detailed Description

Definition at line 24 of file GeometryContainers.h.

Member Function Documentation

◆ operator()() [1/5]

Acts::GeometryIdentifier acts_examples::detail::GeometryIdGetter::operator() ( Acts::GeometryIdentifier geometryId) const
inlineconstexpr

Definition at line 26 of file GeometryContainers.h.

27 {
28 return geometryId;
29 }

◆ operator()() [2/5]

Acts::GeometryIdentifier acts_examples::detail::GeometryIdGetter::operator() ( Acts::GeometryIdentifier::Value encoded) const
inlineconstexpr

Definition at line 31 of file GeometryContainers.h.

32 {
33 return Acts::GeometryIdentifier(encoded);
34 }

◆ operator()() [3/5]

template<typename T >
Acts::GeometryIdentifier acts_examples::detail::GeometryIdGetter::operator() ( const std::pair< Acts::GeometryIdentifier, T > & mapItem) const
inlineconstexpr

Definition at line 37 of file GeometryContainers.h.

38 {
39 return mapItem.first;
40 }

◆ operator()() [4/5]

template<typename T >
auto acts_examples::detail::GeometryIdGetter::operator() ( const T & thing) const -> decltype(thing.geometryId(), Acts::GeometryIdentifier())
inline

Definition at line 43 of file GeometryContainers.h.

44 {
45 return thing.geometryId();
46 }

◆ operator()() [5/5]

template<typename T >
auto acts_examples::detail::GeometryIdGetter::operator() ( std::reference_wrapper< T > thing) const -> decltype(thing.get().geometryId(), Acts::GeometryIdentifier())
inline

Definition at line 49 of file GeometryContainers.h.

50 {
51 return thing.get().geometryId();
52 }

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