1 #ifndef CondTools_L1Trigger_Interval_h
2 #define CondTools_L1Trigger_Interval_h
19 template<
typename TimeType,
typename PayloadType>
57 {
return ! (*
this == other); }
75 template<
typename TimeType,
typename PayloadType>
95 typedef std::map<TimeType, Interval<TimeType, PayloadType> >
IntervalMap;
102 #include "CondTools/L1Trigger/src/Interval.icc"
bool operator!=(const Interval< TimeType, PayloadType > &other) const
const TimeType & start() const
static Interval & invalid()
const PayloadType & payload() const
bool operator==(const Interval< TimeType, PayloadType > &other) const
void addInterval(const Interval< TimeType, PayloadType > &interval)
Interval(const TimeType &start, const TimeType &end, const PayloadType &payload)
void setPayload(const PayloadType &payload)
const TimeType & end() const
std::map< TimeType, Interval< TimeType, PayloadType > > IntervalMap
Interval(const TimeType &start, const TimeType &end)
const Interval< TimeType, PayloadType > & find(const TimeType &time) const