All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
EvtSelectorContext Class Reference

Definition of class EventIterator. More...

#include <src/EventSelector/EventIterator.h>

Inheritance diagram for EvtSelectorContext:
Collaboration diagram for EvtSelectorContext:

Public Member Functions

 EvtSelectorContext (const IEvtSelector *selector)
 Standard constructor. More...
 
virtual ~EvtSelectorContext ()
 Standard Destructor. More...
 
virtual EvtSelectorContextoperator= (const EvtSelectorContext &copy)
 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
 
- Public Member Functions inherited from IEvtSelector::Context
virtual ~Context ()
 

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::Contextcontext () 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
 Stream identifier. More...
 
long m_count
 Event counter. More...
 
long m_strCount
 Event counter within stream. More...
 
const IEvtSelectorm_pSelector
 Pointer to event selector. More...
 
IEvtSelector::Contextm_context
 Pointer to "real" iterator. More...
 
IOpaqueAddressm_pAddress
 Pointer to opaque address. More...
 

Private Member Functions

 EvtSelectorContext (const EvtSelectorContext &copy)
 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 copy)
inlineprivate

Copy constructor.

Definition at line 38 of file EventIterator.h.

39  : IEvtSelector::Context(copy),
40  m_count(copy.m_count),
41  m_strCount(copy.m_strCount),
42  m_pSelector(copy.m_pSelector),
43  m_context(copy.m_context),
45  {
46  }
long m_count
Event counter.
Definition: EventIterator.h:51
long m_strCount
Event counter within stream.
Definition: EventIterator.h:53
IEvtSelector::Context * m_context
Pointer to "real" iterator.
Definition: EventIterator.h:57
IOpaqueAddress * m_pAddress
Pointer to opaque address.
Definition: EventIterator.h:59
const IEvtSelector * m_pSelector
Pointer to event selector.
Definition: EventIterator.h:55
EvtSelectorContext::EvtSelectorContext ( const IEvtSelector selector)
inline

Standard constructor.

Definition at line 95 of file EventIterator.h.

96  : m_streamID(-1),
97  m_count(-1),
98  m_strCount(-1),
99  m_pSelector(selector),
100  m_context(0),
101  m_pAddress(0)
102  {
103  }
long m_count
Event counter.
Definition: EventIterator.h:51
long m_strCount
Event counter within stream.
Definition: EventIterator.h:53
IEvtSelector::Context * m_context
Pointer to "real" iterator.
Definition: EventIterator.h:57
IOpaqueAddress * m_pAddress
Pointer to opaque address.
Definition: EventIterator.h:59
const IEvtSelector * m_pSelector
Pointer to event selector.
Definition: EventIterator.h:55
IDataStreamTool::size_type m_streamID
Stream identifier.
Definition: EventIterator.h:49
virtual EvtSelectorContext::~EvtSelectorContext ( )
inlinevirtual

Standard Destructor.

Definition at line 105 of file EventIterator.h.

105  {
106  }

Member Function Documentation

IEvtSelector::Context* EvtSelectorContext::context ( ) const
inlineprotected

Access "real" iterator.

Definition at line 78 of file EventIterator.h.

78  {
79  return m_context;
80  }
IEvtSelector::Context * m_context
Pointer to "real" iterator.
Definition: EventIterator.h:57
IDataStreamTool::size_type EvtSelectorContext::decreaseCounters ( bool  reset = false)
inlineprotected

Decrease counters.

Definition at line 88 of file EventIterator.h.

88  {
89  m_count++;
90  m_strCount = (reset) ? 0 : m_strCount-1;
91  return m_count;
92  }
long m_count
Event counter.
Definition: EventIterator.h:51
long m_strCount
Event counter within stream.
Definition: EventIterator.h:53
virtual IDataStreamTool::size_type EvtSelectorContext::ID ( ) const
inlinevirtual

Stream identifier.

Definition at line 118 of file EventIterator.h.

118  {
119  return m_streamID;
120  }
IDataStreamTool::size_type m_streamID
Stream identifier.
Definition: EventIterator.h:49
void* EvtSelectorContext::identifier ( ) const
inlinevirtual

