LDMX Software
Public Member Functions | List of all members
ActsExamples::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 29 of file GeometryContainers.h.

Member Function Documentation

◆ operator()() [1/5]

constexpr Acts::GeometryIdentifier ActsExamples::detail::GeometryIdGetter::operator() ( Acts::GeometryIdentifier  geometryId) const
inlineconstexpr

Definition at line 31 of file GeometryContainers.h.

32 {
33 return geometryId;
34 }

◆ operator()() [2/5]

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

Definition at line 36 of file GeometryContainers.h.

37 {
38 return Acts::GeometryIdentifier(encoded);
39 }

◆ operator()() [3/5]

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

Definition at line 42 of file GeometryContainers.h.

43 {
44 return mapItem.first;
45 }

◆ operator()() [4/5]

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

Definition at line 48 of file GeometryContainers.h.

49 {
50 return thing.geometryId();
51 }

◆ operator()() [5/5]

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

Definition at line 54 of file GeometryContainers.h.

55 {
56 return thing.get().geometryId();
57 }

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