CARLA
Public Member Functions | Public Attributes | List of all members
carla::client::detail::Client::Pimpl Class Reference
+ Collaboration diagram for carla::client::detail::Client::Pimpl:

Public Member Functions

template<typename ... Args>
void AsyncCall (const std::string &function, Args &&... args)
 
template<typename T , typename ... Args>
auto CallAndWait (const std::string &function, Args &&... args)
 
time_duration GetTimeout () const
 
 Pimpl (const std::string &host, uint16_t port, size_t worker_threads)
 
template<typename ... Args>
auto RawCall (const std::string &function, Args &&... args)
 

Public Attributes

const std::string endpoint
 
rpc::Client rpc_client
 
streaming::Client streaming_client
 

Detailed Description

Definition at line 46 of file client/detail/Client.cpp.

Constructor & Destructor Documentation

◆ Pimpl()

carla::client::detail::Client::Pimpl::Pimpl ( const std::string &  host,
uint16_t  port,
size_t  worker_threads 
)
inline

Definition at line 49 of file client/detail/Client.cpp.

References carla::streaming::Client::AsyncRun(), rpc_client, carla::rpc::Client::set_timeout(), and streaming_client.

+ Here is the call graph for this function:

Member Function Documentation

◆ AsyncCall()

template<typename ... Args>
void carla::client::detail::Client::Pimpl::AsyncCall ( const std::string &  function,
Args &&...  args 
)
inline

Definition at line 79 of file client/detail/Client.cpp.

References carla::rpc::Client::async_call(), and rpc_client.

+ Here is the call graph for this function:

◆ CallAndWait()

template<typename T , typename ... Args>
auto carla::client::detail::Client::Pimpl::CallAndWait ( const std::string &  function,
Args &&...  args 
)
inline

Definition at line 68 of file client/detail/Client.cpp.

References carla::client::detail::Get(), RawCall(), and carla::throw_exception().

+ Here is the call graph for this function:

◆ GetTimeout()

time_duration carla::client::detail::Client::Pimpl::GetTimeout ( ) const
inline

Definition at line 84 of file client/detail/Client.cpp.

References DEBUG_ASSERT, carla::rpc::Client::get_timeout(), carla::time_duration::milliseconds(), and rpc_client.

Referenced by RawCall().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RawCall()

template<typename ... Args>
auto carla::client::detail::Client::Pimpl::RawCall ( const std::string &  function,
Args &&...  args 
)
inline

Definition at line 59 of file client/detail/Client.cpp.

References carla::rpc::Client::call(), endpoint, GetTimeout(), rpc_client, and carla::throw_exception().

Referenced by CallAndWait().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ endpoint

const std::string carla::client::detail::Client::Pimpl::endpoint

Definition at line 90 of file client/detail/Client.cpp.

Referenced by RawCall().

◆ rpc_client

rpc::Client carla::client::detail::Client::Pimpl::rpc_client

Definition at line 92 of file client/detail/Client.cpp.

Referenced by AsyncCall(), GetTimeout(), Pimpl(), and RawCall().

◆ streaming_client

streaming::Client carla::client::detail::Client::Pimpl::streaming_client

Definition at line 94 of file client/detail/Client.cpp.

Referenced by Pimpl().


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