Twitch SDK (Internal)
Classes | Public Types | Public Member Functions | Private Attributes | List of all members
ttv::CallbackQueue< FunctionType > Class Template Reference

#include <coreutilities.h>

Classes

struct  LookupEntry
 

Public Types

using LookupId = uint64_t
 

Public Member Functions

template<typename FunctionRef >
void Push (FunctionRef &&callback)
 
template<typename FunctionRef >
void Push (FunctionRef &&callback, LookupId lookupId)
 
template<typename... Args>
void Flush (Args &&... args)
 
FunctionType Erase (LookupId token)
 
bool Empty () const
 

Private Attributes

std::vector< LookupEntrymLookups
 

Class Documentation

◆ ttv::CallbackQueue::LookupEntry

struct ttv::CallbackQueue::LookupEntry

template<typename FunctionType>
struct ttv::CallbackQueue< FunctionType >::LookupEntry

Class Members
FunctionType callback
LookupId lookupId

Member Typedef Documentation

◆ LookupId

template<typename FunctionType>
using ttv::CallbackQueue< FunctionType >::LookupId = uint64_t

Member Function Documentation

◆ Empty()

template<typename FunctionType>
bool ttv::CallbackQueue< FunctionType >::Empty ( ) const
inline

◆ Erase()

template<typename FunctionType>
FunctionType ttv::CallbackQueue< FunctionType >::Erase ( LookupId  token)
inline

◆ Flush()

template<typename FunctionType>
template<typename... Args>
void ttv::CallbackQueue< FunctionType >::Flush ( Args &&...  args)
inline

◆ Push() [1/2]

template<typename FunctionType>
template<typename FunctionRef >
void ttv::CallbackQueue< FunctionType >::Push ( FunctionRef &&  callback)
inline

◆ Push() [2/2]

template<typename FunctionType>
template<typename FunctionRef >
void ttv::CallbackQueue< FunctionType >::Push ( FunctionRef &&  callback,
LookupId  lookupId 
)
inline

Member Data Documentation

◆ mLookups

template<typename FunctionType>
std::vector<LookupEntry> ttv::CallbackQueue< FunctionType >::mLookups
private

The documentation for this class was generated from the following file: