HIPO4 C++ Library 4.4.1
Columnar I/O library for CLAS12 physics data
Loading...
Searching...
No Matches
hipo::ChainIterator Class Reference

Iterator for traversing events across all files in a chain. More...

#include <chain.h>

Classes

struct  EventData
 

Public Types

using iterator_category = std::input_iterator_tag
 
using value_type = EventData
 
using difference_type = std::ptrdiff_t
 
using pointer = EventData *
 
using reference = EventData &
 

Public Member Functions

 ChainIterator ()
 
 ChainIterator (chain *ch, bool at_end)
 
ChainIteratoroperator++ ()
 
void operator++ (int)
 
EventData operator* ()
 
bool operator== (const ChainIterator &other) const noexcept
 
bool operator!= (const ChainIterator &other) const noexcept
 

Detailed Description

Iterator for traversing events across all files in a chain.

Provides sequential access to events with file and event index tracking.

Member Typedef Documentation

◆ iterator_category

using hipo::ChainIterator::iterator_category = std::input_iterator_tag

◆ value_type

◆ difference_type

using hipo::ChainIterator::difference_type = std::ptrdiff_t

◆ pointer

◆ reference

Constructor & Destructor Documentation

◆ ChainIterator() [1/2]

hipo::ChainIterator::ChainIterator ( )
inline

◆ ChainIterator() [2/2]

hipo::ChainIterator::ChainIterator ( chain ch,
bool  at_end 
)
inline

Member Function Documentation

◆ operator++() [1/2]

ChainIterator & hipo::ChainIterator::operator++ ( )
inline

◆ operator++() [2/2]

void hipo::ChainIterator::operator++ ( int  )
inline

◆ operator*()

EventData hipo::ChainIterator::operator* ( )
inline

◆ operator==()

bool hipo::ChainIterator::operator== ( const ChainIterator other) const
inlinenoexcept

◆ operator!=()

bool hipo::ChainIterator::operator!= ( const ChainIterator other) const
inlinenoexcept

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