| The Gaudi Framework v28r2p1 (f1a77ff4)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Friends | List of all members
EvtSelectorContext Class Reference

Definition of class EventIterator. More...

`#include <src/EventSelector/EventIterator.h>`

Inheritance diagram for EvtSelectorContext:
[legend]
Collaboration diagram for EvtSelectorContext:
[legend]

## Public Member Functions
| EvtSelectorContext (const IEvtSelector *selector)
| Standard constructor. More...
| ~EvtSelectorContext () override=default
| Standard Destructor. More...
virtual EvtSelectorContext & | operator= (const EvtSelectorContext &)=default
| Copy constructor. More...
virtual IDataStreamTool::size_type | ID () const
| Stream identifier. More...
long | numEvent () const
| Access counter. More...
long | numStreamEvent () const
| Access counter within stream. More...
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. More...
void | set (IEvtSelector::Context *it, IOpaqueAddress *pA)
| Set the address of the iterator. More...
void | set (IOpaqueAddress *pA)
| Set the address of the iterator. More...
IEvtSelector::Context * | context () const
| Access "real" iterator. More...
IDataStreamTool::size_type | increaseCounters (bool reset=false)
| Increase counters. More...
IDataStreamTool::size_type | decreaseCounters (bool reset=false)
| Decrease counters. More...

## Protected Attributes
IDataStreamTool::size_type | m_streamID = -1
| Stream identifier. More...
long | m_count = -1
| Event counter. More...
long | m_strCount = -1
| Event counter within stream. More...
const IEvtSelector * | m_pSelector = nullptr
| Pointer to event selector. More...
IEvtSelector::Context * | m_context = nullptr
| Pointer to "real" iterator. More...
IOpaqueAddress * | m_pAddress = nullptr
| Pointer to opaque address. More...

## Private Member Functions
| EvtSelectorContext (const EvtSelectorContext &)=default
| Copy constructor. More...

## 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 32 of file EventIterator.h.

## Constructor & Destructor Documentation

EvtSelectorContext::EvtSelectorContext | ( | const EvtSelectorContext & |  | ) |
| private default

Copy constructor.

EvtSelectorContext::EvtSelectorContext | ( | const IEvtSelector * | selector | ) |
| inline

Standard constructor.

Definition at line 87 of file EventIterator.h.

88 : m_pSelector(selector) { }
EvtSelectorContext::m_pSelector
const IEvtSelector * m_pSelector
Pointer to event selector.
Definition: EventIterator.h:47

EvtSelectorContext::~EvtSelectorContext | ( |  | ) |
| override default

Standard Destructor.

## Member Function Documentation

IEvtSelector::Context* EvtSelectorContext::context | ( |  | ) | const
| inline protected

Access "real" iterator.

Definition at line 70 of file EventIterator.h.

70 {
71 return m_context;
72 }
EvtSelectorContext::m_context
IEvtSelector::Context * m_context
Pointer to "real" iterator.
Definition: EventIterator.h:49

IDataStreamTool::size_type EvtSelectorContext::decreaseCounters | ( | bool | reset = `false` | ) |
| inline protected

Decrease counters.

Definition at line 80 of file EventIterator.h.

80 {
81 m_count++;
82 m_strCount = (reset) ? 0 : m_strCount-1;
83 return m_count;
84 }
EvtSelectorContext::m_count
long m_count
Event counter.
Definition: EventIterator.h:43
EvtSelectorContext::m_strCount
long m_strCount
Event counter within stream.
Definition: EventIterator.h:45

virtual IDataStreamTool::size_type EvtSelectorContext::ID | ( |  | ) | const
| inline virtual

Stream identifier.

Definition at line 95 of file EventIterator.h.

95 {
96 return m_streamID;
97 }
EvtSelectorContext::m_streamID
IDataStreamTool::size_type m_streamID
Stream identifier.
Definition: EventIterator.h:41

void* EvtSelectorContext::identifier | ( |  | ) | const
| inline override virtual

Implements IEvtSelector::Context.

Definition at line 106 of file EventIterator.h.

106 {
107 return (void*)m_pSelector;
108 }
EvtSelectorContext::m_pSelector
const IEvtSelector * m_pSelector
Pointer to event selector.
Definition: EventIterator.h:47

