11 #include <ucp/api/ucp.h>
13 #include <ucxx/component.h>
14 #include <ucxx/worker.h>
26 ucp_address_t* _handle{
nullptr};
46 Address(std::shared_ptr<Worker> worker, ucp_address_t* address,
size_t length);
129 [[deprecated(
"Removing in UCXX 0.51. Switch to `getStringView`.")]] [[nodiscard]] std::string
Component encapsulating the address of a UCP worker.
Definition: address.h:24
size_t getLength() const
Get the length of the ucp_address_t* handle.
ucp_address_t * getHandle() const
Get the underlying ucp_address_t* handle.
friend std::shared_ptr< Address > createAddressFromString(std::string_view addressString)
Constructor for shared_ptr<ucxx::Address> from string.
friend std::shared_ptr< Address > createAddressFromWorker(std::shared_ptr< Worker > worker)
Constructor for shared_ptr<ucxx::Address> from worker.
std::string_view getStringView() const
Get a non-owning view of the address as a string.
std::string getString() const
Get the address as a string.
A UCXX component class to prevent early destruction of parent object.
Definition: component.h:17