10#ifndef EVENTINFO_EVENTID_H
11#define EVENTINFO_EVENTID_H
68 return lhs.m_run_number < rhs.m_run_number ||
69 ( lhs.m_run_number == rhs.m_run_number && lhs.m_event_number < rhs.m_event_number );
72 return lhs.m_run_number == rhs.m_run_number && lhs.m_event_number == rhs.m_event_number;
75 return !( ( lhs < rhs ) || ( lhs == rhs ) );
82 os <<
"[R,E] = [" << rhs.m_run_number <<
"," << rhs.m_event_number <<
"]";
87 is >> rhs.m_run_number >> rhs.m_event_number;
std::istream & operator>>(std::istream &is, EventID &rhs)
bool operator==(const EventID &lhs, const EventID &rhs)
bool operator<(const EventID &lhs, const EventID &rhs)
bool operator>(const EventID &lhs, const EventID &rhs)
bool operator>=(const EventID &lhs, const EventID &rhs)
bool operator<=(const EventID &lhs, const EventID &rhs)
STR & operator<<(STR &os, const EventID &rhs)
bool operator!=(const EventID &lhs, const EventID &rhs)
number_type run_number(void) const
friend std::istream & operator>>(std::istream &is, EventID &rhs)
friend bool operator==(const EventID &lhs, const EventID &rhs)
friend bool operator<(const EventID &lhs, const EventID &rhs)
friend bool operator>(const EventID &lhs, const EventID &rhs)
number_type time_stamp(void) const
friend bool operator>=(const EventID &lhs, const EventID &rhs)
number_type event_number(void) const
friend bool operator<=(const EventID &lhs, const EventID &rhs)
friend STR & operator<<(STR &os, const EventID &rhs)
friend bool operator!=(const EventID &lhs, const EventID &rhs)