open62541pp 0.16.0
C++ wrapper of open62541
Loading...
Searching...
No Matches
opcua::services::detail::HookToken< HookFunction, CompletionToken > Struct Template Reference

#include <async_hook.hpp>

Detailed Description

template<typename HookFunction, typename CompletionToken>
struct opcua::services::detail::HookToken< HookFunction, CompletionToken >

Special token to execute a hook function with the const result within the completion handler.

The HookToken wraps a hook function (object) and the original completion token.

Definition at line 16 of file async_hook.hpp.

Public Member Functions

 HookToken (HookFunction &&hookFunction, CompletionToken &&completionToken)
 

Public Attributes

std::decay_t< HookFunction > hook
 
std::decay_t< CompletionToken > token
 

Constructor & Destructor Documentation

◆ HookToken()

template<typename HookFunction , typename CompletionToken >
opcua::services::detail::HookToken< HookFunction, CompletionToken >::HookToken ( HookFunction && hookFunction,
CompletionToken && completionToken )
inline

Definition at line 17 of file async_hook.hpp.

Member Data Documentation

◆ hook

template<typename HookFunction , typename CompletionToken >
std::decay_t<HookFunction> opcua::services::detail::HookToken< HookFunction, CompletionToken >::hook

Definition at line 21 of file async_hook.hpp.

◆ token

template<typename HookFunction , typename CompletionToken >
std::decay_t<CompletionToken> opcua::services::detail::HookToken< HookFunction, CompletionToken >::token

Definition at line 22 of file async_hook.hpp.