Project
Loading...
Searching...
No Matches
o2::framework::InputSpan Class Reference

#include <InputSpan.h>

Classes

class  InputSpanIterator
 
class  Iterator
 an iterator class working on position within the a parent class More...
 

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< DataRef(size_t)> getter, size_t size)
 
 InputSpan (std::function< DataRef(size_t, size_t)> getter, size_t size)
 
 InputSpan (std::function< DataRef(size_t, size_t)> getter, std::function< size_t(size_t)> nofPartsGetter, size_t size)
 
DataRef get (size_t i, size_t partidx=0) const
 i-th element of the InputSpan
 
size_t getNofParts (size_t i) const
 number of parts in the i-th element of the InputSpan
 
size_t size () const
 Number of elements in the InputSpan.
 
const charheader (size_t i) const
 
const charpayload (size_t i) const
 
const_iterator begin () const
 
const_iterator end () const
 

Detailed Description

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.

Member Typedef Documentation

◆ const_iterator

◆ iterator

Constructor & Destructor Documentation

◆ InputSpan() [1/6]

o2::framework::InputSpan::InputSpan ( )
delete

◆ InputSpan() [2/6]

o2::framework::InputSpan::InputSpan ( InputSpan const &  )
delete

◆ InputSpan() [3/6]

o2::framework::InputSpan::InputSpan ( InputSpan &&  )
default

◆ InputSpan() [4/6]

o2::framework::InputSpan::InputSpan ( std::function< DataRef(size_t)>  getter,
size_t  size 
)

getter is the mapping between an element of the span referred by index and the buffer associated. size is the number of elements in the span.

Definition at line 19 of file InputSpan.cxx.

◆ InputSpan() [5/6]

o2::framework::InputSpan::InputSpan ( std::function< DataRef(size_t, size_t)>  getter,
size_t  size 
)

getter is the mapping between an element of the span referred by index and the buffer associated. size is the number of elements in the span.

Definition at line 27 of file InputSpan.cxx.

◆ InputSpan() [6/6]

o2::framework::InputSpan::InputSpan ( std::function< DataRef(size_t, size_t)>  getter,
std::function< size_t(size_t)>  nofPartsGetter,
size_t  size 
)

getter is the mapping between an element of the span referred by index and the buffer associated. @nofPartsGetter is the getter for the number of parts associated with an index size is the number of elements in the span.

Definition at line 32 of file InputSpan.cxx.

Member Function Documentation

◆ begin()

const_iterator o2::framework::InputSpan::begin ( ) const
inline

Definition at line 225 of file InputSpan.h.

◆ end()

const_iterator o2::framework::InputSpan::end ( ) const
inline

Definition at line 231 of file InputSpan.h.

◆ get()

DataRef o2::framework::InputSpan::get ( size_t  i,
size_t  partidx = 0 
) const
inline

i-th element of the InputSpan

Definition at line 52 of file InputSpan.h.

◆ getNofParts()

size_t o2::framework::InputSpan::getNofParts ( size_t  i) const
inline

number of parts in the i-th element of the InputSpan

Definition at line 58 of file InputSpan.h.

◆ header()

const char * o2::framework::InputSpan::header ( size_t  i) const
inline

Definition at line 75 of file InputSpan.h.

◆ payload()

const char * o2::framework::InputSpan::payload ( size_t  i) const
inline

Definition at line 80 of file InputSpan.h.

◆ size()

size_t o2::framework::InputSpan::size ( ) const
inline

Number of elements in the InputSpan.

Definition at line 70 of file InputSpan.h.


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