Public Member Functions | Static Public Attributes | Private Attributes | List of all members
grpc_core::ServerAddressWeightAttribute Class Reference

#include <server_address.h>

Inheritance diagram for grpc_core::ServerAddressWeightAttribute:
Inheritance graph
[legend]

Public Member Functions

int Cmp (const AttributeInterface *other) const override
 
std::unique_ptr< AttributeInterface > Copy () const override
 
 ServerAddressWeightAttribute (uint32_t weight)
 
std::string ToString () const override
 
uint32_t weight () const
 
- Public Member Functions inherited from grpc_core::ServerAddress::AttributeInterface
virtual int Cmp (const AttributeInterface *other) const =0
 
virtual ~AttributeInterface ()=default
 

Static Public Attributes

static const char * kServerAddressWeightAttributeKey
 

Private Attributes

uint32_t weight_
 

Detailed Description

Definition at line 125 of file server_address.h.

Constructor & Destructor Documentation

◆ ServerAddressWeightAttribute()

grpc_core::ServerAddressWeightAttribute::ServerAddressWeightAttribute ( uint32_t  weight)
inlineexplicit

Definition at line 129 of file server_address.h.

Member Function Documentation

◆ Cmp()

int grpc_core::ServerAddressWeightAttribute::Cmp ( const AttributeInterface *  other) const
inlineoverride

Definition at line 137 of file server_address.h.

◆ Copy()

std::unique_ptr<AttributeInterface> grpc_core::ServerAddressWeightAttribute::Copy ( ) const
inlineoverridevirtual

Implements grpc_core::ServerAddress::AttributeInterface.

Definition at line 133 of file server_address.h.

◆ ToString()

std::string grpc_core::ServerAddressWeightAttribute::ToString ( ) const
overridevirtual

Implements grpc_core::ServerAddress::AttributeInterface.

Definition at line 180 of file server_address.cc.

◆ weight()

uint32_t grpc_core::ServerAddressWeightAttribute::weight ( ) const
inline

Definition at line 131 of file server_address.h.

Member Data Documentation

◆ kServerAddressWeightAttributeKey

const char * grpc_core::ServerAddressWeightAttribute::kServerAddressWeightAttributeKey
static
Initial value:
=
"server_address_weight"

Definition at line 127 of file server_address.h.

◆ weight_

uint32_t grpc_core::ServerAddressWeightAttribute::weight_
private

Definition at line 146 of file server_address.h.


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


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