WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
wpi::net::uv::RequestImpl< T, U > Class Template Reference

Request. More...

#include <wpi/net/uv/Request.hpp>

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

Protected Member Functions

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

Additional Inherited Members

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

Detailed Description

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

Request.

Requests are not moveable or copyable.

Template Parameters
TCRTP derived class
Uunderlying libuv request type

Constructor & Destructor Documentation

◆ RequestImpl()

template<typename T, typename U>
wpi::net::uv::RequestImpl< T, U >::RequestImpl ( )
inlineprotected

Constructor.

Member Function Documentation

◆ GetRaw() [1/2]

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

Get the underlying request data structure.

Returns
The underlying request data structure.

◆ GetRaw() [2/2]

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

Get the underlying request data structure.

Returns
The underlying request data structure.

◆ shared_from_this() [1/2]

template<typename T, typename U>
std::shared_ptr< T > wpi::net::uv::RequestImpl< T, U >::shared_from_this ( )
inline

◆ shared_from_this() [2/2]

template<typename T, typename U>
std::shared_ptr< const T > wpi::net::uv::RequestImpl< T, U >::shared_from_this ( ) const
inline

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