AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "QueryHolder.h"
Public Member Functions | |
SQLQueryHolderCallback (std::shared_ptr< SQLQueryHolderBase > &&holder, QueryResultHolderFuture &&future) | |
SQLQueryHolderCallback (SQLQueryHolderCallback &&)=default | |
SQLQueryHolderCallback & | operator= (SQLQueryHolderCallback &&)=default |
void | AfterComplete (std::function< void(SQLQueryHolderBase const &)> callback) & |
bool | InvokeIfReady () |
Public Attributes | |
std::shared_ptr< SQLQueryHolderBase > | m_holder |
QueryResultHolderFuture | m_future |
std::function< void(SQLQueryHolderBase const &)> | m_callback |
|
inline |
|
default |
|
inline |
Referenced by WorldSession::HandlePlayerLoginOpcode(), WorldSession::InitializeSession(), and Pet::LoadPetFromDB().
bool SQLQueryHolderCallback::InvokeIfReady | ( | ) |
References m_callback, m_future, and m_holder.
|
default |
std::function<void(SQLQueryHolderBase const&)> SQLQueryHolderCallback::m_callback |
Referenced by InvokeIfReady().
QueryResultHolderFuture SQLQueryHolderCallback::m_future |
Referenced by InvokeIfReady().
std::shared_ptr<SQLQueryHolderBase> SQLQueryHolderCallback::m_holder |
Referenced by InvokeIfReady().