The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
EvtSelectorContext Class Reference

Definition of class EventIterator. More...

#include </builds/gaudi/Gaudi/GaudiCoreSvc/src/EventSelector/EventIterator.h>

Inheritance diagram for EvtSelectorContext:
Collaboration diagram for EvtSelectorContext:

Public Member Functions

 EvtSelectorContext (const IEvtSelector *selector)
 Standard constructor.
 
virtual IDataStreamTool::size_type ID () const
 Stream identifier.
 
long numEvent () const
 Access counter.
 
long numStreamEvent () const
 Access counter within stream.
 
void * identifier () const override
 
- Public Member Functions inherited from IEvtSelector::Context
virtual ~Context ()=default
 

Protected Member Functions

void set (const IEvtSelector *sel, IDataStreamTool::size_type id, IEvtSelector::Context *it, IOpaqueAddress *pA)
 Set the address of the iterator.
 
void set (IEvtSelector::Context *it, IOpaqueAddress *pA)
 Set the address of the iterator.
 
void set (IOpaqueAddress *pA)
 Set the address of the iterator.
 
IEvtSelector::Contextcontext () const
 Access "real" iterator.
 
IDataStreamTool::size_type increaseCounters (bool reset=false)
 Increase counters.
 
IDataStreamTool::size_type decreaseCounters (bool reset=false)
 Decrease counters.
 

Protected Attributes

IDataStreamTool::size_type m_streamID = -1
 Stream identifier.
 
long m_count = -1
 Event counter.
 
long m_strCount = -1
 Event counter within stream.
 
const IEvtSelectorm_pSelector = nullptr
 Pointer to event selector.
 
IEvtSelector::Contextm_context = nullptr
 Pointer to "real" iterator.
 
IOpaqueAddressm_pAddress = nullptr
 Pointer to opaque address.
 

Private Member Functions

 EvtSelectorContext (const EvtSelectorContext &)=default
 Copy constructor.
 

Friends

class EventSelector
 
class EventCollectionSelector
 

Detailed Description

Definition of class EventIterator.

Generic iterator to access event on the persistent store. The iterator interacts with the event selection service.

History: +------—+-------------------------------------------—+------—+ | Date | Comment | Who | +------—+-------------------------------------------—+------—+ | 3/10/00 | Initial version | M.Frank | +------—+-------------------------------------------—+------—+

Author
Markus Frank
Version
1.0

Definition at line 30 of file EventIterator.h.

Constructor & Destructor Documentation

◆ EvtSelectorContext() [1/2]

EvtSelectorContext::EvtSelectorContext ( const EvtSelectorContext & )
privatedefault

Copy constructor.

◆ EvtSelectorContext() [2/2]

EvtSelectorContext::EvtSelectorContext ( const IEvtSelector * selector)
inline

Standard constructor.

Definition at line 84 of file EventIterator.h.

84: m_pSelector( selector ) {}
const IEvtSelector * m_pSelector
Pointer to event selector.

Member Function Documentation

◆ context()

IEvtSelector::Context * EvtSelectorContext::context ( ) const
inlineprotected

Access "real" iterator.

Definition at line 68 of file EventIterator.h.

68{ return m_context; }
IEvtSelector::Context * m_context
Pointer to "real" iterator.

◆ decreaseCounters()

IDataStreamTool::size_type EvtSelectorContext::decreaseCounters ( bool reset = false)
inlineprotected

Decrease counters.

Definition at line 76 of file EventIterator.h.

76 {
77 m_count++;
78 m_strCount = ( reset ) ? 0 : m_strCount - 1;
79 return m_count;
80 }
long m_count
Event counter.
long m_strCount
Event counter within stream.

◆ ID()

virtual IDataStreamTool::size_type EvtSelectorContext::ID ( ) const
inlinevirtual

Stream identifier.

Definition at line 87 of file EventIterator.h.

87{ return m_streamID; }
IDataStreamTool::size_type m_streamID
Stream identifier.

◆ identifier()

void * EvtSelectorContext::identifier ( ) const
inlineoverridevirtual

Implements IEvtSelector::Context.

Definition at line 92 of file EventIterator.h.

92{ return (void*)m_pSelector; }

◆ increaseCounters()

IDataStreamTool::size_type EvtSelectorContext::increaseCounters ( bool reset = false)
inlineprotected

Increase counters.

Definition at line 70 of file EventIterator.h.

70 {
71 m_count++;
72 m_strCount = ( reset ) ? 0 : m_strCount + 1;
73 return m_count;
74 }

◆ numEvent()

long EvtSelectorContext::numEvent ( ) const
inline

Access counter.

Definition at line 89 of file EventIterator.h.

89{ return m_count; }

◆ numStreamEvent()

long EvtSelectorContext::numStreamEvent ( ) const
inline

Access counter within stream.

Definition at line 91 of file EventIterator.h.

91{ return m_strCount; }

◆ set() [1/3]

void EvtSelectorContext::set ( const IEvtSelector * sel,
IDataStreamTool::size_type id,
IEvtSelector::Context * it,
IOpaqueAddress * pA )
inlineprotected

Set the address of the iterator.

Definition at line 53 of file EventIterator.h.

53 {
55 m_context = it;
56 m_streamID = id;
57 m_pAddress = pA;
58 m_strCount = -1;
59 }
IOpaqueAddress * m_pAddress
Pointer to opaque address.

◆ set() [2/3]

void EvtSelectorContext::set ( IEvtSelector::Context * it,
IOpaqueAddress * pA )
inlineprotected

Set the address of the iterator.

Definition at line 61 of file EventIterator.h.

61 {
62 m_context = it;
63 m_pAddress = pA;
64 }

◆ set() [3/3]

void EvtSelectorContext::set ( IOpaqueAddress * pA)
inlineprotected

Set the address of the iterator.

Definition at line 66 of file EventIterator.h.

66{ m_pAddress = pA; }

Friends And Related Symbol Documentation

◆ EventCollectionSelector

Definition at line 33 of file EventIterator.h.

◆ EventSelector

friend class EventSelector
friend

Definition at line 32 of file EventIterator.h.

Member Data Documentation

◆ m_context

IEvtSelector::Context* EvtSelectorContext::m_context = nullptr
protected

Pointer to "real" iterator.

Definition at line 49 of file EventIterator.h.

◆ m_count

long EvtSelectorContext::m_count = -1
protected

Event counter.

Definition at line 43 of file EventIterator.h.

◆ m_pAddress

IOpaqueAddress* EvtSelectorContext::m_pAddress = nullptr
protected

Pointer to opaque address.

Definition at line 51 of file EventIterator.h.

◆ m_pSelector

const IEvtSelector* EvtSelectorContext::m_pSelector = nullptr
protected

Pointer to event selector.

Definition at line 47 of file EventIterator.h.

◆ m_strCount

long EvtSelectorContext::m_strCount = -1
protected

Event counter within stream.

Definition at line 45 of file EventIterator.h.

◆ m_streamID

IDataStreamTool::size_type EvtSelectorContext::m_streamID = -1
protected

Stream identifier.

Definition at line 41 of file EventIterator.h.


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