RootEvtIterator Class Reference

implements the IEvtSelector::Iterator interface More...

#include <RootEvtIterator.h>

List of all members.

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

Private Attributes

const IEvtSelector * m_glastEvtSel
 pointer to RootEvtSelector
int m_recId
 counts number of event

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::RootEvtIterator (  )  [inline]

Definition at line 20 of file RootEvtIterator.h.

00020 {}

RootEvtIterator::RootEvtIterator ( const IEvtSelector *  glastEvtSel  )  [inline]

Definition at line 21 of file RootEvtIterator.h.

00021                                                    : m_glastEvtSel(glastEvtSel),
00022     m_recId(0) { }

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

Definition at line 23 of file RootEvtIterator.h.

References m_recId.

00024     : m_glastEvtSel(glastEvtSel){
00025     m_recId = recId;
00026   }

virtual RootEvtIterator::~RootEvtIterator (  )  [inline, virtual]

Definition at line 27 of file RootEvtIterator.h.

00027 { }


Member Function Documentation

virtual IOpaqueAddress* RootEvtIterator::operator * ( void   )  const [inline, virtual]

Definition at line 28 of file RootEvtIterator.h.

References m_glastEvtSel.

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

virtual bool RootEvtIterator::operator!= ( const IEvtSelector::Iterator &  it  )  const [inline, virtual]

Definition at line 38 of file RootEvtIterator.h.

References m_recId.

00038                                                                 {
00039     const RootEvtIterator* glastIt = dynamic_cast<const RootEvtIterator*>(&it);
00040     return((m_recId != glastIt->m_recId));
00041   }

virtual IEvtSelector::Iterator& RootEvtIterator::operator++ ( int   )  [inline, virtual]

Definition at line 32 of file RootEvtIterator.h.

References m_glastEvtSel.

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

virtual IEvtSelector::Iterator& RootEvtIterator::operator++ ( void   )  [inline, virtual]

Definition at line 30 of file RootEvtIterator.h.

References m_glastEvtSel.

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

virtual IEvtSelector::Iterator& RootEvtIterator::operator-- ( int   )  [inline, virtual]

Definition at line 33 of file RootEvtIterator.h.

References m_glastEvtSel.

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

virtual IEvtSelector::Iterator& RootEvtIterator::operator-- ( void   )  [inline, virtual]

Definition at line 31 of file RootEvtIterator.h.

References m_glastEvtSel.

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

virtual IOpaqueAddress* RootEvtIterator::operator-> (  )  const [inline, virtual]

Definition at line 29 of file RootEvtIterator.h.

References m_glastEvtSel.

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

virtual bool RootEvtIterator::operator== ( const IEvtSelector::Iterator &  it  )  const [inline, virtual]

Definition at line 34 of file RootEvtIterator.h.

References m_recId.

00034                                                                 {
00035     const RootEvtIterator* glastIt = dynamic_cast<const RootEvtIterator*>(&it);
00036     return((m_recId == glastIt->m_recId));
00037   }


Friends And Related Function Documentation

friend class RootEvtSelector [friend]

Definition at line 19 of file RootEvtIterator.h.


Member Data Documentation

const IEvtSelector* RootEvtIterator::m_glastEvtSel [private]

pointer to RootEvtSelector

Definition at line 45 of file RootEvtIterator.h.

Referenced by operator *(), operator++(), operator--(), and operator->().

int RootEvtIterator::m_recId [private]

counts number of event

Definition at line 47 of file RootEvtIterator.h.

Referenced by operator!=(), operator==(), and RootEvtIterator().


Generated on Tue Nov 29 23:35:52 2016 for BOSS_7.0.2 by  doxygen 1.4.7