LeechCraft  0.6.70-18450-gabe19ee3b0
Modular cross-platform feature rich live environment.
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

◆ Channel() [2/4]

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

◆ Channel() [3/4]

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

◆ 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 LC::Util::Channel< T >::Receive().

+ Here is the call graph for this function:

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ Receive()

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

Definition at line 149 of file channel.h.

Referenced by LC::Util::Channel< T >::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: