ATLAS Offline Software
Loading...
Searching...
No Matches
LB_IOVRange Class Reference

#include <LB_IOVRange.h>

Inheritance diagram for LB_IOVRange:
Collaboration diagram for LB_IOVRange:

Public Member Functions

 LB_IOVRange ()
 LB_IOVRange (const IOVTime &start, const IOVTime &stop)
 LB_IOVRange (const IOVRange &r)
 LB_IOVRange (const IOVRange &r, uint32_t numExpected, uint32_t numSeen)
uint32_t getNumExpected () const
uint32_t getNumSeen () const
void setNumExpected (uint32_t num)
void setNumSeen (uint32_t num)
const IOVTimestart () const
const IOVTimestop () const
bool isInRange (const IOVTime &t) const
 operator std::string () const
 operator EventIDRange () const

Protected Attributes

uint32_t m_NumExpected
uint32_t m_NumSeen

Private Attributes

IOVTime m_start
IOVTime m_stop

Friends

bool operator== (const LB_IOVRange &lhs, const LB_IOVRange &rhs)
bool operator!= (const LB_IOVRange &lhs, const LB_IOVRange &rhs)

Detailed Description

Definition at line 15 of file LB_IOVRange.h.

Constructor & Destructor Documentation

◆ LB_IOVRange() [1/4]

LB_IOVRange::LB_IOVRange ( )

Definition at line 12 of file LB_IOVRange.cxx.

12: IOVRange(IOVTime(0),IOVTime(0)), m_NumExpected(0), m_NumSeen(0) {}
IOVRange()
Definition IOVRange.h:32
uint32_t m_NumSeen
Definition LB_IOVRange.h:34
uint32_t m_NumExpected
Definition LB_IOVRange.h:33

◆ LB_IOVRange() [2/4]

LB_IOVRange::LB_IOVRange ( const IOVTime & start,
const IOVTime & stop )

Definition at line 14 of file LB_IOVRange.cxx.

14 : IOVRange(start, stop ),
15 m_NumExpected(0), m_NumSeen(0) {}
const IOVTime & stop() const
Definition IOVRange.h:39
const IOVTime & start() const
Definition IOVRange.h:38

◆ LB_IOVRange() [3/4]

LB_IOVRange::LB_IOVRange ( const IOVRange & r)

Definition at line 17 of file LB_IOVRange.cxx.

17 : IOVRange(r.start(),r.stop()) ,
int r
Definition globals.cxx:22

◆ LB_IOVRange() [4/4]

LB_IOVRange::LB_IOVRange ( const IOVRange & r,
uint32_t numExpected,
uint32_t numSeen )

Definition at line 20 of file LB_IOVRange.cxx.

20 : IOVRange(r.start(),r.stop()),
21 m_NumExpected(numExpected), m_NumSeen(numSeen) {}

Member Function Documentation

◆ getNumExpected()

uint32_t LB_IOVRange::getNumExpected ( ) const
inline

Definition at line 24 of file LB_IOVRange.h.

24{return m_NumExpected;}

◆ getNumSeen()

uint32_t LB_IOVRange::getNumSeen ( ) const
inline

Definition at line 25 of file LB_IOVRange.h.

25{return m_NumSeen;}

◆ isInRange()

bool IOVRange::isInRange ( const IOVTime & t) const
inlineinherited

Definition at line 41 of file IOVRange.h.

41 {
42 return ( t>=m_start && t<m_stop );
43 }
IOVTime m_start
Definition IOVRange.h:56
IOVTime m_stop
Definition IOVRange.h:57

◆ operator EventIDRange()

IOVRange::operator EventIDRange ( ) const
inherited

Definition at line 37 of file IOVRange.cxx.

37 {
38 return EventIDRange( EventIDBase(m_start), EventIDBase(m_stop) );
39}

◆ operator std::string()

IOVRange::operator std::string ( ) const
inherited

Definition at line 52 of file IOVRange.cxx.

52 {
53 std::ostringstream os;
54 os << '{' << m_start << " - " << m_stop << '}';
55 return os.str();
56}

◆ setNumExpected()

void LB_IOVRange::setNumExpected ( uint32_t num)
inline

Definition at line 26 of file LB_IOVRange.h.

◆ setNumSeen()

void LB_IOVRange::setNumSeen ( uint32_t num)
inline

Definition at line 27 of file LB_IOVRange.h.

◆ start()

const IOVTime & IOVRange::start ( ) const
inlineinherited

Definition at line 38 of file IOVRange.h.

38{ return m_start; }

◆ stop()

const IOVTime & IOVRange::stop ( ) const
inlineinherited

Definition at line 39 of file IOVRange.h.

39{ return m_stop; }

◆ operator!=

bool operator!= ( const LB_IOVRange & lhs,
const LB_IOVRange & rhs )
friend

Definition at line 46 of file LB_IOVRange.h.

46 {
47 return !(lhs==rhs);
48}

◆ operator==

bool operator== ( const LB_IOVRange & lhs,
const LB_IOVRange & rhs )
friend

Definition at line 38 of file LB_IOVRange.h.

38 {
39 return lhs.start()==rhs.start() &&
40 lhs.stop()==rhs.stop() &&
41 lhs.getNumExpected()==rhs.getNumExpected() &&
42 lhs.getNumSeen()==rhs.getNumSeen();
43}
uint32_t getNumExpected() const
Definition LB_IOVRange.h:24
uint32_t getNumSeen() const
Definition LB_IOVRange.h:25

Member Data Documentation

◆ m_NumExpected

uint32_t LB_IOVRange::m_NumExpected
protected

Definition at line 33 of file LB_IOVRange.h.

◆ m_NumSeen

uint32_t LB_IOVRange::m_NumSeen
protected

Definition at line 34 of file LB_IOVRange.h.

◆ m_start

IOVTime IOVRange::m_start
privateinherited

Definition at line 56 of file IOVRange.h.

◆ m_stop

IOVTime IOVRange::m_stop
privateinherited

Definition at line 57 of file IOVRange.h.


The documentation for this class was generated from the following files: