|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <DataMoveCallbackRegistry.hpp>
Public Member Functions | |
| DataMoveCallbackRegistry (const DataMoveCallbackRegistry &)=delete | |
| DataMoveCallbackRegistry is not copy-constructible. | |
| DataMoveCallbackRegistry & | operator= (const DataMoveCallbackRegistry &)=delete |
| DataMoveCallbackRegistry is not copy-assignable. | |
| DataMoveCallbackRegistry (DataMoveCallbackRegistry &&)=delete | |
| DataMoveCallbackRegistry is not move-constructible. | |
| DataMoveCallbackRegistry & | operator= (DataMoveCallbackRegistry &&)=delete |
| DataMoveCallbackRegistry is not move-assignable. | |
| template<typename DataType> | |
| void | register_callback (const appmodel::DataMoveCallbackConf *conf, std::function< void(DataType &&)> callback) |
| Registers a callback function with a configuration object. | |
| template<typename DataType> | |
| std::shared_ptr< std::function< void(DataType &&)> > | get_callback (const appmodel::DataMoveCallbackConf *conf) |
| Gets the callback function registered with the given configuration. | |
Static Public Member Functions | |
| static std::shared_ptr< DataMoveCallbackRegistry > | get () |
Private Member Functions | |
| DataMoveCallbackRegistry () | |
Private Attributes | |
| std::mutex | m_mutex |
| std::map< std::string, std::shared_ptr< CallbackConcept > > | m_callback_map |
Static Private Attributes | |
| static std::shared_ptr< DataMoveCallbackRegistry > | s_instance = nullptr |
Definition at line 47 of file DataMoveCallbackRegistry.hpp.
|
delete |
DataMoveCallbackRegistry is not copy-constructible.
|
delete |
DataMoveCallbackRegistry is not move-constructible.
|
inlineprivate |
Definition at line 87 of file DataMoveCallbackRegistry.hpp.
|
inlinestatic |
Definition at line 50 of file DataMoveCallbackRegistry.hpp.
|
inline |
Gets the callback function registered with the given configuration.
| DataType | The expected parameter type of the callback function |
| conf | The configuration object containing the unique identifier for the callback |
| GenericConfigurationError | if the registered callback function's parameter type does not match DataType |
Definition at line 25 of file DataMoveCallbackRegistry.hxx.
|
delete |
DataMoveCallbackRegistry is not copy-assignable.
|
delete |
DataMoveCallbackRegistry is not move-assignable.
|
inline |
Registers a callback function with a configuration object.
| DataType | The parameter type of the callback function |
| conf | The configuration object containing the unique identifier for the callback |
| callback | The callback function to register |
Definition at line 11 of file DataMoveCallbackRegistry.hxx.
|
private |
Definition at line 89 of file DataMoveCallbackRegistry.hpp.
|
private |
Definition at line 88 of file DataMoveCallbackRegistry.hpp.
|
staticprivate |
Definition at line 90 of file DataMoveCallbackRegistry.hpp.