Project
Loading...
Searching...
No Matches
o2::framework::CallbackRegistry< CallbackId, Args > Class Template Reference

#include <CallbackRegistry.h>

Public Types

using CallbackTypes = o2::framework::pack< typename Args::type... >
 
using CallbackStore = std::array< std::vector< void * >, size >
 

Public Member Functions

 CallbackRegistry ()=default
 
template<CallbackId ID, typename U >
void set (U &&cb)
 
template<CallbackId ID, typename... TArgs>
void call (TArgs &&... args)
 

Static Public Attributes

static constexpr std::size_t size = sizeof...(Args)
 

Detailed Description

template<typename CallbackId, typename... Args>
class o2::framework::CallbackRegistry< CallbackId, Args >

Definition at line 29 of file CallbackRegistry.h.

Member Typedef Documentation

◆ CallbackStore

template<typename CallbackId , typename... Args>
using o2::framework::CallbackRegistry< CallbackId, Args >::CallbackStore = std::array<std::vector<void*>, size>

Definition at line 34 of file CallbackRegistry.h.

◆ CallbackTypes

template<typename CallbackId , typename... Args>
using o2::framework::CallbackRegistry< CallbackId, Args >::CallbackTypes = o2::framework::pack<typename Args::type...>

Definition at line 33 of file CallbackRegistry.h.

Constructor & Destructor Documentation

◆ CallbackRegistry()

template<typename CallbackId , typename... Args>
o2::framework::CallbackRegistry< CallbackId, Args >::CallbackRegistry ( )
default

Member Function Documentation

◆ call()

template<typename CallbackId , typename... Args>
template<CallbackId ID, typename... TArgs>
void o2::framework::CallbackRegistry< CallbackId, Args >::call ( TArgs &&...  args)
inline

Definition at line 47 of file CallbackRegistry.h.

◆ set()

template<typename CallbackId , typename... Args>
template<CallbackId ID, typename U >
void o2::framework::CallbackRegistry< CallbackId, Args >::set ( U &&  cb)
inline

Definition at line 39 of file CallbackRegistry.h.

Member Data Documentation

◆ size

template<typename CallbackId , typename... Args>
constexpr std::size_t o2::framework::CallbackRegistry< CallbackId, Args >::size = sizeof...(Args)
staticconstexpr

Definition at line 32 of file CallbackRegistry.h.


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