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::trigger::TriggerGateData< Tick, TickInterval >::CompareTick Struct Reference

Comparison by tick number. More...

Public Member Functions

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

Static Public Member Functions

static constexpr ClockTick_t tickOf (ClockTick_t tick)
 
static constexpr ClockTick_t tickOf (Status const &status)
 

Detailed Description

template<typename Tick, typename TickInterval>
struct icarus::trigger::TriggerGateData< Tick, TickInterval >::CompareTick

Comparison by tick number.

Definition at line 434 of file TriggerGateData.h.

Member Function Documentation

template<typename Tick, typename TickInterval>
template<typename A , typename B >
bool icarus::trigger::TriggerGateData< Tick, TickInterval >::CompareTick::operator() ( A &&  a,
B &&  b 
) const
inline

Definition at line 439 of file TriggerGateData.h.

439 { return tickOf(a) < tickOf(b); }
process_name gaushit a
static constexpr ClockTick_t tickOf(ClockTick_t tick)
template<typename Tick, typename TickInterval>
static constexpr ClockTick_t icarus::trigger::TriggerGateData< Tick, TickInterval >::CompareTick::tickOf ( ClockTick_t  tick)
inlinestatic

Definition at line 435 of file TriggerGateData.h.

435 { return tick; }
tick_as<> tick
Tick number, represented by std::ptrdiff_t.
Definition: electronics.h:75
template<typename Tick, typename TickInterval>
static constexpr ClockTick_t icarus::trigger::TriggerGateData< Tick, TickInterval >::CompareTick::tickOf ( Status const &  status)
inlinestatic

Definition at line 436 of file TriggerGateData.h.

437  { return status.tick; }

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