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 105 of file Response.h.

Member Typedef Documentation

◆ error_type

Definition at line 110 of file Response.h.

◆ value_type

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

Definition at line 108 of file Response.h.

Constructor & Destructor Documentation

◆ Response() [1/3]

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

Definition at line 116 of file Response.h.

◆ Response() [2/3]

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

Definition at line 118 of file Response.h.

◆ Response() [3/3]

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

Definition at line 144 of file Response.h.

Member Function Documentation

◆ GetError()

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

Definition at line 129 of file Response.h.

References DEBUG_ASSERT.

◆ HasError()

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

Definition at line 120 of file Response.h.

◆ operator bool()

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

Definition at line 134 of file Response.h.

◆ SetError()

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

Definition at line 125 of file Response.h.

◆ Success()

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

Definition at line 112 of file Response.h.

Member Data Documentation

◆ _data

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

Definition at line 146 of file Response.h.


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