HIPO  4.3.0
High Performance Output data format for experimental physics
hipo::iter_event Class Reference

Lightweight event wrapper providing bank access by name. More...

#include <hipoeventiterator.h>

Public Member Functions

 iter_event ()
 
 iter_event (iter_event &&) noexcept=default
 
iter_eventoperator= (iter_event &&) noexcept=default
 
bankget_bank (std::string_view bankName) const
 Read and return a bank from the current event by name. More...
 

Friends

class hipoeventfile
 
class hipoeventfile::iterator
 

Detailed Description

Lightweight event wrapper providing bank access by name.

Wraps a raw hipo::event pointer and a reference to the parent file's bank templates. Use get_bank() to read a bank from the current event.

Definition at line 82 of file hipoeventiterator.h.

Constructor & Destructor Documentation

◆ iter_event() [1/2]

hipo::iter_event::iter_event ( )
inline

Definition at line 92 of file hipoeventiterator.h.

◆ iter_event() [2/2]

hipo::iter_event::iter_event ( iter_event &&  )
defaultnoexcept

Member Function Documentation

◆ get_bank()

bank& hipo::iter_event::get_bank ( std::string_view  bankName) const
inline

Read and return a bank from the current event by name.

Parameters
bankNameName of the bank schema (e.g., "REC::Particle")
Exceptions
std::runtime_errorif event is invalid or schema is not found

Definition at line 99 of file hipoeventiterator.h.

◆ operator=()

iter_event& hipo::iter_event::operator= ( iter_event &&  )
defaultnoexcept

Friends And Related Function Documentation

◆ hipoeventfile

friend class hipoeventfile
friend

Definition at line 83 of file hipoeventiterator.h.

◆ hipoeventfile::iterator

friend class hipoeventfile::iterator
friend

Definition at line 84 of file hipoeventiterator.h.


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