Belle II Software development
GetISuperLayer Struct Reference

Generic functor to get the superlayer id from an object. More...

#include <ISuperLayer.h>

Public Member Functions

 operator FunctorTag ()
 Marker function for the isFunctor test.
 
template<class T , class SFINAE = decltype(&T::getISuperLayer)>
ISuperLayer operator() (const T &t) const
 Returns the superlayer of an object.
 
template<class T , class SFINAE = decltype(std::declval<T>()->getISuperLayer())>
auto operator() (const T &t) const -> decltype(t->getISuperLayer())
 Returns the superlayer of a pointer.
 

Detailed Description

Generic functor to get the superlayer id from an object.

Definition at line 27 of file ISuperLayer.h.

Member Function Documentation

◆ operator()() [1/2]

ISuperLayer operator() ( const T &  t) const
inline

Returns the superlayer of an object.

Definition at line 33 of file ISuperLayer.h.

34 {
35 return t.getISuperLayer();
36 }

◆ operator()() [2/2]

auto operator() ( const T &  t) const -> decltype(t->getISuperLayer())
inline

Returns the superlayer of a pointer.

Definition at line 40 of file ISuperLayer.h.

41 {
42 return t->getISuperLayer();
43 }

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