| # Gaudi Framework, version v22r4 |

Home |  | Generated: Fri Sep 2 2011

Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Friends

# EvtSelectorContext Class Reference

Definition of class EventIterator. More...

`#include <EventIterator.h>`

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

List of all members.

## Public Member Functions
| EvtSelectorContext (const IEvtSelector *selector)
| Standard constructor.
virtual | ~EvtSelectorContext ()
| Standard Destructor.
virtual EvtSelectorContext & | operator= (const EvtSelectorContext &copy)
| 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)
| 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 32 of file EventIterator.h.

## Constructor & Destructor Documentation

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]`

Standard Destructor.

Definition at line 105 of file EventIterator.h.

                                    {
      }

## Member Function Documentation

IEvtSelector::Context* EvtSelectorContext::context | ( | ) | const`[inline, protected]`

Access "real" iterator.

Definition at line 78 of file EventIterator.h.

                                             {
        return m_context;
      }

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]`

Stream identifier.

Definition at line 118 of file EventIterator.h.

                                                      {
        return m_streamID;
      }

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]`

Access counter.

Definition at line 122 of file EventIterator.h.

                                {
        return m_count;
      }

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;
      }

## 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`[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.

IDataStreamTool::size_type EvtSelectorContext::m_streamID`[protected]`

Stream identifier.

Definition at line 49 of file EventIterator.h.

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r4/GaudiSvc/src/EventSelector/EventIterator.h

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines