Sane C++ Libraries
C++ Platform Abstraction Libraries
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 (AsyncRequest &request, SC::Result &&res)
 Constructs an async result from a request and a result. More...
 
 AsyncResult (AsyncRequest &request)
 Constructs an async result from a request. More...
 
- Public Member Functions inherited from SC::AsyncResult
 AsyncResult (AsyncRequest &request, SC::Result &&res)
 Constructs an async result from a request and a result. More...
 
 AsyncResult (AsyncRequest &request)
 Constructs an async result from a request. More...
 
void reactivateRequest (bool value)
 Ask the event loop to re-activate this request after it was already completed. More...
 
const SC::ResultisValid () const
 Check if the returnCode of this result is valid. More...
 

Public Attributes

completionData
 
- Public Attributes inherited from SC::AsyncResult
AsyncRequestasync
 

Additional Inherited Members

- Protected Attributes inherited from SC::AsyncResult
bool shouldBeReactivated = false
 
bool shouldCallCallback = true
 
SC::Result returnCode = SC::Result(true)
 

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() [1/2]

template<typename T , typename C >
SC::AsyncResult::AsyncResult ( AsyncRequest request)
inline

Constructs an async result from a request.

◆ AsyncResult() [2/2]

template<typename T , typename C >
SC::AsyncResult::AsyncResult ( AsyncRequest request,
SC::Result &&  res 
)
inline

Constructs an async result from a request and a result.


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