TrinityCore
Loading...
Searching...
No Matches
AsyncCallbackProcessor< T > Class Template Reference

#include <AsyncCallbackProcessor.h>

Public Member Functions

 AsyncCallbackProcessor ()=default
 
 ~AsyncCallbackProcessor ()=default
 
T & AddCallback (T &&query)
 
void ProcessReadyCallbacks ()
 
bool Empty () const
 
void CancelAll ()
 

Private Member Functions

 AsyncCallbackProcessor (AsyncCallbackProcessor const &)=delete
 
AsyncCallbackProcessoroperator= (AsyncCallbackProcessor const &)=delete
 

Private Attributes

std::vector< T > _callbacks
 

Detailed Description

template<AsyncCallback T>
class AsyncCallbackProcessor< T >

Definition at line 25 of file AsyncCallbackProcessor.h.

Constructor & Destructor Documentation

◆ AsyncCallbackProcessor() [1/2]

◆ ~AsyncCallbackProcessor()

◆ AsyncCallbackProcessor() [2/2]

template<AsyncCallback T>
AsyncCallbackProcessor< T >::AsyncCallbackProcessor ( AsyncCallbackProcessor< T > const &  )
privatedelete

Member Function Documentation

◆ AddCallback()

template<AsyncCallback T>
T & AsyncCallbackProcessor< T >::AddCallback ( T &&  query)
inline

Definition at line 31 of file AsyncCallbackProcessor.h.

+ Here is the caller graph for this function:

◆ CancelAll()

template<AsyncCallback T>
void AsyncCallbackProcessor< T >::CancelAll ( )
inline

Definition at line 56 of file AsyncCallbackProcessor.h.

◆ Empty()

template<AsyncCallback T>
bool AsyncCallbackProcessor< T >::Empty ( ) const
inline

Definition at line 51 of file AsyncCallbackProcessor.h.

◆ operator=()

template<AsyncCallback T>
AsyncCallbackProcessor & AsyncCallbackProcessor< T >::operator= ( AsyncCallbackProcessor< T > const &  )
privatedelete

◆ ProcessReadyCallbacks()

template<AsyncCallback T>
void AsyncCallbackProcessor< T >::ProcessReadyCallbacks ( )
inline

Definition at line 36 of file AsyncCallbackProcessor.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ _callbacks

template<AsyncCallback T>
std::vector<T> AsyncCallbackProcessor< T >::_callbacks
private

Definition at line 65 of file AsyncCallbackProcessor.h.


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