Struct GenericClient::FutureAndRequestId

Nested Relationships

This struct is a nested type of Class GenericClient.

Inheritance Relationships

Base Type

Struct Documentation

struct FutureAndRequestId : public rclcpp::detail::FutureAndRequestId<Future>

A convenient GenericClient::Future and request id pair.

Public members:

  • future: a std::future<void *>.

  • request_id: the request id associated with the future.

All the other methods are equivalent to the ones std::future provides.

Public Functions

inline SharedFuture share() noexcept

See std::future::share().

FutureAndRequestId(FutureAndRequestId &&other) noexcept = default

Move constructor.

FutureAndRequestId(const FutureAndRequestId &other) = delete

Deleted copy constructor, each instance is a unique owner of the future.

FutureAndRequestId &operator=(FutureAndRequestId &&other) noexcept = default

Move assignment.

FutureAndRequestId &operator=(const FutureAndRequestId &other) = delete

Deleted copy assignment, each instance is a unique owner of the future.

~FutureAndRequestId() = default

Destructor.