Support Class Library
A set of tools providing classes and utility
|
#include "Channel.h"
Public Types | |
using | channel_type = Chan |
The type of the channel. More... | |
using | receiver_traits = channel_actor_traits< ChannelReceiver > |
The type of the traits for this receiver. More... | |
using | lock_type = typename receiver_traits::lock_type |
The type of locks used by the traits. More... | |
template<class L > | |
using | guard_type = typename receiver_traits::template guard_type< L > |
using | queue_type = typename receiver_traits::queue_type |
The type of queue used by the channel. More... | |
using | value_type = typename receiver_traits::value_type |
The type of values used by the channel. More... | |
using | optional_type = scl::utils::Optional< value_type > |
The alternative type when there might not be a value. More... | |
Public Member Functions | |
ChannelReceiver (const ChannelReceiver &)=delete | |
ChannelReceiver & | operator= (const ChannelReceiver &)=delete |
ChannelReceiver (ChannelReceiver &&)=delete | |
ChannelReceiver & | operator= (ChannelReceiver &&)=delete |
value_type | pop () |
Get a value from the channel. More... | |
template<class Rep , class Period > | |
optional_type | tryPop (const std::chrono::duration< Rep, Period > &duration) |
Wait for a given duration before popping. More... | |
value_type | dequeue () |
Alias for ChannelReceiver::receive. More... | |
value_type | receive () |
Alias for ChannelReceiver::receive. More... | |
template<class Rep , class Period > | |
optional_type | tryDeque (const std::chrono::duration< Rep, Period > &duration) |
Alias for ChannelReceiver::tryPop. More... | |
template<class Rep , class Period > | |
optional_type | tryReceive (const std::chrono::duration< Rep, Period > &duration) |
Alias for ChannelReceiver::tryPop. More... | |
template<class U = value_type> | |
ChannelReceiver & | operator>> (U &value) |
Alias for ChannelReceiver::receive. More... | |
Public Attributes | |
friend | receiver_traits |
friend | channel_type |
Protected Member Functions | |
ChannelReceiver (channel_type &chan) | |
Construct a receiver from its channel. More... | |
Protected Attributes | |
channel_type * | channel |
A (safe) pointer to the channel. More... | |
receiver_traits | traits |
The traits for this receiver. More... | |
scl::async::details::ChannelReceiver< Chan >::channel_type |
scl::async::details::ChannelReceiver< Chan >::lock_type |
scl::async::details::ChannelReceiver< Chan >::optional_type |
scl::async::details::ChannelReceiver< Chan >::queue_type |
scl::async::details::ChannelReceiver< Chan >::receiver_traits |
scl::async::details::ChannelReceiver< Chan >::value_type |
|
inlineexplicitprotected |
|
delete |
|
delete |
|
inline |
Alias for ChannelReceiver::receive.
|
delete |
|
delete |
|
inline |
Alias for ChannelReceiver::receive.
U | being the type to store the data in (defaults to ChannelReceiver::value_type) |
|
inline |
|
inline |
Alias for ChannelReceiver::receive.
|
inline |
Alias for ChannelReceiver::tryPop.
|
inline |
|
inline |
Alias for ChannelReceiver::tryPop.
|
protected |
friend scl::async::details::ChannelReceiver< Chan >::channel_type |
friend scl::async::details::ChannelReceiver< Chan >::receiver_traits |
|
protected |