Implements IEvtSelector::Context.

Definition at line 129 of file EventIterator.h.

129  {
130  return (void*)m_pSelector;
131  }
const IEvtSelector * m_pSelector
Pointer to event selector.
Definition: EventIterator.h:55
IDataStreamTool::size_type EvtSelectorContext::increaseCounters ( bool  reset = false)
inlineprotected

Increase counters.

Definition at line 82 of file EventIterator.h.

82  {
83  m_count++;
84  m_strCount = (reset) ? 0 : m_strCount+1;
85  return m_count;
86  }
long m_count
Event counter.
Definition: EventIterator.h:51
long m_strCount
Event counter within stream.
Definition: EventIterator.h:53
long EvtSelectorContext::numEvent ( ) const
inline

Access counter.

Definition at line 122 of file EventIterator.h.

122  {
123  return m_count;
124  }
long m_count
Event counter.
Definition: EventIterator.h:51
long EvtSelectorContext::numStreamEvent ( ) const
inline

Access counter within stream.

Definition at line 126 of file EventIterator.h.

126  {
127  return m_strCount;
128  }
long m_strCount
Event counter within stream.
Definition: EventIterator.h:53
virtual EvtSelectorContext& EvtSelectorContext::operator= ( const EvtSelectorContext copy)
inlinevirtual

Copy constructor.

Definition at line 108 of file EventIterator.h.

108  {
109  m_streamID = copy.m_streamID;
110  m_count = copy.m_count;
111  m_strCount = copy.m_strCount;
112  m_pSelector = copy.m_pSelector;
113  m_context = copy.m_context;
114  m_pAddress = copy.m_pAddress;
115  return *this;
116  }
long m_count
Event counter.
Definition: EventIterator.h:51
long m_strCount
Event counter within stream.
Definition: EventIterator.h:53
IEvtSelector::Context * m_context
Pointer to "real" iterator.
Definition: EventIterator.h:57
IOpaqueAddress * m_pAddress
Pointer to opaque address.
Definition: EventIterator.h:59
const IEvtSelector * m_pSelector
Pointer to event selector.
Definition: EventIterator.h:55
IDataStreamTool::size_type m_streamID
Stream identifier.
Definition: EventIterator.h:49
void EvtSelectorContext::set ( const IEvtSelector sel,
IDataStreamTool::size_type  id,
IEvtSelector::Context it,
IOpaqueAddress pA 
)
inlineprotected

Set the address of the iterator.

Definition at line 61 of file EventIterator.h.

61  {
62  m_pSelector = sel;
63  m_context = it;
64  m_streamID = id;
65  m_pAddress = pA;
66  m_strCount = -1;
67  }
long m_strCount
Event counter within stream.
Definition: EventIterator.h:53
IEvtSelector::Context * m_context
Pointer to "real" iterator.
Definition: EventIterator.h:57
IOpaqueAddress * m_pAddress
Pointer to opaque address.
Definition: EventIterator.h:59
const IEvtSelector * m_pSelector
Pointer to event selector.
Definition: EventIterator.h:55
IDataStreamTool::size_type m_streamID
Stream identifier.
Definition: EventIterator.h:49
void EvtSelectorContext::set ( IEvtSelector::Context it,
IOpaqueAddress pA 
)
inlineprotected

Set the address of the iterator.

Definition at line 69 of file EventIterator.h.

69  {
70  m_context = it;
71  m_pAddress = pA;
72  }
IEvtSelector::Context * m_context
Pointer to "real" iterator.
Definition: EventIterator.h:57
IOpaqueAddress * m_pAddress
Pointer to opaque address.
Definition: EventIterator.h:59
void EvtSelectorContext::set ( IOpaqueAddress pA)
inlineprotected

Set the address of the iterator.

Definition at line 74 of file EventIterator.h.

74  {
75  m_pAddress = pA;
76  }
IOpaqueAddress * m_pAddress
Pointer to opaque address.
Definition: EventIterator.h:59

Friends And Related Function Documentation

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: