Pigweed
 
Loading...
Searching...
No Matches
pw::channel::ForwardingChannelPair< kType > Class Template Reference

#include <forwarding_channel.h>

Public Member Functions

constexpr ForwardingChannelPair (multibuf::MultiBufAllocator &first_write_alloc, multibuf::MultiBufAllocator &second_write_alloc)
 
 ForwardingChannelPair (const ForwardingChannelPair &)=delete
 
ForwardingChannelPairoperator= (const ForwardingChannelPair &)=delete
 
 ForwardingChannelPair (ForwardingChannelPair &&)=delete
 
ForwardingChannelPairoperator= (ForwardingChannelPair &&)=delete
 
Channel< kType, kReliable, kReadable, kWritable > & first ()
 Returns the first channel in the pair.
 
const Channel< kType, kReliable, kReadable, kWritable > & first () const
 Returns a const reference to the first channel in the pair.
 
Channel< kType, kReliable, kReadable, kWritable > & second ()
 Returns the second channel in the pair.
 
const Channel< kType, kReliable, kReadable, kWritable > & second () const
 Returns a const reference to the second channel in the pair.
 

Friends

template<DataType >
class internal::ForwardingChannel
 

Detailed Description

template<DataType kType>
class pw::channel::ForwardingChannelPair< kType >

Forwards either datagrams or bytes between two channels. Writes to the first channel appear as reads on the second, and vice versa.

ForwardingChannelPair enables connecting two subsystems that communicate with channels without implementing a custom channel.


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