![]() |
Project
|
#include <InputSpan.h>
Classes | |
| class | InputSpanIterator |
| class | Iterator |
Public Types | |
| using | iterator = InputSpanIterator< DataRef > |
| using | const_iterator = InputSpanIterator< const DataRef > |
Public Member Functions | |
| InputSpan ()=delete | |
| InputSpan (InputSpan const &)=delete | |
| InputSpan (InputSpan &&)=default | |
| InputSpan (std::function< size_t(size_t)> nofPartsGetter, std::function< int(size_t)> refCountGetter, std::function< DataRef(size_t, DataRefIndices)> indicesGetter, std::function< DataRefIndices(size_t, DataRefIndices)> nextIndicesGetter, size_t size) | |
| DataRef | get (size_t i, size_t partidx=0) const |
| i-th element of the InputSpan (O(partidx) sequential scan via indices protocol) | |
| DataRef | getAtIndices (size_t slotIdx, DataRefIndices indices) const |
| Return the DataRef for the part described by indices in slot slotIdx in O(1). | |
| DataRefIndices | nextIndices (size_t slotIdx, DataRefIndices current) const |
| Advance from current to the indices of the next part in slot slotIdx in O(1). | |
| DataRefIndices | initialIndices () const |
| DataRefIndices | endIndices () const |
| DataRef | getAtIndices (DataRefIndices indices) const |
| DataRefIndices | nextIndices (DataRefIndices current) const |
| size_t | getNofParts (size_t i) const |
| number of parts in the i-th element of the InputSpan | |
| int | getRefCount (size_t i) const |
| size_t | size () const |
| Number of elements in the InputSpan. | |
| const char * | header (size_t i) const |
| const char * | payload (size_t i) const |
| const_iterator | begin () const |
| const_iterator | end () const |
Mapping helper between the store of all inputs being processed and the actual inputs to be processed in a given go. In general this will use an helper which returns fair::mq::Message->GetData() from the Message cache, but in principle the mechanism should be flexible enough to allow all kind of input stores.
Definition at line 28 of file InputSpan.h.
| using o2::framework::InputSpan::const_iterator = InputSpanIterator<const DataRef> |
Definition at line 244 of file InputSpan.h.
Definition at line 243 of file InputSpan.h.
|
delete |
|
delete |
|
default |
| o2::framework::InputSpan::InputSpan | ( | std::function< size_t(size_t)> | nofPartsGetter, |
| std::function< int(size_t)> | refCountGetter, | ||
| std::function< DataRef(size_t, DataRefIndices)> | indicesGetter, | ||
| std::function< DataRefIndices(size_t, DataRefIndices)> | nextIndicesGetter, | ||
| size_t | size | ||
| ) |
Navigate the message store via the DataRefIndices protocol. get_next_pair (DataModelViews.h) provides O(1) sequential advancement for nextIndicesGetter.
Definition at line 19 of file InputSpan.cxx.
|
inline |
Definition at line 247 of file InputSpan.h.
|
inline |
Definition at line 252 of file InputSpan.h.
|
inline |
Definition at line 67 of file InputSpan.h.
|
inline |
i-th element of the InputSpan (O(partidx) sequential scan via indices protocol)
Definition at line 44 of file InputSpan.h.
|
inline |
Definition at line 68 of file InputSpan.h.
|
inline |
Return the DataRef for the part described by indices in slot slotIdx in O(1).
Definition at line 54 of file InputSpan.h.
|
inline |
number of parts in the i-th element of the InputSpan
Definition at line 72 of file InputSpan.h.
|
inline |
Definition at line 81 of file InputSpan.h.
|
inline |
Definition at line 98 of file InputSpan.h.
|
inline |
Definition at line 66 of file InputSpan.h.
|
inline |
Definition at line 69 of file InputSpan.h.
|
inline |
Advance from current to the indices of the next part in slot slotIdx in O(1).
Definition at line 60 of file InputSpan.h.
|
inline |
Definition at line 103 of file InputSpan.h.
|
inline |
Number of elements in the InputSpan.
Definition at line 93 of file InputSpan.h.