ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::ChannelFamily Concept Reference

the families of channels among \( p \) workers: tryPush( from , to , m ) pushes a span of messages and returns how many, drain( me , f ) calls \( f \) on the messages of the inbox of me and returns how many, size() is \( p \) More...

#include <ADS/parallel/Channels.h>

Concept definition

template< class C >
concept ChannelFamily = requires( C & c , const C & k , std::size_t i ,
std::span< const typename C::Message > m ,
void ( &f )( typename C::Message && ) )
{
{ k.size() } -> std::convertible_to< std::size_t >;
{ c.tryPush( i , i , m ) } -> std::convertible_to< std::size_t >;
{ c.drain( i , f ) } -> std::convertible_to< std::size_t >;
}
the families of channels among workers: tryPush( from , to ,m ) pushes a span of messages and return...
Definition Channels.h:99

Detailed description

the families of channels among \( p \) workers: tryPush( from , to , m ) pushes a span of messages and returns how many, drain( me , f ) calls \( f \) on the messages of the inbox of me and returns how many, size() is \( p \)