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

◆ Interval() [1/2]

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

◆ Interval() [2/2]

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) {}

Member Function Documentation

◆ end()

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

◆ invalid()

template<typename TimeType, typename PayloadType>
static Interval& l1t::Interval< TimeType, PayloadType >::invalid ( )
static

◆ operator!=()

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.

57  { return ! (*this == other); }

References trackingPlots::other.

◆ operator==()

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.

52  { return (this->isInvalid == true && other.isInvalid == true ) ||
53  (this->start () == other.start ()) && (this->end () == other.end () &&
54  this->isInvalid == other.isInvalid); }

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

◆ payload()

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

Definition at line 38 of file Interval.h.

38 { return this->_payload; }

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

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

◆ setPayload()

template<typename TimeType, typename PayloadType>
void l1t::Interval< TimeType, PayloadType >::setPayload ( const PayloadType &  payload)
inline

◆ start()

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

Member Data Documentation

◆ _payload

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

◆ isInvalid

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==().

◆ m_end

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

◆ m_start

template<typename TimeType, typename PayloadType>
TimeType l1t::Interval< TimeType, PayloadType >::m_start
protected
start
Definition: start.py:1
l1t::Interval::isInvalid
bool isInvalid
Definition: Interval.h:66
l1t::Interval::payload
const PayloadType & payload() const
Definition: Interval.h:38
l1t::Interval::start
const TimeType & start() const
Definition: Interval.h:41
cms::cuda::assert
assert(be >=bs)
trackingPlots.other
other
Definition: trackingPlots.py:1465
l1t::Interval::end
const TimeType & end() const
Definition: Interval.h:43
l1t::Interval::_payload
PayloadType _payload
Definition: Interval.h:63
l1t::Interval::m_end
TimeType m_end
Definition: Interval.h:62
l1t::Interval::m_start
TimeType m_start
Definition: Interval.h:61