10#ifndef EVENTINFO_EVENTID_H
11# define EVENTINFO_EVENTID_H
75 return lhs.m_run_number<rhs.m_run_number ||
76 ( lhs.m_run_number==rhs.m_run_number &&
77 lhs.m_event_number<rhs.m_event_number) ;
80 return lhs.m_run_number==rhs.m_run_number &&
81 lhs.m_event_number==rhs.m_event_number ;
84 return !( (lhs < rhs) || (lhs == rhs));
98 os <<
"[R,E] = [" << rhs.m_run_number <<
"," << rhs.m_event_number <<
"]";
103 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)