#include <Callback.h>
template<typename Result , typename ParamType1 , typename ParamType2 , bool chain = false>
uint8 _stage
Definition: Callback.h:203
#define CALLBACK_STAGE_INVALID
Definition: Callback.h:29
template<typename Result , typename ParamType1 , typename ParamType2 , bool chain = false>
template<typename Result , typename ParamType1 , typename ParamType2 , bool chain = false>
void QueryCallback_2< Result, ParamType1, ParamType2, chain >::FreeResult |
( |
| ) |
|
|
inline |
template<typename Result , typename ParamType1 , typename ParamType2 , bool chain = false>
ParamType1 QueryCallback_2< Result, ParamType1, ParamType2, chain >::GetFirstParam |
( |
| ) |
|
|
inline |
ParamType1 _param_1
Definition: Callback.h:201
template<typename Result , typename ParamType1 , typename ParamType2 , bool chain = false>
std::future<Result>& QueryCallback_2< Result, ParamType1, ParamType2, chain >::GetFutureResult |
( |
| ) |
|
|
inline |
std::future< Result > _result
Definition: Callback.h:200
template<typename Result , typename ParamType1 , typename ParamType2 , bool chain = false>
void QueryCallback_2< Result, ParamType1, ParamType2, chain >::GetResult |
( |
Result & |
res | ) |
|
|
inline |
std::future< Result > _result
Definition: Callback.h:200
template<typename Result , typename ParamType1 , typename ParamType2 , bool chain = false>
ParamType2 QueryCallback_2< Result, ParamType1, ParamType2, chain >::GetSecondParam |
( |
| ) |
|
|
inline |
ParamType2 _param_2
Definition: Callback.h:202
template<typename Result , typename ParamType1 , typename ParamType2 , bool chain = false>
Returns the callback stage (or CALLBACK_STAGE_INVALID if invalid)
uint8 _stage
Definition: Callback.h:203
template<typename Result , typename ParamType1 , typename ParamType2 , bool chain = false>
std::future< Result > _result
Definition: Callback.h:200
float seconds()
Definition: units.h:97
template<typename Result , typename ParamType1 , typename ParamType2 , bool chain = false>
void QueryCallback_2< Result, ParamType1, ParamType2, chain >::NextStage |
( |
| ) |
|
|
inline |
Advances the callback chain to the next stage, so upper level code can act on its results accordingly.
uint8 _stage
Definition: Callback.h:203
template<typename Result , typename ParamType1 , typename ParamType2 , bool chain = false>
template<typename Result , typename ParamType1 , typename ParamType2 , bool chain = false>
Resets all underlying variables (param, result and stage)
void SetFirstParam(ParamType1 value)
Definition: Callback.h:146
void FreeResult()
Definition: Callback.h:141
arena_t NULL
Definition: jemalloc_internal.h:624
void ResetStage()
Resets the stage of the callback chain.
Definition: Callback.h:167
void SetSecondParam(ParamType2 value)
Definition: Callback.h:151
template<typename Result , typename ParamType1 , typename ParamType2 , bool chain = false>
void QueryCallback_2< Result, ParamType1, ParamType2, chain >::ResetStage |
( |
| ) |
|
|
inline |
Resets the stage of the callback chain.
uint8 _stage
Definition: Callback.h:203
template<typename Result , typename ParamType1 , typename ParamType2 , bool chain = false>
void QueryCallback_2< Result, ParamType1, ParamType2, chain >::SetFirstParam |
( |
ParamType1 |
value | ) |
|
|
inline |
ParamType1 _param_1
Definition: Callback.h:201
const FieldDescriptor value
Definition: descriptor.h:1522
template<typename Result , typename ParamType1 , typename ParamType2 , bool chain = false>
void QueryCallback_2< Result, ParamType1, ParamType2, chain >::SetFutureResult |
( |
std::future< Result > |
value | ) |
|
|
inline |
The parameter of this function should be a resultset returned from either .AsyncQuery or .AsyncPQuery.
std::future< Result > _result
Definition: Callback.h:200
const FieldDescriptor value
Definition: descriptor.h:1522
template<typename Result , typename ParamType1 , typename ParamType2 , bool chain = false>
void QueryCallback_2< Result, ParamType1, ParamType2, chain >::SetSecondParam |
( |
ParamType2 |
value | ) |
|
|
inline |
ParamType2 _param_2
Definition: Callback.h:202
const FieldDescriptor value
Definition: descriptor.h:1522
template<typename Result , typename ParamType1 , typename ParamType2 , bool chain = false>
ParamType1 QueryCallback_2< Result, ParamType1, ParamType2, chain >::_param_1 |
|
private |
template<typename Result , typename ParamType1 , typename ParamType2 , bool chain = false>
ParamType2 QueryCallback_2< Result, ParamType1, ParamType2, chain >::_param_2 |
|
private |
template<typename Result , typename ParamType1 , typename ParamType2 , bool chain = false>
std::future<Result> QueryCallback_2< Result, ParamType1, ParamType2, chain >::_result |
|
private |
template<typename Result , typename ParamType1 , typename ParamType2 , bool chain = false>
The documentation for this class was generated from the following file: