| # Gaudi Framework, version v21r7 |

Home |  | Generated: 22 Jan 2010

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

    00039   : IEvtSelector::Context(copy),
    00040     m_count(copy.m_count),
    00041     m_strCount(copy.m_strCount),
    00042     m_pSelector(copy.m_pSelector),
    00043     m_context(copy.m_context),
    00044     m_pAddress(copy.m_pAddress)
    00045   {
    00046   }

EvtSelectorContext::EvtSelectorContext | ( | const IEvtSelector * | selector | ) | `[inline]`

Standard constructor.

Definition at line 95 of file EventIterator.h.

    00096   : m_streamID(-1),
    00097     m_count(-1),
    00098     m_strCount(-1),
    00099     m_pSelector(selector),
    00100     m_context(0),
    00101     m_pAddress(0)
    00102   {
    00103   }

virtual EvtSelectorContext::~EvtSelectorContext | ( |  | ) | `[inline, virtual]`

Standard Destructor.

Definition at line 105 of file EventIterator.h.

    00105                                 {
    00106   }

## Member Function Documentation

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.

    00061                                                                                                                  {
    00062     m_pSelector = sel;
    00063     m_context   = it;
    00064     m_streamID  = id;
    00065     m_pAddress  = pA;
    00066     m_strCount  = -1;
    00067   }

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

Set the address of the iterator.

Definition at line 69 of file EventIterator.h.

    00069                                                            {
    00070     m_context = it;
    00071     m_pAddress = pA;
    00072   }

void EvtSelectorContext::set | ( | IOpaqueAddress * | pA | ) | `[inline, protected]`

Set the address of the iterator.

Definition at line 74 of file EventIterator.h.

    00074                                   {
    00075     m_pAddress = pA;
    00076   }

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

Access "real" iterator.

Definition at line 78 of file EventIterator.h.

    00078                                          {
    00079     return m_context;
    00080   }

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

Increase counters.

Definition at line 82 of file EventIterator.h.

    00082                                                                 {
    00083     m_count++;
    00084     m_strCount = (reset) ? 0 : m_strCount+1;
    00085     return m_count;
    00086   }

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

Decrease counters.

Definition at line 88 of file EventIterator.h.

    00088                                                                 {
    00089     m_count++;
    00090     m_strCount = (reset) ? 0 : m_strCount-1;
    00091     return m_count;
    00092   }

virtual EvtSelectorContext& EvtSelectorContext::operator= | ( | const EvtSelectorContext & | copy | ) | `[inline, virtual]`

Copy constructor.

Definition at line 108 of file EventIterator.h.

    00108                                                                           {
    00109     m_streamID  = copy.m_streamID;
    00110     m_count     = copy.m_count;
    00111     m_strCount  = copy.m_strCount;
    00112     m_pSelector = copy.m_pSelector;
    00113     m_context   = copy.m_context;
    00114     m_pAddress  = copy.m_pAddress;
    00115     return *this;
    00116   }

virtual IDataStreamTool::size_type EvtSelectorContext::ID | ( |  | ) | const`[inline, virtual]`

Stream identifier.

Definition at line 118 of file EventIterator.h.

    00118                                                   {
    00119     return m_streamID;
    00120   }

long EvtSelectorContext::numEvent | ( |  | ) | const`[inline]`

Access counter.

Definition at line 122 of file EventIterator.h.

    00122                             {
    00123     return m_count;
    00124   }

long EvtSelectorContext::numStreamEvent | ( |  | ) | const`[inline]`

Access counter within stream.

Definition at line 126 of file EventIterator.h.

    00126                                   {
    00127     return m_strCount;
    00128   }

void* EvtSelectorContext::identifier | ( |  | ) | const`[inline, virtual]`

Implements IEvtSelector::Context.

Definition at line 129 of file EventIterator.h.

    00129                             {
    00130     return (void*)m_pSelector;
    00131   }

## Friends And Related Function Documentation

friend class EventSelector`[friend]`

Definition at line 34 of file EventIterator.h.

friend class EventCollectionSelector`[friend]`

Definition at line 35 of file EventIterator.h.

## Member Data Documentation

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

Stream identifier.

Definition at line 49 of file EventIterator.h.

long EvtSelectorContext::m_count`[protected]`

Event counter.

Definition at line 51 of file EventIterator.h.

long EvtSelectorContext::m_strCount`[protected]`

Event counter within stream.

Definition at line 53 of file EventIterator.h.

const IEvtSelector* EvtSelectorContext::m_pSelector`[protected]`

Pointer to event selector.

Definition at line 55 of file EventIterator.h.

IEvtSelector::Context* EvtSelectorContext::m_context`[protected]`

Pointer to "real" iterator.

Definition at line 57 of file EventIterator.h.

IOpaqueAddress* EvtSelectorContext::m_pAddress`[protected]`

Pointer to opaque address.

Definition at line 59 of file EventIterator.h.

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

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