All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
icarus::details::ChannelToWireMap::ChannelsInROPStruct::Compare Struct Reference

Compares with a channel ID (std::less<>). More...

#include <ChannelToWireMap.h>

Public Member Functions

template<typename A , typename B >
constexpr bool operator() (A const &a, B const &b) const
 

Static Public Member Functions

static constexpr raw::ChannelID_t channelOf (raw::ChannelID_t channel)
 
static constexpr raw::ChannelID_t channelOf (ChannelsInROPStruct const &data)
 
template<typename A , typename B >
static constexpr bool cmp (A const &a, B const &b)
 

Detailed Description

Compares with a channel ID (std::less<>).

Definition at line 45 of file ChannelToWireMap.h.

Member Function Documentation

static constexpr raw::ChannelID_t icarus::details::ChannelToWireMap::ChannelsInROPStruct::Compare::channelOf ( raw::ChannelID_t  channel)
inlinestatic

Definition at line 50 of file ChannelToWireMap.h.

51  { return channel; }
static constexpr raw::ChannelID_t icarus::details::ChannelToWireMap::ChannelsInROPStruct::Compare::channelOf ( ChannelsInROPStruct const &  data)
inlinestatic

Definition at line 53 of file ChannelToWireMap.h.

54  { return data.firstChannel; }
template<typename A , typename B >
static constexpr bool icarus::details::ChannelToWireMap::ChannelsInROPStruct::Compare::cmp ( A const &  a,
B const &  b 
)
inlinestatic

Definition at line 57 of file ChannelToWireMap.h.

58  { return channelOf(a) < channelOf(b); }
process_name gaushit a
static constexpr raw::ChannelID_t channelOf(raw::ChannelID_t channel)
template<typename A , typename B >
constexpr bool icarus::details::ChannelToWireMap::ChannelsInROPStruct::Compare::operator() ( A const &  a,
B const &  b 
) const
inline

Definition at line 47 of file ChannelToWireMap.h.

48  { return cmp(a, b); }
process_name gaushit a
static constexpr bool cmp(A const &a, B const &b)

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