11#ifndef O2_FRAMEWORK_INPUTSPAN_H_
12#define O2_FRAMEWORK_INPUTSPAN_H_
49 InputSpan(std::function<
DataRef(
size_t,
size_t)> getter, std::function<
size_t(
size_t)> nofPartsGetter, std::function<
int(
size_t)> refCountGetter,
size_t size);
54 return mGetter(
i, partidx);
63 if (!mNofPartsGetter) {
66 return mNofPartsGetter(
i);
75 if (!mRefCountGetter) {
78 return mRefCountGetter(
i);
82 [[nodiscard]]
size_t size()
const
87 [[nodiscard]]
const char*
header(
size_t i)
const
92 [[nodiscard]]
const char*
payload(
size_t i)
const
98 template <
typename ParentT,
typename T>
116 if (mPosition < mSize) {
117 mElement = mParent->get(mPosition);
126 if (mPosition < mSize && ++mPosition < mSize) {
127 mElement = mParent->get(mPosition);
151 return mPosition == rh.mPosition;
157 return mPosition != rh.mPosition;
182 template <
typename T>
216 [[nodiscard]]
size_t size()
const
239 return {
this, 0,
size()};
245 return {
this,
size()};
249 std::function<
DataRef(
size_t,
size_t)> mGetter;
250 std::function<size_t(
size_t)> mNofPartsGetter;
251 std::function<
int(
size_t)> mRefCountGetter;
Defining PrimaryVertex explicitly as messageable.