Classes | Public Member Functions | Private Attributes | List of all members
grpc_core::ServerAddress Class Reference

#include <server_address.h>

Classes

class  AttributeInterface
 

Public Member Functions

const grpc_resolved_addressaddress () const
 
const grpc_channel_argsargs () const
 
int Cmp (const ServerAddress &other) const
 
const AttributeInterfaceGetAttribute (const char *key) const
 
ServerAddressoperator= (const ServerAddress &other)
 
ServerAddressoperator= (ServerAddress &&other) noexcept
 
bool operator== (const ServerAddress &other) const
 
 ServerAddress (const grpc_resolved_address &address, grpc_channel_args *args, std::map< const char *, std::unique_ptr< AttributeInterface >> attributes={})
 
 ServerAddress (const ServerAddress &other)
 
 ServerAddress (const void *address, size_t address_len, grpc_channel_args *args, std::map< const char *, std::unique_ptr< AttributeInterface >> attributes={})
 
 ServerAddress (ServerAddress &&other) noexcept
 
std::string ToString () const
 
ServerAddress WithAttribute (const char *key, std::unique_ptr< AttributeInterface > value) const
 
 ~ServerAddress ()
 

Private Attributes

grpc_resolved_address address_
 
grpc_channel_argsargs_
 
std::map< const char *, std::unique_ptr< AttributeInterface > > attributes_
 

Detailed Description

Definition at line 49 of file server_address.h.

Constructor & Destructor Documentation

◆ ServerAddress() [1/4]

grpc_core::ServerAddress::ServerAddress ( const grpc_resolved_address address,
grpc_channel_args args,
std::map< const char *, std::unique_ptr< AttributeInterface >>  attributes = {} 
)

Definition at line 53 of file server_address.cc.

◆ ServerAddress() [2/4]

grpc_core::ServerAddress::ServerAddress ( const void *  address,
size_t  address_len,
grpc_channel_args args,
std::map< const char *, std::unique_ptr< AttributeInterface >>  attributes = {} 
)

Definition at line 58 of file server_address.cc.

◆ ~ServerAddress()

grpc_core::ServerAddress::~ServerAddress ( )
inline

Definition at line 81 of file server_address.h.

◆ ServerAddress() [3/4]

grpc_core::ServerAddress::ServerAddress ( const ServerAddress other)

Definition at line 66 of file server_address.cc.

◆ ServerAddress() [4/4]

grpc_core::ServerAddress::ServerAddress ( ServerAddress &&  other)
noexcept

Definition at line 86 of file server_address.cc.

Member Function Documentation

◆ address()

const grpc_resolved_address& grpc_core::ServerAddress::address ( ) const
inline

Definition at line 95 of file server_address.h.

◆ args()

const grpc_channel_args* grpc_core::ServerAddress::args ( ) const
inline

Definition at line 96 of file server_address.h.

◆ Cmp()

int grpc_core::ServerAddress::Cmp ( const ServerAddress other) const

Definition at line 131 of file server_address.cc.

◆ GetAttribute()

const ServerAddress::AttributeInterface * grpc_core::ServerAddress::GetAttribute ( const char *  key) const

Definition at line 141 of file server_address.cc.

◆ operator=() [1/2]

ServerAddress & grpc_core::ServerAddress::operator= ( const ServerAddress other)

Definition at line 72 of file server_address.cc.

◆ operator=() [2/2]

ServerAddress & grpc_core::ServerAddress::operator= ( ServerAddress &&  other)
noexcept

Definition at line 93 of file server_address.cc.

◆ operator==()

bool grpc_core::ServerAddress::operator== ( const ServerAddress other) const
inline

Definition at line 91 of file server_address.h.

◆ ToString()

std::string grpc_core::ServerAddress::ToString ( ) const

Definition at line 161 of file server_address.cc.

◆ WithAttribute()

ServerAddress grpc_core::ServerAddress::WithAttribute ( const char *  key,
std::unique_ptr< AttributeInterface value 
) const

Definition at line 150 of file server_address.cc.

Member Data Documentation

◆ address_

grpc_resolved_address grpc_core::ServerAddress::address_
private

Definition at line 111 of file server_address.h.

◆ args_

grpc_channel_args* grpc_core::ServerAddress::args_
private

Definition at line 112 of file server_address.h.

◆ attributes_

std::map<const char*, std::unique_ptr<AttributeInterface> > grpc_core::ServerAddress::attributes_
private

Definition at line 113 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