Helper holding CompletionData for a specific AsyncRequest-derived class. More...
#include <Async.h>
Public Member Functions | |
| T & | getAsync () |
| const T & | getAsync () const |
| AsyncResult (AsyncEventLoop &eventLoop, AsyncRequest &request, SC::Result &res, bool *hasBeenReactivated=nullptr) | |
| Constructs an async result from a request and a result. | |
Public Member Functions inherited from SC::AsyncResult | |
| AsyncResult (AsyncEventLoop &eventLoop, AsyncRequest &request, SC::Result &res, bool *hasBeenReactivated=nullptr) | |
| Constructs an async result from a request and a result. | |
| void | reactivateRequest (bool shouldBeReactivated) |
| Ask the event loop to re-activate this request after it was already completed. | |
| const SC::Result & | isValid () const |
| Check if the returnCode of this result is valid. | |
Public Attributes | |
| C | completionData |
| int32_t | eventIndex = 0 |
Public Attributes inherited from SC::AsyncResult | |
| AsyncEventLoop & | eventLoop |
| AsyncRequest & | async |
Additional Inherited Members | |
Protected Attributes inherited from SC::AsyncResult | |
| bool | shouldCallCallback = true |
| bool * | hasBeenReactivated = nullptr |
| SC::Result & | returnCode |
Helper holding CompletionData for a specific AsyncRequest-derived class.
| T | Type of the request class associated to this result |
| C | Type of the CompletionData derived class associated to this result |
|
inline |
Constructs an async result from a request and a result.