10 #include <ucp/api/ucp.h>
12 #include <ucxx/component.h>
13 #include <ucxx/worker.h>
25 ucp_address_t* _handle{
nullptr};
45 Address(std::shared_ptr<Worker> worker, ucp_address_t* address,
size_t length);
Component encapsulating the address of a UCP worker.
Definition: address.h:23
size_t getLength() const
Get the length of the ucp_address_t* handle.
friend std::shared_ptr< Address > createAddressFromString(std::string addressString)
Constructor for shared_ptr<ucxx::Address> from string.
ucp_address_t * getHandle() const
Get the underlying ucp_address_t* handle.
friend std::shared_ptr< Address > createAddressFromWorker(std::shared_ptr< Worker > worker)
Constructor for shared_ptr<ucxx::Address> from worker.
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