LeechCraft 0.6.70-19214-g121e5318a7
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
LC::Util::Channel< T > Class Template Reference

#include "channel.h"

Public Types

using ItemType_t = T

Public Member Functions

 Channel ()=default
 Channel (const Channel &)=delete
 Channel (Channel &&)=delete
Channel & operator= (const Channel &)=delete
Channel & operator= (Channel &&)=delete
void Close ()
template<typename U = T>
void Send (U &&value)
bool IsEmpty () const
ReceiveAwaiter Receive ()
auto operator co_await ()

Detailed Description

template<typename T>
class LC::Util::Channel< T >

Definition at line 22 of file channel.h.

Member Typedef Documentation

◆ ItemType_t

template<typename T>
using LC::Util::Channel< T >::ItemType_t = T

Definition at line 95 of file channel.h.

Constructor & Destructor Documentation

◆ Channel() [1/3]

template<typename T>
LC::Util::Channel< T >::Channel ( )
default

Referenced by Channel(), Channel(), operator=(), and operator=().

Here is the caller graph for this function:

◆ Channel() [2/3]

template<typename T>
LC::Util::Channel< T >::Channel ( const Channel< T > & )
delete

References Channel().

Here is the call graph for this function:

◆ Channel() [3/3]

template<typename T>
LC::Util::Channel< T >::Channel ( Channel< T > && )
delete

References Channel().

Here is the call graph for this function:

Member Function Documentation

◆ Close()

template<typename T>
void LC::Util::Channel< T >::Close ( )
inline

Definition at line 104 of file channel.h.

◆ IsEmpty()

template<typename T>
bool LC::Util::Channel< T >::IsEmpty ( ) const
inline

Definition at line 122 of file channel.h.

◆ operator co_await()

template<typename T>
auto LC::Util::Channel< T >::operator co_await ( )
inline

Definition at line 133 of file channel.h.

References Receive().

Here is the call graph for this function:

◆ operator=() [1/2]

template<typename T>
Channel & LC::Util::Channel< T >::operator= ( Channel< T > && )
delete

References Channel().

Here is the call graph for this function:

◆ operator=() [2/2]

template<typename T>
Channel & LC::Util::Channel< T >::operator= ( const Channel< T > & )
delete

References Channel().

Here is the call graph for this function:

◆ Receive()

template<typename T>
ReceiveAwaiter LC::Util::Channel< T >::Receive ( )
inline

Definition at line 128 of file channel.h.

Referenced by operator co_await().

Here is the caller graph for this function:

◆ Send()

template<typename T>
template<typename U = T>
void LC::Util::Channel< T >::Send ( U && value)
inline

Definition at line 117 of file channel.h.


The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.19214.g121e5318a7-build/leechcraft-0.6.70-19214-g121e5318a7/src/util/threads/coro/channel.h