lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
Drp::EvtBatcherIterator Class Reference

Iterates backwards over the subframe tails of a batcher event, from the end of the buffer to the first line after the header. More...

#include <EventBatcher.hh>

Public Member Functions

 EvtBatcherIterator (EvtBatcherHeader *ebh, size_t bytes)
 Start at the last line of the bytes-long buffer at ebh; iteration stops at the line after the header.
 
EvtBatcherSubFrameTail * next ()
 Return the next tail going backwards, or nullptr when all have been returned.
 

Detailed Description

Iterates backwards over the subframe tails of a batcher event, from the end of the buffer to the first line after the header.

Constructor & Destructor Documentation

◆ EvtBatcherIterator()

Drp::EvtBatcherIterator::EvtBatcherIterator ( EvtBatcherHeader *  ebh,
size_t  bytes 
)
inline

Start at the last line of the bytes-long buffer at ebh; iteration stops at the line after the header.

Member Function Documentation

◆ next()

EvtBatcherSubFrameTail * Drp::EvtBatcherIterator::next ( )
inline

Return the next tail going backwards, or nullptr when all have been returned.

Logs and throws std::runtime_error if a subframe would extend before the first line after the header.


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