TrinityCore
Loading...
Searching...
No Matches
TransactionCallback Class Reference

#include <Transaction.h>

Public Member Functions

 TransactionCallback (std::future< bool > &&future)
 
 TransactionCallback (TransactionCallback &&)=default
 
TransactionCallbackoperator= (TransactionCallback &&)=default
 
void AfterComplete (std::function< void(bool)> callback) &
 
bool InvokeIfReady ()
 

Public Attributes

std::future< bool > m_future
 
std::function< void(bool)> m_callback
 

Detailed Description

Definition at line 106 of file Transaction.h.

Constructor & Destructor Documentation

◆ TransactionCallback() [1/2]

TransactionCallback::TransactionCallback ( std::future< bool > &&  future)
inline

Definition at line 109 of file Transaction.h.

◆ TransactionCallback() [2/2]

TransactionCallback::TransactionCallback ( TransactionCallback &&  )
default

Member Function Documentation

◆ AfterComplete()

void TransactionCallback::AfterComplete ( std::function< void(bool)>  callback) &
inline

Definition at line 114 of file Transaction.h.

+ Here is the caller graph for this function:

◆ InvokeIfReady()

bool TransactionCallback::InvokeIfReady ( )

Definition at line 100 of file Transaction.cpp.

+ Here is the caller graph for this function:

◆ operator=()

TransactionCallback & TransactionCallback::operator= ( TransactionCallback &&  )
default

Member Data Documentation

◆ m_callback

std::function<void(bool)> TransactionCallback::m_callback

Definition at line 122 of file Transaction.h.

◆ m_future

std::future<bool> TransactionCallback::m_future

Definition at line 121 of file Transaction.h.


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