![]() |
Project
|
Iterator over reco containers. More...
#include <RecoContainer.h>
Classes | |
class | InvalidAccessException |
Handling of access to objects beyond container boundary. More... | |
Public Member Functions | |
RecoContainerReader (RecoContainer &container) | |
Constructor. | |
RecoContainerReader (RecoContainer &&container)=delete | |
~RecoContainerReader ()=default | |
Destructor. | |
EventContainer & | nextEvent () |
Get the next event in container. | |
bool | hasNext () const |
Check whehter there are more events in the container. | |
std::size_t | getNumberOfEvents () const |
Get the number of events in the container. | |
Iterator over reco containers.
The RecoContainerReader iterates over the events stored in the RecoContainer in a time-ordered sequence. The function hasNext checks whether there are more events to iterate over, while nextEvent provides access to the next event.
Error handling: The RecoContainerReader can raise an InvalidAccessException in case access is tried to invalid data.
Definition at line 331 of file RecoContainer.h.
RecoContainerReader::RecoContainerReader | ( | RecoContainer & | container | ) |
Constructor.
container | Container to be iterated over |
Definition at line 166 of file RecoContainer.cxx.
|
delete |
|
default |
Destructor.
|
inline |
Get the number of events in the container.
Definition at line 369 of file RecoContainer.h.
|
inline |
Check whehter there are more events in the container.
Definition at line 365 of file RecoContainer.h.
EventContainer & RecoContainerReader::nextEvent | ( | ) |
Get the next event in container.
InvalidAccessException |
Definition at line 171 of file RecoContainer.cxx.