Vanetza
 
Loading...
Searching...
No Matches
vanetza::HookRegistry< Args > Class Template Reference

#include <hook.hpp>

Inheritance diagram for vanetza::HookRegistry< Args >:

Public Types

using hook_type = Hook< Args... >
 
using callback_type = typename hook_type::callback_type
 

Public Member Functions

 HookRegistry (hook_type &hook)
 
void operator= (callback_type &&cb)
 
void operator= (const callback_type &cb)
 
void reset ()
 

Private Attributes

hook_typem_hook
 

Detailed Description

template<typename... Args>
class vanetza::HookRegistry< Args >

Hook registry (non-callable view of a hook)

Callbacks can be assigned to a hook via the corresponding registry, but the callback cannot be invoked through the registry.

Definition at line 70 of file hook.hpp.

Member Typedef Documentation

◆ callback_type

template<typename... Args>
using vanetza::HookRegistry< Args >::callback_type = typename hook_type::callback_type

Definition at line 74 of file hook.hpp.

◆ hook_type

template<typename... Args>
using vanetza::HookRegistry< Args >::hook_type = Hook<Args...>

Definition at line 73 of file hook.hpp.

Constructor & Destructor Documentation

◆ HookRegistry()

template<typename... Args>
vanetza::HookRegistry< Args >::HookRegistry ( hook_type hook)
inline

Definition at line 76 of file hook.hpp.

Member Function Documentation

◆ operator=() [1/2]

template<typename... Args>
void vanetza::HookRegistry< Args >::operator= ( callback_type &&  cb)
inline

Definition at line 78 of file hook.hpp.

◆ operator=() [2/2]

template<typename... Args>
void vanetza::HookRegistry< Args >::operator= ( const callback_type &  cb)
inline

Definition at line 83 of file hook.hpp.

◆ reset()

template<typename... Args>
void vanetza::HookRegistry< Args >::reset ( )
inline

Definition at line 88 of file hook.hpp.

Member Data Documentation

◆ m_hook

template<typename... Args>
hook_type& vanetza::HookRegistry< Args >::m_hook
private

Definition at line 94 of file hook.hpp.


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