All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
icarus::trigger::details::TriggerInfo_t::OpeningInfo_t Struct Reference

#include <TriggerInfo_t.h>

Public Member Functions

 OpeningInfo_t ()=default
 Default constructor. More...
 
 OpeningInfo_t (optical_tick tick, Opening_t level=0U, std::size_t locationID=UnknownLocation)
 Constructor: specify tick, the rest is optional. More...
 
bool hasLocation () const
 Returns whether the location is set. More...
 
bool operator< (OpeningInfo_t const &other) const
 Comparison: order from time. More...
 

Public Attributes

optical_tick tick = std::numeric_limits<optical_tick>::min()
 Tick at which the trigger fired. More...
 
Opening_t level = 0U
 Maximum level on the main trigger opening. More...
 
LocationID_t locationID = UnknownLocation
 Identified of the trigger location. More...
 

Static Public Attributes

static constexpr LocationID_t UnknownLocation = std::numeric_limits<std::size_t>::max()
 ID for a trigger in unknown location. More...
 

Detailed Description

Definition at line 60 of file TriggerInfo_t.h.

Constructor & Destructor Documentation

icarus::trigger::details::TriggerInfo_t::OpeningInfo_t::OpeningInfo_t ( )
default

Default constructor.

icarus::trigger::details::TriggerInfo_t::OpeningInfo_t::OpeningInfo_t ( optical_tick  tick,
Opening_t  level = 0U,
std::size_t  locationID = UnknownLocation 
)
inline

Constructor: specify tick, the rest is optional.

Definition at line 79 of file TriggerInfo_t.h.

optical_tick tick
Tick at which the trigger fired.
Definition: TriggerInfo_t.h:67
LocationID_t locationID
Identified of the trigger location.
Definition: TriggerInfo_t.h:72
Opening_t level
Maximum level on the main trigger opening.
Definition: TriggerInfo_t.h:69

Member Function Documentation

bool icarus::trigger::details::TriggerInfo_t::OpeningInfo_t::hasLocation ( ) const
inline

Returns whether the location is set.

Definition at line 86 of file TriggerInfo_t.h.

86 { return locationID != UnknownLocation; }
static constexpr LocationID_t UnknownLocation
ID for a trigger in unknown location.
Definition: TriggerInfo_t.h:64
LocationID_t locationID
Identified of the trigger location.
Definition: TriggerInfo_t.h:72
bool icarus::trigger::details::TriggerInfo_t::OpeningInfo_t::operator< ( OpeningInfo_t const &  other) const
inline

Comparison: order from time.

Definition at line 89 of file TriggerInfo_t.h.

90  { return tick < other.tick; }
optical_tick tick
Tick at which the trigger fired.
Definition: TriggerInfo_t.h:67

Member Data Documentation

Opening_t icarus::trigger::details::TriggerInfo_t::OpeningInfo_t::level = 0U

Maximum level on the main trigger opening.

Definition at line 69 of file TriggerInfo_t.h.

LocationID_t icarus::trigger::details::TriggerInfo_t::OpeningInfo_t::locationID = UnknownLocation

Identified of the trigger location.

Definition at line 72 of file TriggerInfo_t.h.

optical_tick icarus::trigger::details::TriggerInfo_t::OpeningInfo_t::tick = std::numeric_limits<optical_tick>::min()

Tick at which the trigger fired.

Definition at line 67 of file TriggerInfo_t.h.

constexpr LocationID_t icarus::trigger::details::TriggerInfo_t::OpeningInfo_t::UnknownLocation = std::numeric_limits<std::size_t>::max()
static

ID for a trigger in unknown location.

Definition at line 64 of file TriggerInfo_t.h.


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