BOSS 7.0.8
BESIII Offline Software System
Loading...
Searching...
No Matches
RootEvtIterator Class Reference

implements the IEvtSelector::Iterator interface More...

#include <RootEvtIterator.h>

+ Inheritance diagram for RootEvtIterator:

Public Member Functions

 RootEvtIterator ()
 
 RootEvtIterator (const IEvtSelector *glastEvtSel)
 
 RootEvtIterator (const IEvtSelector *glastEvtSel, int recId)
 
virtual ~RootEvtIterator ()
 
virtual IOpaqueAddress * operator* () const
 
virtual IOpaqueAddress * operator-> () const
 
virtual IEvtSelector::Iterator & operator++ ()
 
virtual IEvtSelector::Iterator & operator-- ()
 
virtual IEvtSelector::Iterator & operator++ (int)
 
virtual IEvtSelector::Iterator & operator-- (int)
 
virtual bool operator== (const IEvtSelector::Iterator &it) const
 
virtual bool operator!= (const IEvtSelector::Iterator &it) const
 

Friends

class RootEvtSelector
 

Detailed Description

implements the IEvtSelector::Iterator interface

Header
/bes/bes/BossCvs/Event/RootCnvSvc/RootCnvSvc/RootEvtIterator.h,v 1.8 2008/01/09 00:05:48 codeman Exp

Definition at line 17 of file RootEvtIterator.h.

Constructor & Destructor Documentation

◆ RootEvtIterator() [1/3]

RootEvtIterator::RootEvtIterator ( )
inline

Definition at line 20 of file RootEvtIterator.h.

20{}

◆ RootEvtIterator() [2/3]

RootEvtIterator::RootEvtIterator ( const IEvtSelector *  glastEvtSel)
inline

Definition at line 21 of file RootEvtIterator.h.

21 : m_glastEvtSel(glastEvtSel),
22 m_recId(0) { }

◆ RootEvtIterator() [3/3]

RootEvtIterator::RootEvtIterator ( const IEvtSelector *  glastEvtSel,
int  recId 
)
inline

Definition at line 23 of file RootEvtIterator.h.

24 : m_glastEvtSel(glastEvtSel){
25 m_recId = recId;
26 }

◆ ~RootEvtIterator()

virtual RootEvtIterator::~RootEvtIterator ( )
inlinevirtual

Definition at line 27 of file RootEvtIterator.h.

27{ }

Member Function Documentation

◆ operator!=()

virtual bool RootEvtIterator::operator!= ( const IEvtSelector::Iterator &  it) const
inlinevirtual

Definition at line 38 of file RootEvtIterator.h.

38 {
39 const RootEvtIterator* glastIt = dynamic_cast<const RootEvtIterator*>(&it);
40 return((m_recId != glastIt->m_recId));
41 }
implements the IEvtSelector::Iterator interface

◆ operator*()

virtual IOpaqueAddress * RootEvtIterator::operator* ( ) const
inlinevirtual

Definition at line 28 of file RootEvtIterator.h.

28{return m_glastEvtSel->reference(*this);}

◆ operator++() [1/2]

virtual IEvtSelector::Iterator & RootEvtIterator::operator++ ( )
inlinevirtual

Definition at line 30 of file RootEvtIterator.h.

30{ return m_glastEvtSel->next(*this);}

◆ operator++() [2/2]

virtual IEvtSelector::Iterator & RootEvtIterator::operator++ ( int  )
inlinevirtual

Definition at line 32 of file RootEvtIterator.h.

32{ return m_glastEvtSel->next(*this);}

◆ operator--() [1/2]

virtual IEvtSelector::Iterator & RootEvtIterator::operator-- ( )
inlinevirtual

Definition at line 31 of file RootEvtIterator.h.

31{ return m_glastEvtSel->previous(*this);}

◆ operator--() [2/2]

virtual IEvtSelector::Iterator & RootEvtIterator::operator-- ( int  )
inlinevirtual

Definition at line 33 of file RootEvtIterator.h.

33{ return m_glastEvtSel->previous(*this);}

◆ operator->()

virtual IOpaqueAddress * RootEvtIterator::operator-> ( ) const
inlinevirtual

Definition at line 29 of file RootEvtIterator.h.

29{ return m_glastEvtSel->reference(*this);}

◆ operator==()

virtual bool RootEvtIterator::operator== ( const IEvtSelector::Iterator &  it) const
inlinevirtual

Definition at line 34 of file RootEvtIterator.h.

34 {
35 const RootEvtIterator* glastIt = dynamic_cast<const RootEvtIterator*>(&it);
36 return((m_recId == glastIt->m_recId));
37 }

Friends And Related Function Documentation

◆ RootEvtSelector

friend class RootEvtSelector
friend

Definition at line 19 of file RootEvtIterator.h.


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