ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Networking::Response< T > Struct Template Reference

Response<T> is a struct to be returned from Request to user's callbacks. More...

#include <request.h>

Collaboration diagram for Networking::Response< T >:

List of all members.

Public Member Functions

 Response (Request *rq, T v)

Public Attributes

Requestrequest
value

Detailed Description

template<typename T>
struct Networking::Response< T >

Response<T> is a struct to be returned from Request to user's callbacks.

It's a type safe way to indicate which "return value" Request has and user awaits.

It just keeps a Request pointer together with some T value (which might be a pointer, a reference or a plain type (copied by value)).

To make it more convenient, typedefs are used. For example, Response<void *> is called DataResponse and corresponding callback pointer is DataCallback.

Definition at line 48 of file request.h.


Constructor & Destructor Documentation

template<typename T >
Networking::Response< T >::Response ( Request rq,
v 
) [inline]

Definition at line 52 of file request.h.


Member Data Documentation

template<typename T >
Request* Networking::Response< T >::request

Definition at line 49 of file request.h.

template<typename T >
T Networking::Response< T >::value

Definition at line 50 of file request.h.


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


Generated on Sat Jan 12 2019 05:04:57 for ResidualVM by doxygen 1.7.1
curved edge   curved edge