LeechCraft 0.6.70-18450-gabe19ee3b0
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
Channeloperator= (const Channel &)=delete
Channeloperator= (Channel &&)=delete
 Channel (QObject *context)
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 23 of file channel.h.

Member Typedef Documentation

◆ ItemType_t

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

Definition at line 84 of file channel.h.

Constructor & Destructor Documentation

◆ Channel() [1/4]

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/4]

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

References Channel().

Here is the call graph for this function:

◆ Channel() [3/4]

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

References Channel().

Here is the call graph for this function:

◆ Channel() [4/4]

template<typename T>
LC::Util::Channel< T >::Channel ( QObject * context)
inlineexplicit

Definition at line 93 of file channel.h.

Member Function Documentation

◆ Close()

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

Definition at line 98 of file channel.h.

◆ IsEmpty()

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

Definition at line 143 of file channel.h.

◆ operator co_await()

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

Definition at line 154 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 149 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 118 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.18450.gabe19ee3b0-build/leechcraft-0.6.70-18450-gabe19ee3b0/src/util/threads/coro/channel.h