WPILibC++  2019.3.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
wpi::uv::RequestImpl< T, U > Class Template Reference

Request. More...

#include <Request.h>

Inheritance diagram for wpi::uv::RequestImpl< T, U >:
wpi::uv::Request

Public Member Functions

std::shared_ptr< T > shared_from_this ()
 
std::shared_ptr< const T > shared_from_this () const
 
U * GetRaw () noexcept
 Get the underlying request data structure. More...
 
const U * GetRaw () const noexcept
 Get the underlying request data structure. More...
 
- Public Member Functions inherited from wpi::uv::Request
 Request (const Request &)=delete
 
 Request (Request &&)=delete
 
Requestoperator= (const Request &)=delete
 
Requestoperator= (Request &&)=delete
 
Type GetType () const noexcept
 Get the type of the request. More...
 
const char * GetTypeName () const noexcept
 Get the name of the type of the request. More...
 
bool Cancel ()
 Cancel a pending request. More...
 
size_t RawSize () const noexcept
 Return the size of the underlying request type. More...
 
uv_req_tGetRawReq () noexcept
 Get the underlying request data structure. More...
 
const uv_req_tGetRawReq () const noexcept
 Get the underlying request data structure. More...
 
virtual void Keep () noexcept
 Keep this request in memory even if no outside shared_ptr references remain. More...
 
virtual void Release () noexcept
 No longer force holding this request in memory. More...
 
void ReportError (int err)
 Report an error. More...
 

Protected Member Functions

 RequestImpl ()
 Constructor.
 
- Protected Member Functions inherited from wpi::uv::Request
 Request (uv_req_t *uv_req)
 Constructor.
 

Additional Inherited Members

- Public Types inherited from wpi::uv::Request
using Type = uv_req_type
 
- Public Attributes inherited from wpi::uv::Request
std::function< void(Error)> error
 Error callback. More...
 

Detailed Description

template<typename T, typename U>
class wpi::uv::RequestImpl< T, U >

Request.

Requests are not moveable or copyable.

Template Parameters
TCRTP derived class
Uunderlying libuv request type

Member Function Documentation

template<typename T, typename U>
U* wpi::uv::RequestImpl< T, U >::GetRaw ( )
inlinenoexcept

Get the underlying request data structure.

Returns
The underlying request data structure.
template<typename T, typename U>
const U* wpi::uv::RequestImpl< T, U >::GetRaw ( ) const
inlinenoexcept

Get the underlying request data structure.

Returns
The underlying request data structure.

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