IDataStreamTool::size_type EvtSelectorContext::increaseCounters | ( | bool | reset = `false` | ) |
| inline protected

Increase counters.

Definition at line 74 of file EventIterator.h.

74 {
75 m_count++;
76 m_strCount = (reset) ? 0 : m_strCount+1;
77 return m_count;
78 }
EvtSelectorContext::m_count
long m_count
Event counter.
Definition: EventIterator.h:43
EvtSelectorContext::m_strCount
long m_strCount
Event counter within stream.
Definition: EventIterator.h:45

long EvtSelectorContext::numEvent | ( |  | ) | const
| inline

Access counter.

Definition at line 99 of file EventIterator.h.

99 {
100 return m_count;
101 }
EvtSelectorContext::m_count
long m_count
Event counter.
Definition: EventIterator.h:43

long EvtSelectorContext::numStreamEvent | ( |  | ) | const
| inline

Access counter within stream.

Definition at line 103 of file EventIterator.h.

103 {
104 return m_strCount;
105 }
EvtSelectorContext::m_strCount
long m_strCount
Event counter within stream.
Definition: EventIterator.h:45

virtual EvtSelectorContext& EvtSelectorContext::operator= | ( | const EvtSelectorContext & |  | ) |
| virtual default

Copy constructor.

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

Set the address of the iterator.

Definition at line 53 of file EventIterator.h.

53 {
54 m_pSelector = sel;
55 m_context = it;
56 m_streamID = id;
57 m_pAddress = pA;
58 m_strCount = -1;
59 }
IOTest.sel
sel
Definition: IOTest.py:84
EvtSelectorContext::m_strCount
long m_strCount
Event counter within stream.
Definition: EventIterator.h:45
EvtSelectorContext::m_context
IEvtSelector::Context * m_context
Pointer to "real" iterator.
Definition: EventIterator.h:49
EvtSelectorContext::m_pAddress
IOpaqueAddress * m_pAddress
Pointer to opaque address.
Definition: EventIterator.h:51
EvtSelectorContext::m_pSelector
const IEvtSelector * m_pSelector
Pointer to event selector.
Definition: EventIterator.h:47
EvtSelectorContext::m_streamID
IDataStreamTool::size_type m_streamID
Stream identifier.
Definition: EventIterator.h:41

void EvtSelectorContext::set | ( | IEvtSelector::Context * | it,
|  | IOpaqueAddress * | pA
| ) |  |
| inline protected

Set the address of the iterator.

Definition at line 61 of file EventIterator.h.

61 {
62 m_context = it;
63 m_pAddress = pA;
64 }
EvtSelectorContext::m_context
IEvtSelector::Context * m_context
Pointer to "real" iterator.
Definition: EventIterator.h:49
EvtSelectorContext::m_pAddress
IOpaqueAddress * m_pAddress
Pointer to opaque address.
Definition: EventIterator.h:51

void EvtSelectorContext::set | ( | IOpaqueAddress * | pA | ) |
| inline protected

Set the address of the iterator.

Definition at line 66 of file EventIterator.h.

66 {
67 m_pAddress = pA;
68 }
EvtSelectorContext::m_pAddress
IOpaqueAddress * m_pAddress
Pointer to opaque address.
Definition: EventIterator.h:51

## Friends And Related Function Documentation

friend class EventCollectionSelector
| friend

Definition at line 35 of file EventIterator.h.

friend class EventSelector
| friend

Definition at line 34 of file EventIterator.h.

## Member Data Documentation

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

Pointer to "real" iterator.

Definition at line 49 of file EventIterator.h.

long EvtSelectorContext::m_count = -1
| protected

Event counter.

Definition at line 43 of file EventIterator.h.

IOpaqueAddress* EvtSelectorContext::m_pAddress = nullptr
| protected

Pointer to opaque address.

Definition at line 51 of file EventIterator.h.

const IEvtSelector* EvtSelectorContext::m_pSelector = nullptr
| protected

Pointer to event selector.

Definition at line 47 of file EventIterator.h.

long EvtSelectorContext::m_strCount = -1
| protected

Event counter within stream.

Definition at line 45 of file EventIterator.h.

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:

- GaudiCoreSvc/src/EventSelector/EventIterator.h