GRPC C++  1.62.0
Public Member Functions | Static Public Member Functions
grpc::internal::CallbackWithSuccessTag Class Reference

CallbackWithSuccessTag can be reused multiple times, and will be used in this fashion for streaming operations. More...

#include <callback_common.h>

Public Member Functions

 CallbackWithSuccessTag ()
 
 CallbackWithSuccessTag (const CallbackWithSuccessTag &)=delete
 
CallbackWithSuccessTagoperator= (const CallbackWithSuccessTag &)=delete
 
 ~CallbackWithSuccessTag ()
 
void Set (grpc_call *call, std::function< void(bool)> f, CompletionQueueTag *ops, bool can_inline)
 
void Clear ()
 
CompletionQueueTagops ()
 
void force_run (bool ok)
 
 operator bool () const
 check if this tag is currently set More...
 

Static Public Member Functions

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

Additional Inherited Members

- Data Fields inherited from grpc_completion_queue_functor
void(* functor_run )(struct grpc_completion_queue_functor *, int)
 The run member specifies a function that will be called when this tag is extracted from the completion queue. More...
 
int inlineable
 The inlineable member specifies whether this functor can be run inline. More...
 
int internal_success
 The following fields are not API. More...
 
struct grpc_completion_queue_functorinternal_next
 

Detailed Description

CallbackWithSuccessTag can be reused multiple times, and will be used in this fashion for streaming operations.

As a result, it shouldn't clear anything up until its destructor

Constructor & Destructor Documentation

◆ CallbackWithSuccessTag() [1/2]

grpc::internal::CallbackWithSuccessTag::CallbackWithSuccessTag ( )
inline

◆ CallbackWithSuccessTag() [2/2]

grpc::internal::CallbackWithSuccessTag::CallbackWithSuccessTag ( const CallbackWithSuccessTag )
delete

◆ ~CallbackWithSuccessTag()

grpc::internal::CallbackWithSuccessTag::~CallbackWithSuccessTag ( )
inline

Member Function Documentation

◆ Clear()

void grpc::internal::CallbackWithSuccessTag::Clear ( )
inline

◆ force_run()

void grpc::internal::CallbackWithSuccessTag::force_run ( bool  ok)
inline

◆ operator bool()

grpc::internal::CallbackWithSuccessTag::operator bool ( ) const
inline

check if this tag is currently set

◆ operator delete() [1/2]

static void grpc::internal::CallbackWithSuccessTag::operator delete ( void *  ,
std::size_t  size 
)
inlinestatic

◆ operator delete() [2/2]

static void grpc::internal::CallbackWithSuccessTag::operator delete ( void *  ,
void *   
)
inlinestatic

◆ operator=()

CallbackWithSuccessTag& grpc::internal::CallbackWithSuccessTag::operator= ( const CallbackWithSuccessTag )
delete

◆ ops()

CompletionQueueTag* grpc::internal::CallbackWithSuccessTag::ops ( )
inline

◆ Set()

void grpc::internal::CallbackWithSuccessTag::Set ( grpc_call call,
std::function< void(bool)>  f,
CompletionQueueTag ops,
bool  can_inline 
)
inline

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