Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
grpc::ClientAsyncResponseReader< R > Class Template Reference

#include <async_unary_call.h>

Public Member Functions

void Finish (R *msg, grpc::Status *status, void *tag) override
 
void ReadInitialMetadata (void *tag) override
 
void StartCall () override
 

Static Public Member Functions

static void operator delete (void *, std::size_t size)
 
static void operator delete (void *, void *)
 

Private Member Functions

 ClientAsyncResponseReader (grpc::internal::Call call, grpc::ClientContext *context)
 

Static Private Member Functions

static void * operator new (std::size_t size)
 
static void * operator new (std::size_t, void *p)
 

Private Attributes

grpc::internal::Call call_
 
grpc::ClientContext *const context_
 
std::function< void(ClientContext *, internal::Call *, bool initial_metadata_read, internal::CallOpSendInitialMetadata *, internal::CallOpSetInterface **, void *, Status *, void *)> finish_
 
internal::CallOpSetInterfacefinish_buf_ = nullptr
 
bool initial_metadata_read_ = false
 
std::function< void(ClientContext *, internal::Call *, internal::CallOpSendInitialMetadata *, void *)> read_initial_metadata_
 
internal::CallOpSendInitialMetadatasingle_buf_
 
bool started_ = false
 

Friends

class internal::ClientAsyncResponseReaderHelper
 

Detailed Description

template<class R>
class grpc::ClientAsyncResponseReader< R >

Async API for client-side unary RPCs, where the message response received from the server is of type R.

Definition at line 37 of file grpcpp/impl/codegen/async_unary_call.h.

Constructor & Destructor Documentation

◆ ClientAsyncResponseReader()

template<class R >
grpc::ClientAsyncResponseReader< R >::ClientAsyncResponseReader ( grpc::internal::Call  call,
grpc::ClientContext context 
)
inlineprivate

Definition at line 272 of file grpcpp/impl/codegen/async_unary_call.h.

Member Function Documentation

◆ Finish()

template<class R >
void grpc::ClientAsyncResponseReader< R >::Finish ( R *  msg,
grpc::Status status,
void *  tag 
)
inlineoverride

See ClientAsyncResponseReaderInterface::Finish for semantics.

Side effect:

  • the ClientContext associated with this call is updated with possible initial and trailing metadata sent from the server.

Definition at line 259 of file grpcpp/impl/codegen/async_unary_call.h.

◆ operator delete() [1/2]

template<class R >
static void grpc::ClientAsyncResponseReader< R >::operator delete ( void *  ,
std::size_t  size 
)
inlinestatic

Definition at line 224 of file grpcpp/impl/codegen/async_unary_call.h.

◆ operator delete() [2/2]

template<class R >
static void grpc::ClientAsyncResponseReader< R >::operator delete ( void *  ,
void *   
)
inlinestatic

Definition at line 233 of file grpcpp/impl/codegen/async_unary_call.h.

◆ operator new() [1/2]

template<class R >
static void* grpc::ClientAsyncResponseReader< R >::operator new ( std::size_t  size)
staticprivate

◆ operator new() [2/2]

template<class R >
static void* grpc::ClientAsyncResponseReader< R >::operator new ( std::size_t  ,
void *  p 
)
inlinestaticprivate

Definition at line 278 of file grpcpp/impl/codegen/async_unary_call.h.

◆ ReadInitialMetadata()

template<class R >
void grpc::ClientAsyncResponseReader< R >::ReadInitialMetadata ( void *  tag)
inlineoverride

See ClientAsyncResponseReaderInterface::ReadInitialMetadata for semantics.

Side effect:

  • the ClientContext associated with this call is updated with possible initial and trailing metadata sent from the server.

Definition at line 247 of file grpcpp/impl/codegen/async_unary_call.h.

◆ StartCall()

template<class R >
void grpc::ClientAsyncResponseReader< R >::StartCall ( )
inlineoverride

Definition at line 235 of file grpcpp/impl/codegen/async_unary_call.h.

Friends And Related Function Documentation

◆ internal::ClientAsyncResponseReaderHelper

template<class R >
friend class internal::ClientAsyncResponseReaderHelper
friend

Definition at line 266 of file grpcpp/impl/codegen/async_unary_call.h.

Member Data Documentation

◆ call_

template<class R >
grpc::internal::Call grpc::ClientAsyncResponseReader< R >::call_
private

Definition at line 268 of file grpcpp/impl/codegen/async_unary_call.h.

◆ context_

template<class R >
grpc::ClientContext* const grpc::ClientAsyncResponseReader< R >::context_
private

Definition at line 267 of file grpcpp/impl/codegen/async_unary_call.h.

◆ finish_

template<class R >
std::function<void(ClientContext*, internal::Call*, bool initial_metadata_read, internal::CallOpSendInitialMetadata*, internal::CallOpSetInterface**, void*, Status*, void*)> grpc::ClientAsyncResponseReader< R >::finish_
private

Definition at line 289 of file grpcpp/impl/codegen/async_unary_call.h.

◆ finish_buf_

template<class R >
internal::CallOpSetInterface* grpc::ClientAsyncResponseReader< R >::finish_buf_ = nullptr
private

Definition at line 281 of file grpcpp/impl/codegen/async_unary_call.h.

◆ initial_metadata_read_

template<class R >
bool grpc::ClientAsyncResponseReader< R >::initial_metadata_read_ = false
private

Definition at line 270 of file grpcpp/impl/codegen/async_unary_call.h.

◆ read_initial_metadata_

template<class R >
std::function<void(ClientContext*, internal::Call*, internal::CallOpSendInitialMetadata*, void*)> grpc::ClientAsyncResponseReader< R >::read_initial_metadata_
private

Definition at line 284 of file grpcpp/impl/codegen/async_unary_call.h.

◆ single_buf_

template<class R >
internal::CallOpSendInitialMetadata* grpc::ClientAsyncResponseReader< R >::single_buf_
private

Definition at line 280 of file grpcpp/impl/codegen/async_unary_call.h.

◆ started_

template<class R >
bool grpc::ClientAsyncResponseReader< R >::started_ = false
private

Definition at line 269 of file grpcpp/impl/codegen/async_unary_call.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:30