|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <Callback.h>
Public Member Functions | |
| void | FreeResult () |
| ParamType1 | GetFirstParam () |
| Skyfire::Future< Result > | GetFutureResult () |
| void | GetResult (Result &res) |
| ParamType2 | GetSecondParam () |
| uint8 | GetStage () |
| Returns the callback stage (or CALLBACK_STAGE_INVALID if invalid). | |
| int | IsReady () |
| void | NextStage () |
| Advances the callback chain to the next stage, so upper level code can act on its results accordingly. | |
| QueryCallback_2 () | |
| void | Reset () |
| Resets all underlying variables (param, result and stage). | |
| void | ResetStage () |
| Resets the stage of the callback chain. | |
| void | SetFirstParam (ParamType1 value) |
| void | SetFutureResult (Skyfire::Future< Result > value) |
| The parameter of this function should be a resultset returned from either .AsyncQuery or .AsyncPQuery. | |
| void | SetSecondParam (ParamType2 value) |
Private Member Functions | |
| QueryCallback_2 & | operator= (QueryCallback_2 const &right)=delete |
| QueryCallback_2 (QueryCallback_2 const &right)=delete | |
Private Attributes | |
| ParamType1 | _param_1 |
| ParamType2 | _param_2 |
| Skyfire::Future< Result > | _result |
| uint8 | _stage |
Definition at line 104 of file Callback.h.
|
inline |
Definition at line 107 of file Callback.h.
References _stage, and CALLBACK_STAGE_INVALID.
Referenced by operator=(), and QueryCallback_2().
|
privatedelete |
References QueryCallback_2().
|
inline |
|
inline |
Definition at line 145 of file Callback.h.
References _param_1.
|
inline |
Definition at line 115 of file Callback.h.
References _result.
|
inline |
Definition at line 125 of file Callback.h.
References _result.
|
inline |
Definition at line 150 of file Callback.h.
References _param_2.
|
inline |
Returns the callback stage (or CALLBACK_STAGE_INVALID if invalid).
Definition at line 174 of file Callback.h.
References _stage.
|
inline |
Definition at line 120 of file Callback.h.
References _result.
|
inline |
Advances the callback chain to the next stage, so upper level code can act on its results accordingly.
Definition at line 165 of file Callback.h.
References _stage.
|
privatedelete |
References QueryCallback_2().
|
inline |
Resets all underlying variables (param, result and stage).
Definition at line 180 of file Callback.h.
References FreeResult(), ResetStage(), SetFirstParam(), and SetSecondParam().
|
inline |
Resets the stage of the callback chain.
Definition at line 156 of file Callback.h.
References _stage.
Referenced by Reset().
|
inline |
|
inline |
The parameter of this function should be a resultset returned from either .AsyncQuery or .AsyncPQuery.
Definition at line 110 of file Callback.h.
References _result.
|
inline |
|
private |
Definition at line 190 of file Callback.h.
Referenced by GetFirstParam(), and SetFirstParam().
|
private |
Definition at line 191 of file Callback.h.
Referenced by GetSecondParam(), and SetSecondParam().
|
private |
Definition at line 189 of file Callback.h.
Referenced by FreeResult(), GetFutureResult(), GetResult(), IsReady(), and SetFutureResult().
|
private |
Definition at line 192 of file Callback.h.
Referenced by GetStage(), NextStage(), QueryCallback_2(), and ResetStage().