Loading...
Searching...
No Matches
ucxx::RequestTagMultiBuilder Class Reference

Builder class for constructing std::shared_ptr<ucxx::RequestTagMulti> objects. More...

#include <request_tag_multi_builder.h>

Inheritance diagram for ucxx::RequestTagMultiBuilder:
ucxx::RequestBuilderBase< RequestTagMultiBuilder >

Public Member Functions

 RequestTagMultiBuilder (std::shared_ptr< Endpoint > endpoint, std::variant< data::TagMultiSend, data::TagMultiReceive > requestData)
 Constructor for RequestTagMultiBuilder with required parameters.
std::shared_ptr< RequestTagMulti > build ()
 Build and return the RequestTagMulti.
 operator std::shared_ptr< RequestTagMulti > ()
 Implicit conversion operator to shared_ptr<RequestTagMulti>.
 operator std::shared_ptr< Request > ()
 Implicit conversion operator to shared_ptr<Request>.
Public Member Functions inherited from ucxx::RequestBuilderBase< RequestTagMultiBuilder >
 RequestBuilderBase ()=default
 Default constructor.
RequestBuilderBase & operator= (const RequestBuilderBase &)=delete
 Copy assignment disabled to prevent duplicate request submissions.
RequestTagMultiBuilder & pythonFuture (bool enable=true) &
 Configure Python future support.

Additional Inherited Members

Protected Member Functions inherited from ucxx::RequestBuilderBase< RequestTagMultiBuilder >
void markBuilt ()
 Assert that build() has not been called yet, then mark as built.
Protected Attributes inherited from ucxx::RequestBuilderBase< RequestTagMultiBuilder >
bool _enablePythonFuture
 Enable Python future support.
bool _built
 Whether build() has already been called.

Detailed Description

Builder class for constructing std::shared_ptr<ucxx::RequestTagMulti> objects.

Request builders capture the arguments required to create a request and expose optional settings through fluent setters. Construction happens when build() is called or when the builder is implicitly converted to a compatible std::shared_ptr.

Request builders are move-only and single-use. Calling build() or implicitly converting the same builder object more than once throws std::logic_error. The builder is consumed before request validation or construction completes; if that first attempt throws, retrying the same builder still throws std::logic_error.

Request builder objects are not thread-safe. Accessing the same builder object from multiple threads requires external synchronization. Distinct builder objects are independent.

Each request-specific factory function returns the corresponding builder. Required arguments are passed to the factory function, while optional settings such as Python future notification and completion callbacks are configured through method chaining when supported by that request type.

The endpoint and requestData are required and must be provided to requestTagMultiBuilder(). The pythonFuture() method is optional.

auto req = ucxx::requestTagMultiBuilder(endpoint, tagMultiSendData)
.pythonFuture(true)
.build();
std::shared_ptr<ucxx::RequestTagMulti> tagMultiReq =
ucxx::requestTagMultiBuilder(endpoint, tagMultiReceiveData);
Derived & pythonFuture(bool enable=true) &
Configure Python future support.
Definition request_builder_base.h:86
std::shared_ptr< RequestTagMulti > build()
Build and return the RequestTagMulti.
RequestTagMultiBuilder requestTagMultiBuilder(std::shared_ptr< Endpoint > endpoint, std::variant< data::TagMultiSend, data::TagMultiReceive > requestData)
Create a RequestTagMultiBuilder for constructing a shared_ptr<ucxx::RequestTagMulti>.
Definition request_tag_multi_builder.h:86

Constructor & Destructor Documentation

◆ RequestTagMultiBuilder()

ucxx::RequestTagMultiBuilder::RequestTagMultiBuilder ( std::shared_ptr< Endpoint > endpoint,
std::variant< data::TagMultiSend, data::TagMultiReceive > requestData )
explicit

Constructor for RequestTagMultiBuilder with required parameters.

Parameters
[in]endpointthe std::shared_ptr<Endpoint> parent component.
[in]requestDatacontainer of the specified message type, including all type-specific data.

Member Function Documentation

◆ build()

std::shared_ptr< RequestTagMulti > ucxx::RequestTagMultiBuilder::build ( )
nodiscard

Build and return the RequestTagMulti.

Returns
The constructed shared_ptr<ucxx::RequestTagMulti> object.

◆ operator std::shared_ptr< Request >()

ucxx::RequestTagMultiBuilder::operator std::shared_ptr< Request > ( )

Implicit conversion operator to shared_ptr<Request>.

Returns
The constructed request as shared_ptr<ucxx::Request>.

◆ operator std::shared_ptr< RequestTagMulti >()

ucxx::RequestTagMultiBuilder::operator std::shared_ptr< RequestTagMulti > ( )

Implicit conversion operator to shared_ptr<RequestTagMulti>.

Returns
The constructed shared_ptr<ucxx::RequestTagMulti> object.

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