Public Member Functions | List of all members
grpc_core::LoadBalancingPolicy::CallState Class Referenceabstract

#include <lb_policy.h>

Inheritance diagram for grpc_core::LoadBalancingPolicy::CallState:
Inheritance graph
[legend]

Public Member Functions

virtual void * Alloc (size_t size)=0
 
 CallState ()=default
 
virtual ~CallState ()=default
 

Detailed Description

Interface for accessing per-call state. Implemented by the client channel and used by the SubchannelPicker.

Definition at line 99 of file lb_policy.h.

Constructor & Destructor Documentation

◆ CallState()

grpc_core::LoadBalancingPolicy::CallState::CallState ( )
default

◆ ~CallState()

virtual grpc_core::LoadBalancingPolicy::CallState::~CallState ( )
virtualdefault

Member Function Documentation

◆ Alloc()

virtual void* grpc_core::LoadBalancingPolicy::CallState::Alloc ( size_t  size)
pure virtual

Allocates memory associated with the call, which will be automatically freed when the call is complete. It is more efficient to use this than to allocate memory directly for allocations that need to be made on a per-call basis.

Implemented in grpc_core::ClientChannel::LoadBalancedCall::LbCallState.


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


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