CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Protected Attributes

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

#include <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 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]
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.


Member Function Documentation

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

Definition at line 43 of file Interval.h.

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

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

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

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

        { return (this->isInvalid == true && other.isInvalid == true ) ||
            (this->start () == other.start ()) && (this->end () == other.end () &&
                    this->isInvalid == other.isInvalid); }
template<typename TimeType, typename PayloadType>
const PayloadType& l1t::Interval< TimeType, PayloadType >::payload ( ) const [inline]
template<typename TimeType, typename PayloadType>
void l1t::Interval< TimeType, PayloadType >::setPayload ( const PayloadType &  payload) [inline]
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]