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

#include <async_transform.hpp>

Detailed Description

template<typename TransformFunction, typename CompletionToken>
struct opcua::services::detail::TransformToken< TransformFunction, CompletionToken >

Special token to transform async results within the completion handler.

The TransformToken wraps a transform function (object) and the original completion token.

Definition at line 25 of file async_transform.hpp.

Public Member Functions

 TransformToken (TransformFunction &&transformFunction, CompletionToken &&completionToken)
 

Public Attributes

std::decay_t< TransformFunction > transform
 
std::decay_t< CompletionToken > token
 

Constructor & Destructor Documentation

◆ TransformToken()

template<typename TransformFunction , typename CompletionToken >
opcua::services::detail::TransformToken< TransformFunction, CompletionToken >::TransformToken ( TransformFunction && transformFunction,
CompletionToken && completionToken )
inline

Definition at line 26 of file async_transform.hpp.

Member Data Documentation

◆ transform

template<typename TransformFunction , typename CompletionToken >
std::decay_t<TransformFunction> opcua::services::detail::TransformToken< TransformFunction, CompletionToken >::transform

Definition at line 30 of file async_transform.hpp.

◆ token

template<typename TransformFunction , typename CompletionToken >
std::decay_t<CompletionToken> opcua::services::detail::TransformToken< TransformFunction, CompletionToken >::token

Definition at line 31 of file async_transform.hpp.