DABC (Data Acquisition Backbone Core)  2.9.9
Public Member Functions | Static Public Member Functions | Protected Attributes
mbs::ReadIterator Class Reference

Read iterator for MBS events/subevents. More...

#include <mbs/Iterator.h>

Public Member Functions

bool AssignEventPointer (dabc::Pointer &ptr)
 
void Close ()
 
EventHeaderevnt () const
 
dabc::Pointer GetEventPointer ()
 Returns pointer, which assign on complete event, including header. More...
 
unsigned GetEventSize () const
 
dabc::Pointer GetSubeventsPointer ()
 Returns pointer, which assign only on subevents. More...
 
bool IsData () const
 
bool IsLastEvent () const
 Returns true if it is last event in the buffer. More...
 
bool NextEvent ()
 
bool NextSubEvent ()
 
ReadIteratoroperator= (const ReadIterator &src)
 
void * rawdata () const
 
unsigned rawdatasize () const
 
 ReadIterator ()
 
 ReadIterator (const dabc::Buffer &buf)
 
 ReadIterator (const ReadIterator &src)
 
bool Reset ()
 Reset iterator - forget pointer on buffer. More...
 
bool Reset (const dabc::Buffer &buf)
 Initialize iterator on the beginning of the buffer, buffer instance should exists until end of iterator usage. More...
 
SubeventHeadersubevnt () const
 
 ~ReadIterator ()
 

Static Public Member Functions

static unsigned NumEvents (const dabc::Buffer &buf)
 

Protected Attributes

dabc::Pointer fEvPtr
 
bool fFirstEvent
 
dabc::Pointer fRawPtr
 
dabc::Pointer fSubPtr
 

Detailed Description

Read iterator for MBS events/subevents.

Definition at line 40 of file Iterator.h.

Constructor & Destructor Documentation

◆ ReadIterator() [1/3]

mbs::ReadIterator::ReadIterator ( )

Definition at line 20 of file Iterator.cxx.

◆ ReadIterator() [2/3]

mbs::ReadIterator::ReadIterator ( const dabc::Buffer buf)

Definition at line 28 of file Iterator.cxx.

◆ ReadIterator() [3/3]

mbs::ReadIterator::ReadIterator ( const ReadIterator src)

Definition at line 37 of file Iterator.cxx.

◆ ~ReadIterator()

mbs::ReadIterator::~ReadIterator ( )
inline

Definition at line 56 of file Iterator.h.

Member Function Documentation

◆ operator=()

mbs::ReadIterator & mbs::ReadIterator::operator= ( const ReadIterator src)

Definition at line 45 of file Iterator.cxx.

◆ Reset() [1/2]

bool mbs::ReadIterator::Reset ( const dabc::Buffer buf)

Initialize iterator on the beginning of the buffer, buffer instance should exists until end of iterator usage.

Definition at line 55 of file Iterator.cxx.

◆ Reset() [2/2]

bool mbs::ReadIterator::Reset ( )
inline

Reset iterator - forget pointer on buffer.

Definition at line 63 of file Iterator.h.

◆ Close()

void mbs::ReadIterator::Close ( )

Definition at line 72 of file Iterator.cxx.

◆ IsData()

bool mbs::ReadIterator::IsData ( ) const
inline

Definition at line 67 of file Iterator.h.

◆ IsLastEvent()

bool mbs::ReadIterator::IsLastEvent ( ) const

Returns true if it is last event in the buffer.

Definition at line 80 of file Iterator.cxx.

◆ NextEvent()

bool mbs::ReadIterator::NextEvent ( )

Definition at line 88 of file Iterator.cxx.

◆ NextSubEvent()

bool mbs::ReadIterator::NextSubEvent ( )

Definition at line 157 of file Iterator.cxx.

◆ evnt()

EventHeader* mbs::ReadIterator::evnt ( ) const
inline

Definition at line 75 of file Iterator.h.

◆ GetEventSize()

unsigned mbs::ReadIterator::GetEventSize ( ) const

Definition at line 122 of file Iterator.cxx.

◆ AssignEventPointer()

bool mbs::ReadIterator::AssignEventPointer ( dabc::Pointer ptr)

Definition at line 146 of file Iterator.cxx.

◆ GetEventPointer()

dabc::Pointer mbs::ReadIterator::GetEventPointer ( )

Returns pointer, which assign on complete event, including header.

Definition at line 130 of file Iterator.cxx.

◆ GetSubeventsPointer()

dabc::Pointer mbs::ReadIterator::GetSubeventsPointer ( )

Returns pointer, which assign only on subevents.

Definition at line 137 of file Iterator.cxx.

◆ subevnt()

SubeventHeader* mbs::ReadIterator::subevnt ( ) const
inline

Definition at line 86 of file Iterator.h.

◆ rawdata()

void* mbs::ReadIterator::rawdata ( ) const
inline

Definition at line 87 of file Iterator.h.

◆ rawdatasize()

unsigned mbs::ReadIterator::rawdatasize ( ) const
inline

Definition at line 88 of file Iterator.h.

◆ NumEvents()

unsigned mbs::ReadIterator::NumEvents ( const dabc::Buffer buf)
static

Definition at line 187 of file Iterator.cxx.

Field Documentation

◆ fFirstEvent

bool mbs::ReadIterator::fFirstEvent
protected

Definition at line 42 of file Iterator.h.

◆ fEvPtr

dabc::Pointer mbs::ReadIterator::fEvPtr
protected

Definition at line 43 of file Iterator.h.

◆ fSubPtr

dabc::Pointer mbs::ReadIterator::fSubPtr
protected

Definition at line 44 of file Iterator.h.

◆ fRawPtr

dabc::Pointer mbs::ReadIterator::fRawPtr
protected

Definition at line 45 of file Iterator.h.


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