All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
SortByElement< KeyNo > Struct Template Reference

Public Member Functions

template<typename TupleA , typename TupleB >
bool operator() (TupleA const &A, TupleB const &B) const
 

Static Public Member Functions

template<typename Tuple >
static decltype(auto) key (Tuple const &t)
 
template<typename TupleA , typename TupleB >
static bool less (TupleA const &A, TupleB const &B)
 

Detailed Description

template<std::size_t KeyNo = 0U>
struct SortByElement< KeyNo >

Definition at line 34 of file PMTChannelMapDumper.cxx.

Member Function Documentation

template<std::size_t KeyNo = 0U>
template<typename Tuple >
static decltype(auto) SortByElement< KeyNo >::key ( Tuple const &  t)
inlinestatic

Definition at line 41 of file PMTChannelMapDumper.cxx.

41 { return std::get<KeyNo>(t); }
template<std::size_t KeyNo = 0U>
template<typename TupleA , typename TupleB >
static bool SortByElement< KeyNo >::less ( TupleA const &  A,
TupleB const &  B 
)
inlinestatic

Definition at line 44 of file PMTChannelMapDumper.cxx.

45  { using std::less; return less{}(key(A), key(B)); }
static decltype(auto) key(Tuple const &t)
float A
Definition: dedx.py:137
template<std::size_t KeyNo = 0U>
template<typename TupleA , typename TupleB >
bool SortByElement< KeyNo >::operator() ( TupleA const &  A,
TupleB const &  B 
) const
inline

Definition at line 37 of file PMTChannelMapDumper.cxx.

38  { return less(A, B); }
static bool less(TupleA const &A, TupleB const &B)
float A
Definition: dedx.py:137

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