Belle II Software development
GetWeight Struct Reference

Generic functor to get the weight from an object. More...

#include <Weight.h>

Public Member Functions

 operator FunctorTag ()
 Marker function for the isFunctor test.
 
template<class T , class SFINAE = decltype(&T::getWeight)>
Weight operator() (const T &t) const
 Returns the weight of an object.
 

Detailed Description

Generic functor to get the weight from an object.

Definition at line 23 of file Weight.h.

Member Function Documentation

◆ operator()()

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

Returns the weight of an object.

Definition at line 29 of file Weight.h.

30 {
31 return t.getWeight();
32 }

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