Builder class for constructing std::shared_ptr<ucxx::Address> objects.
More...
#include <address_builder.h>
Builder class for constructing std::shared_ptr<ucxx::Address> objects.
This class implements the builder pattern for std::shared_ptr<ucxx::Address>. Construction happens when build() is called or when the builder is implicitly converted to std::shared_ptr<Address>.
◆ AddressBuilder() [1/2]
| ucxx::AddressBuilder::AddressBuilder |
( |
std::shared_ptr< Worker > | worker | ) |
|
|
explicit |
Constructor for AddressBuilder from a worker.
- Parameters
-
| [in] | worker | worker from which to get the address. |
◆ AddressBuilder() [2/2]
| ucxx::AddressBuilder::AddressBuilder |
( |
std::string_view | addressString | ) |
|
|
explicit |
Constructor for AddressBuilder from a serialized address string.
- Parameters
-
| [in] | addressString | serialized worker address. |
◆ build()
| std::shared_ptr< Address > ucxx::AddressBuilder::build |
( |
| ) |
|
|
nodiscard |
◆ operator std::shared_ptr< Address >()
| ucxx::AddressBuilder::operator std::shared_ptr< Address > |
( |
| ) |
|
Implicit conversion operator to shared_ptr<Address>.
- Returns
- The constructed shared_ptr<ucxx::Address> object.
The documentation for this class was generated from the following file: