Sane C++ Libraries
C++ Platform Abstraction Libraries
Loading...
Searching...
No Matches
SC::AsyncResultOf< T, C > Struct Template Reference

Helper holding CompletionData for a specific AsyncRequest-derived class. More...

#include <Async.h>

Inheritance diagram for SC::AsyncResultOf< T, C >:
SC::AsyncResult

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::ResultisValid () const
 Check if the returnCode of this result is valid.
 

Public Attributes

completionData
 
int32_t eventIndex = 0
 
- Public Attributes inherited from SC::AsyncResult
AsyncEventLoopeventLoop
 
AsyncRequestasync
 

Additional Inherited Members

- Protected Attributes inherited from SC::AsyncResult
bool shouldCallCallback = true
 
bool * hasBeenReactivated = nullptr
 
SC::ResultreturnCode
 

Detailed Description

template<typename T, typename C>
struct SC::AsyncResultOf< T, C >

Helper holding CompletionData for a specific AsyncRequest-derived class.

Template Parameters
TType of the request class associated to this result
CType of the CompletionData derived class associated to this result

Member Function Documentation

◆ AsyncResult()

template<typename T , typename C >
SC::AsyncResult::AsyncResult ( AsyncEventLoop & eventLoop,
AsyncRequest & request,
SC::Result & res,
bool * hasBeenReactivated = nullptr )
inline

Constructs an async result from a request and a result.


The documentation for this struct was generated from the following file: