CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes
l1t::Interval< TimeType, PayloadType > Class Template Reference

#include <Interval.h>

Public Member Functions

const TimeType & end () const
 
 Interval (const TimeType &start, const TimeType &end)
 
 Interval (const TimeType &start, const TimeType &end, const PayloadType &payload)
 
bool operator!= (const Interval< TimeType, PayloadType > &other) const
 
bool operator== (const Interval< TimeType, PayloadType > &other) const
 
const PayloadType & payload () const
 
void setPayload (const PayloadType &payload)
 
const TimeType & start () const
 

Static Public Member Functions

static Intervalinvalid ()
 

Protected Attributes

PayloadType _payload
 
bool isInvalid
 
TimeType m_end
 
TimeType m_start
 

Detailed Description

template<typename TimeType, typename PayloadType>
class l1t::Interval< TimeType, PayloadType >

Definition at line 20 of file Interval.h.

Constructor & Destructor Documentation

template<typename TimeType, typename PayloadType>
l1t::Interval< TimeType, PayloadType >::Interval ( const TimeType &  start,
const TimeType &  end 
)
inline

Definition at line 26 of file Interval.h.

References l1t::Interval< TimeType, PayloadType >::m_end, and l1t::Interval< TimeType, PayloadType >::m_start.

27  : m_start (start), m_end (end), isInvalid (false)
28  { assert (m_start <= m_end); }
Definition: start.py:1
TimeType m_start
Definition: Interval.h:61
const TimeType & end() const
Definition: Interval.h:43
bool isInvalid
Definition: Interval.h:66
TimeType m_end
Definition: Interval.h:62
template<typename TimeType, typename PayloadType>
l1t::Interval< TimeType, PayloadType >::Interval ( const TimeType &  start,
const TimeType &  end,
const PayloadType &  payload 
)
inline

Definition at line 32 of file Interval.h.

33  : m_start(start), m_end (end), _payload (payload), isInvalid (false) {}
Definition: start.py:1
const PayloadType & payload() const
Definition: Interval.h:38
TimeType m_start
Definition: Interval.h:61
const TimeType & end() const
Definition: Interval.h:43
bool isInvalid
Definition: Interval.h:66
TimeType m_end
Definition: Interval.h:62
PayloadType _payload
Definition: Interval.h:63

Member Function Documentation

template<typename TimeType, typename PayloadType>
const TimeType& l1t::Interval< TimeType, PayloadType >::end ( void  ) const
inline
template<typename TimeType, typename PayloadType>
static Interval& l1t::Interval< TimeType, PayloadType >::invalid ( )
static
template<typename TimeType, typename PayloadType>
bool l1t::Interval< TimeType, PayloadType >::operator!= ( const Interval< TimeType, PayloadType > &  other) const
inline

Definition at line 56 of file Interval.h.

References trackingPlots::other.

57  { return ! (*this == other); }
template<typename TimeType, typename PayloadType>
bool l1t::Interval< TimeType, PayloadType >::operator== ( const Interval< TimeType, PayloadType > &  other) const
inline

Definition at line 51 of file Interval.h.

References l1t::Interval< TimeType, PayloadType >::end(), l1t::Interval< TimeType, PayloadType >::isInvalid, and l1t::Interval< TimeType, PayloadType >::start().

52  { return (this->isInvalid == true && other.isInvalid == true ) ||
53  (this->start () == other.start ()) && (this->end () == other.end () &&
54  this->isInvalid == other.isInvalid); }
const TimeType & start() const
Definition: Interval.h:41
const TimeType & end() const
Definition: Interval.h:43
bool isInvalid
Definition: Interval.h:66
template<typename TimeType, typename PayloadType>
const PayloadType& l1t::Interval< TimeType, PayloadType >::payload ( ) const
inline

Definition at line 38 of file Interval.h.

References l1t::Interval< TimeType, PayloadType >::_payload.

Referenced by l1t::Interval< TimeType, PayloadType >::setPayload().

38 { return this->_payload; }
PayloadType _payload
Definition: Interval.h:63
template<typename TimeType, typename PayloadType>
void l1t::Interval< TimeType, PayloadType >::setPayload ( const PayloadType &  payload)
inline

Definition at line 36 of file Interval.h.

References l1t::Interval< TimeType, PayloadType >::_payload, and l1t::Interval< TimeType, PayloadType >::payload().

36 { this->_payload = payload; }
const PayloadType & payload() const
Definition: Interval.h:38
PayloadType _payload
Definition: Interval.h:63
template<typename TimeType, typename PayloadType>
const TimeType& l1t::Interval< TimeType, PayloadType >::start ( ) const
inline

Member Data Documentation

template<typename TimeType, typename PayloadType>
PayloadType l1t::Interval< TimeType, PayloadType >::_payload
protected
template<typename TimeType, typename PayloadType>
bool l1t::Interval< TimeType, PayloadType >::isInvalid
protected

Definition at line 66 of file Interval.h.

Referenced by l1t::Interval< TimeType, PayloadType >::operator==().

template<typename TimeType, typename PayloadType>
TimeType l1t::Interval< TimeType, PayloadType >::m_end
protected
template<typename TimeType, typename PayloadType>
TimeType l1t::Interval< TimeType, PayloadType >::m_start
protected