CMS 3D CMS Logo

l1t::Interval< TimeType, PayloadType > Class Template Reference

#include <CondTools/L1Trigger/interface/Interval.h>

List of all members.

Public Member Functions

const TimeType & end () const
 Interval (const TimeType &start, const TimeType &end, const PayloadType &payload)
 Interval (const TimeType &start, const TimeType &end)
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 19 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 25 of file Interval.h.

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

00026             : m_start (start), m_end (end), isInvalid (false)
00027         { assert (m_start <= m_end); }

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

Definition at line 31 of file Interval.h.

00032             : m_start(start), m_end (end), _payload (payload), isInvalid (false) {}


Member Function Documentation

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

Definition at line 42 of file Interval.h.

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

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

00042 { return this->m_end; }

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 55 of file Interval.h.

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

template<typename TimeType, typename PayloadType>
bool l1t::Interval< TimeType, PayloadType >::operator== ( const Interval< TimeType, PayloadType > &  other  )  const [inline]

Definition at line 50 of file Interval.h.

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

00051         { return (this->isInvalid == true && other.isInvalid == true ) ||
00052             (this->start () == other.start ()) && (this->end () == other.end () &&
00053                     this->isInvalid == other.isInvalid); }

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

Definition at line 37 of file Interval.h.

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

Referenced by l1t::DataReader::readKey().

00037 { return this->_payload; }

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

Definition at line 35 of file Interval.h.

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

00035 { this->_payload = payload; }

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

Definition at line 40 of file Interval.h.

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

Referenced by l1t::IntervalManager< TimeType, PayloadType >::addInterval(), l1t::DataReader::interval(), and l1t::Interval< TimeType, PayloadType >::operator==().

00040 { return this->m_start; }


Member Data Documentation

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

Definition at line 62 of file Interval.h.

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

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

Definition at line 65 of file Interval.h.

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

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

Definition at line 61 of file Interval.h.

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

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

Definition at line 60 of file Interval.h.

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


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:48:01 2009 for CMSSW by  doxygen 1.5.4