Support Class Library
A set of tools providing classes and utility
Public Types | Static Public Member Functions | List of all members
scl::async::details::channel_transport_traits< Chan > Struct Template Reference

Traits for the implementation of the transport of information in a scl::async::Channel. More...

#include "Channel.h"

Public Types

using channel_type = Chan
 The type of the channel. More...
 
using sender_type = typename channel_type::sender_type
 sender_type The type of the sender More...
 
using receiver_type = typename channel_type::receiver_type
 The type of the receiver. More...
 
using type = std::tuple< sender_type &, receiver_type & >
 The type of transport payload. More...
 

Static Public Member Functions

static type factory (sender_type &sender, receiver_type &receiver)
 Create a transport payload from a sender and a receiver. More...
 

Detailed Description

template<class Chan>
struct scl::async::details::channel_transport_traits< Chan >

Traits for the implementation of the transport of information in a scl::async::Channel.

Template Parameters
Chanbeing the channel type

Definition at line 32 of file Channel.h.

Member Typedef Documentation

◆ channel_type

The type of the channel.

Definition at line 37 of file Channel.h.

◆ receiver_type

The type of the receiver.

Definition at line 49 of file Channel.h.

◆ sender_type

template<class Chan >
using scl::async::details::channel_transport_traits< Chan >::sender_type = typename channel_type::sender_type

sender_type The type of the sender

Definition at line 43 of file Channel.h.

◆ type

template<class Chan >
scl::async::details::channel_transport_traits< Chan >::type

The type of transport payload.

Definition at line 55 of file Channel.h.

Member Function Documentation

◆ factory()

template<class Chan >
static type scl::async::details::channel_transport_traits< Chan >::factory ( sender_type sender,
receiver_type receiver 
)
inlinestatic

Create a transport payload from a sender and a receiver.

Parameters
senderbeing a sender for the channel
receiverbeing a receiver for the channel
Returns
the corresponding transport payload

Definition at line 63 of file Channel.h.


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