PODIO v00-16-03
An Event-Data-Model Toolkit for High Energy Physics Experiments
|
#include <RelationRange.h>
Public Types | |
using | ConstIteratorType = typename std::vector< ReferenceType >::const_iterator |
Public Member Functions | |
RelationRange ()=delete | |
RelationRange (ConstIteratorType begin, ConstIteratorType end) | |
ConstIteratorType | begin () const |
begin of the range (necessary for range-based for loop) | |
ConstIteratorType | end () const |
end of the range (necessary for range-based for loop) | |
size_t | size () const |
convenience overload for size | |
bool | empty () const |
convenience overload to check if the range is empty | |
ReferenceType | operator[] (size_t i) const |
Indexed access. | |
ReferenceType | at (size_t i) const |
Indexed access with range check. | |
A simple helper class that allows to return related objects in a way that makes it possible to use the return type in a range-based for loop.
Definition at line 13 of file RelationRange.h.
using podio::RelationRange< ReferenceType >::ConstIteratorType = typename std::vector<ReferenceType>::const_iterator |
Definition at line 15 of file RelationRange.h.
|
delete |
|
inline |
Definition at line 19 of file RelationRange.h.
|
inline |
Indexed access with range check.
Definition at line 46 of file RelationRange.h.
|
inline |
begin of the range (necessary for range-based for loop)
Definition at line 24 of file RelationRange.h.
|
inline |
convenience overload to check if the range is empty
Definition at line 36 of file RelationRange.h.
|
inline |
end of the range (necessary for range-based for loop)
Definition at line 28 of file RelationRange.h.
|
inline |
Indexed access.
Definition at line 40 of file RelationRange.h.
|
inline |
convenience overload for size
Definition at line 32 of file RelationRange.h.