AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "QueryCallback.h"
Classes | |
struct | QueryCallbackData |
Public Member Functions | |
QueryCallback (QueryResultFuture &&result) | |
QueryCallback (PreparedQueryResultFuture &&result) | |
QueryCallback (QueryCallback &&right) noexcept | |
QueryCallback & | operator= (QueryCallback &&right) noexcept |
~QueryCallback () | |
QueryCallback && | WithCallback (std::function< void(QueryResult)> &&callback) |
QueryCallback && | WithPreparedCallback (std::function< void(PreparedQueryResult)> &&callback) |
QueryCallback && | WithChainingCallback (std::function< void(QueryCallback &, QueryResult)> &&callback) |
QueryCallback && | WithChainingPreparedCallback (std::function< void(QueryCallback &, PreparedQueryResult)> &&callback) |
void | SetNextQuery (QueryCallback &&next) |
bool | InvokeIfReady () |
Private Member Functions | |
QueryCallback (QueryCallback const &right)=delete | |
QueryCallback & | operator= (QueryCallback const &right)=delete |
Private Attributes | |
union { | |
QueryResultFuture _string | |
PreparedQueryResultFuture _prepared | |
}; | |
bool | _isPrepared |
std::queue< QueryCallbackData, std::list< QueryCallbackData > > | _callbacks |
Friends | |
template<typename T > | |
void | ConstructActiveMember (T *obj) |
template<typename T > | |
void | DestroyActiveMember (T *obj) |
template<typename T > | |
void | MoveFrom (T *to, T &&from) |
|
explicit |
References _isPrepared, _string, and Construct().
|
explicit |
References _isPrepared, _prepared, and Construct().
|
noexcept |
References _callbacks, _isPrepared, ConstructActiveMember(), and MoveFrom().
QueryCallback::~QueryCallback | ( | ) |
References DestroyActiveMember.
|
privatedelete |
bool QueryCallback::InvokeIfReady | ( | ) |
References _callbacks, _isPrepared, QueryCallback::QueryCallbackData::_prepared, _prepared, QueryCallback::QueryCallbackData::_string, _string, and ASSERT.
|
noexcept |
References _callbacks, _isPrepared, ConstructActiveMember(), DestroyActiveMember(), and MoveFrom().
|
privatedelete |
void QueryCallback::SetNextQuery | ( | QueryCallback && | next | ) |
References MoveFrom.
Referenced by WorldSession::HandleCharCreateOpcode().
QueryCallback && QueryCallback::WithCallback | ( | std::function< void(QueryResult)> && | callback | ) |
References WithChainingCallback().
QueryCallback && QueryCallback::WithChainingCallback | ( | std::function< void(QueryCallback &, QueryResult)> && | callback | ) |
References _callbacks, _isPrepared, and ASSERT.
Referenced by WithCallback().
QueryCallback && QueryCallback::WithChainingPreparedCallback | ( | std::function< void(QueryCallback &, PreparedQueryResult)> && | callback | ) |
References _callbacks, _isPrepared, and ASSERT.
Referenced by WithPreparedCallback().
QueryCallback && QueryCallback::WithPreparedCallback | ( | std::function< void(PreparedQueryResult)> && | callback | ) |
References WithChainingPreparedCallback().
|
friend |
|
friend |
Referenced by ~QueryCallback().
|
friend |
Referenced by SetNextQuery().
union { ... } QueryCallback::@5 |
|
private |
Referenced by InvokeIfReady(), operator=(), QueryCallback(), WithChainingCallback(), and WithChainingPreparedCallback().
|
private |
Referenced by InvokeIfReady(), operator=(), QueryCallback(), WithChainingCallback(), and WithChainingPreparedCallback().
PreparedQueryResultFuture QueryCallback::_prepared |
Referenced by InvokeIfReady(), and QueryCallback().
QueryResultFuture QueryCallback::_string |
Referenced by InvokeIfReady(), and QueryCallback().