CARLA
Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
carla::rpc::Response< void > Class Template Reference

#include <Response.h>

+ Collaboration diagram for carla::rpc::Response< void >:

Classes

struct  success_flag
 

Public Types

using error_type = ResponseError
 
using value_type = void
 

Public Member Functions

const error_typeGetError () const
 
bool HasError () const
 
 operator bool () const
 
 Response ()
 
 Response (ResponseError error)
 
template<typename... Ts>
void SetError (Ts &&... args)
 

Static Public Member Functions

static Response Success ()
 

Private Member Functions

 Response (success_flag)
 

Private Attributes

boost::optional< error_type_data
 

Detailed Description

template<>
class carla::rpc::Response< void >

Definition at line 96 of file Response.h.

Member Typedef Documentation

◆ error_type

Definition at line 101 of file Response.h.

◆ value_type

using carla::rpc::Response< void >::value_type = void

Definition at line 99 of file Response.h.

Constructor & Destructor Documentation

◆ Response() [1/3]

carla::rpc::Response< void >::Response ( )
inline

Definition at line 107 of file Response.h.

◆ Response() [2/3]

carla::rpc::Response< void >::Response ( ResponseError  error)
inline

Definition at line 109 of file Response.h.

◆ Response() [3/3]

carla::rpc::Response< void >::Response ( success_flag  )
inlineprivate

Definition at line 135 of file Response.h.

Member Function Documentation

◆ GetError()

const error_type& carla::rpc::Response< void >::GetError ( ) const
inline

Definition at line 120 of file Response.h.

References DEBUG_ASSERT.

◆ HasError()

bool carla::rpc::Response< void >::HasError ( ) const
inline

Definition at line 111 of file Response.h.

◆ operator bool()

carla::rpc::Response< void >::operator bool ( ) const
inline

Definition at line 125 of file Response.h.

◆ SetError()

template<typename... Ts>
void carla::rpc::Response< void >::SetError ( Ts &&...  args)
inline

Definition at line 116 of file Response.h.

◆ Success()

static Response carla::rpc::Response< void >::Success ( )
inlinestatic

Definition at line 103 of file Response.h.

Member Data Documentation

◆ _data

boost::optional<error_type> carla::rpc::Response< void >::_data
private

Definition at line 137 of file Response.h.


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