|
Gaudi Framework, version v23r2 |
| Home | Generated: Thu Jun 28 2012 |
Definition of class EventIterator. More...
#include <EventIterator.h>


Public Member Functions | |
| EvtSelectorContext (const IEvtSelector *selector) | |
| Standard constructor. | |
| virtual | ~EvtSelectorContext () |
| Standard Destructor. | |
| virtual EvtSelectorContext & | operator= (const EvtSelectorContext ©) |
| Copy constructor. | |
| virtual IDataStreamTool::size_type | ID () const |
| Stream identifier. | |
| long | numEvent () const |
| Access counter. | |
| long | numStreamEvent () const |
| Access counter within stream. | |
| void * | identifier () const |
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::Context * | context () 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 |
| Stream identifier. | |
| long | m_count |
| Event counter. | |
| long | m_strCount |
| Event counter within stream. | |
| const IEvtSelector * | m_pSelector |
| Pointer to event selector. | |
| IEvtSelector::Context * | m_context |
| Pointer to "real" iterator. | |
| IOpaqueAddress * | m_pAddress |
| Pointer to opaque address. | |
Private Member Functions | |
| EvtSelectorContext (const EvtSelectorContext ©) | |
| Copy constructor. | |
Friends | |
| class | EventSelector |
| class | EventCollectionSelector |
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 | +---------+----------------------------------------------+---------+
Definition at line 32 of file EventIterator.h.
| EvtSelectorContext::EvtSelectorContext | ( | const EvtSelectorContext & | copy ) | [inline, private] |
Copy constructor.
Definition at line 38 of file EventIterator.h.
: IEvtSelector::Context(copy), m_count(copy.m_count), m_strCount(copy.m_strCount), m_pSelector(copy.m_pSelector), m_context(copy.m_context), m_pAddress(copy.m_pAddress) { }
| EvtSelectorContext::EvtSelectorContext | ( | const IEvtSelector * | selector ) | [inline] |
Standard constructor.
Definition at line 95 of file EventIterator.h.
: m_streamID(-1), m_count(-1), m_strCount(-1), m_pSelector(selector), m_context(0), m_pAddress(0) { }
| virtual EvtSelectorContext::~EvtSelectorContext | ( | ) | [inline, virtual] |
| IEvtSelector::Context* EvtSelectorContext::context | ( | ) | const [inline, protected] |
| IDataStreamTool::size_type EvtSelectorContext::decreaseCounters | ( | bool | reset = false ) |
[inline, protected] |
Decrease counters.
Definition at line 88 of file EventIterator.h.
{
m_count++;
m_strCount = (reset) ? 0 : m_strCount-1;
return m_count;
}
| virtual IDataStreamTool::size_type EvtSelectorContext::ID | ( | ) | const [inline, virtual] |
| void* EvtSelectorContext::identifier | ( | ) | const [inline, virtual] |
Implements IEvtSelector::Context.
Definition at line 129 of file EventIterator.h.
{
return (void*)m_pSelector;
}
| IDataStreamTool::size_type EvtSelectorContext::increaseCounters | ( | bool | reset = false ) |
[inline, protected] |
Increase counters.
Definition at line 82 of file EventIterator.h.
{
m_count++;
m_strCount = (reset) ? 0 : m_strCount+1;
return m_count;
}
| long EvtSelectorContext::numEvent | ( | ) | const [inline] |
| long EvtSelectorContext::numStreamEvent | ( | ) | const [inline] |
Access counter within stream.
Definition at line 126 of file EventIterator.h.
{
return m_strCount;
}
| virtual EvtSelectorContext& EvtSelectorContext::operator= | ( | const EvtSelectorContext & | copy ) | [inline, virtual] |
Copy constructor.
Definition at line 108 of file EventIterator.h.
{
m_streamID = copy.m_streamID;
m_count = copy.m_count;
m_strCount = copy.m_strCount;
m_pSelector = copy.m_pSelector;
m_context = copy.m_context;
m_pAddress = copy.m_pAddress;
return *this;
}
| void EvtSelectorContext::set | ( | IEvtSelector::Context * | it, |
| IOpaqueAddress * | pA | ||
| ) | [inline, protected] |
Set the address of the iterator.
Definition at line 69 of file EventIterator.h.
{
m_context = it;
m_pAddress = pA;
}
| void EvtSelectorContext::set | ( | IOpaqueAddress * | pA ) | [inline, protected] |
Set the address of the iterator.
Definition at line 74 of file EventIterator.h.
{
m_pAddress = pA;
}
| 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 61 of file EventIterator.h.
{
m_pSelector = sel;
m_context = it;
m_streamID = id;
m_pAddress = pA;
m_strCount = -1;
}
friend class EventCollectionSelector [friend] |
Definition at line 35 of file EventIterator.h.
friend class EventSelector [friend] |
Definition at line 34 of file EventIterator.h.
IEvtSelector::Context* EvtSelectorContext::m_context [protected] |
Pointer to "real" iterator.
Definition at line 57 of file EventIterator.h.
long EvtSelectorContext::m_count [protected] |
Event counter.
Definition at line 51 of file EventIterator.h.
IOpaqueAddress* EvtSelectorContext::m_pAddress [protected] |
Pointer to opaque address.
Definition at line 59 of file EventIterator.h.
const IEvtSelector* EvtSelectorContext::m_pSelector [protected] |
Pointer to event selector.
Definition at line 55 of file EventIterator.h.
long EvtSelectorContext::m_strCount [protected] |
Event counter within stream.
Definition at line 53 of file EventIterator.h.
Stream identifier.
Definition at line 49 of file EventIterator.h.