Project
Loading...
Searching...
No Matches
o2::framework::DataRefUtils Struct Reference

#include <DataRefUtils.h>

Static Public Member Functions

template<typename T >
static auto as (DataRef const &ref)
 
static voiddecodeCCDB (DataRef const &ref, std::type_info const &info)
 
static std::map< std::string, std::string > extractCCDBHeaders (DataRef const &ref)
 
static o2::header::DataHeader::PayloadSizeType getPayloadSize (const DataRef &ref)
 
template<typename T >
static auto getHeader (const DataRef &ref)
 
static bool isValid (DataRef const &ref)
 
static bool match (DataRef const &ref, const char *binding)
 
template<DataHeaderLike H>
static bool matchHeader (DataRef const &ref, InputSpec const &spec)
 
template<DataHeaderLike... H>
static bool match (DataRef const &ref, InputSpec const &spec)
 

Detailed Description

Definition at line 41 of file DataRefUtils.h.

Member Function Documentation

◆ as()

template<typename T >
static auto o2::framework::DataRefUtils::as ( DataRef const &  ref)
inlinestatic

Definition at line 44 of file DataRefUtils.h.

◆ decodeCCDB()

void * o2::framework::DataRefUtils::decodeCCDB ( DataRef const &  ref,
std::type_info const &  info 
)
static

Definition at line 78 of file DataRefUtils.cxx.

◆ extractCCDBHeaders()

std::map< std::string, std::string > o2::framework::DataRefUtils::extractCCDBHeaders ( DataRef const &  ref)
static

Definition at line 114 of file DataRefUtils.cxx.

◆ getHeader()

template<typename T >
static auto o2::framework::DataRefUtils::getHeader ( const DataRef ref)
inlinestatic

Definition at line 206 of file DataRefUtils.h.

◆ getPayloadSize()

static o2::header::DataHeader::PayloadSizeType o2::framework::DataRefUtils::getPayloadSize ( const DataRef ref)
inlinestatic

Definition at line 188 of file DataRefUtils.h.

◆ isValid()

static bool o2::framework::DataRefUtils::isValid ( DataRef const &  ref)
inlinestatic

Definition at line 214 of file DataRefUtils.h.

◆ match() [1/2]

static bool o2::framework::DataRefUtils::match ( DataRef const &  ref,
const char binding 
)
inlinestatic

check if the DataRef object matches a partcular binding Can be used to check if DataRef from the InputRecord iterator comes from a particular input.

Definition at line 222 of file DataRefUtils.h.

◆ match() [2/2]

template<DataHeaderLike... H>
static bool o2::framework::DataRefUtils::match ( DataRef const &  ref,
InputSpec const &  spec 
)
inlinestatic

check if the O2 message referred by DataRef matches a particular input spec. The DataHeader is retrieved from the header message and matched against spec parameter.

Definition at line 241 of file DataRefUtils.h.

◆ matchHeader()

template<DataHeaderLike H>
static bool o2::framework::DataRefUtils::matchHeader ( DataRef const &  ref,
InputSpec const &  spec 
)
inlinestatic

Definition at line 228 of file DataRefUtils.h.


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