Gaudi Framework, version v23r2

Home   Generated: Thu Jun 28 2012
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:
Inheritance graph
[legend]
Collaboration diagram for EvtSelectorContext:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 EvtSelectorContext (const IEvtSelector *selector)
 Standard constructor.
virtual ~EvtSelectorContext ()
 Standard Destructor.
virtual EvtSelectorContextoperator= (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::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
 Stream identifier.
long m_count
 Event counter.
long m_strCount
 Event counter within stream.
const IEvtSelectorm_pSelector
 Pointer to event selector.
IEvtSelector::Contextm_context
 Pointer to "real" iterator.
IOpaqueAddressm_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.

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

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.

Pointer to opaque address.

Definition at line 59 of file EventIterator.h.

Pointer to event selector.

Definition at line 55 of file EventIterator.h.

Event counter within stream.

Definition at line 53 of file EventIterator.h.

Stream identifier.

Definition at line 49 of file EventIterator.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Thu Jun 28 2012 23:27:36 for Gaudi Framework, version v23r2 by Doxygen version 1.7.2 written by Dimitri van Heesch, © 1997-2004