Project
Loading...
Searching...
No Matches
o2::framework::MessageContext::SpanObject< T > Class Template Reference

#include <MessageContext.h>

Inherits o2::framework::MessageContext::ContextObject.

Public Types

using value_type = gsl::span< T >
 

Public Member Functions

 SpanObject ()=delete
 default constructor forbidden, object alwasy has to control messages
 
template<typename ContextType >
 SpanObject (ContextType *context, fair::mq::MessagePtr &&headerMsg, RouteIndex routeIndex, int index, size_t nElements)
 constructor taking header message by move and creating the payload message for the span
 
 ~SpanObject () override=default
 
 operator value_type & ()
 
value_typeget ()
 
- Public Member Functions inherited from o2::framework::MessageContext::ContextObject
 ContextObject ()=delete
 
 ContextObject (fair::mq::MessagePtr &&headerMsg, fair::mq::MessagePtr &&payloadMsg, RouteIndex routeIndex)
 
 ContextObject (fair::mq::MessagePtr &&headerMsg, RouteIndex routeIndex)
 
virtual ~ContextObject ()=default
 
virtual fair::mq::Parts finalize ()
 Finalize the object and return the parts by move This is the default method and can be overloaded by other implmentations to carry out other tasks before returning the parts objects.
 
RouteIndex route () const
 return the channel name
 
bool empty () const
 
o2::header::DataHeader const * header ()
 
o2::framework::DataProcessingHeader const * dataProcessingHeader ()
 
o2::header::Stack const * headerStack ()
 

Additional Inherited Members

- Protected Attributes inherited from o2::framework::MessageContext::ContextObject
fair::mq::Parts mParts
 
RouteIndex mRouteIndex {-1}
 

Detailed Description

template<typename T>
class o2::framework::MessageContext::SpanObject< T >

Definition at line 330 of file MessageContext.h.

Member Typedef Documentation

◆ value_type

template<typename T >
using o2::framework::MessageContext::SpanObject< T >::value_type = gsl::span<T>

Definition at line 334 of file MessageContext.h.

Constructor & Destructor Documentation

◆ SpanObject() [1/2]

template<typename T >
o2::framework::MessageContext::SpanObject< T >::SpanObject ( )
delete

default constructor forbidden, object alwasy has to control messages

◆ SpanObject() [2/2]

template<typename T >
template<typename ContextType >
o2::framework::MessageContext::SpanObject< T >::SpanObject ( ContextType *  context,
fair::mq::MessagePtr &&  headerMsg,
RouteIndex  routeIndex,
int  index,
size_t  nElements 
)
inline

constructor taking header message by move and creating the payload message for the span

Definition at line 339 of file MessageContext.h.

◆ ~SpanObject()

template<typename T >
o2::framework::MessageContext::SpanObject< T >::~SpanObject ( )
overridedefault

Member Function Documentation

◆ get()

template<typename T >
value_type & o2::framework::MessageContext::SpanObject< T >::get ( )
inline

Definition at line 356 of file MessageContext.h.

◆ operator value_type &()

template<typename T >
o2::framework::MessageContext::SpanObject< T >::operator value_type & ( )
inline

Definition at line 351 of file MessageContext.h.


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