#include <server_address.h>
Classes | |
class | AttributeInterface |
Public Member Functions | |
const grpc_resolved_address & | address () const |
const grpc_channel_args * | args () const |
int | Cmp (const ServerAddress &other) const |
const AttributeInterface * | GetAttribute (const char *key) const |
ServerAddress & | operator= (const ServerAddress &other) |
ServerAddress & | operator= (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_args * | args_ |
std::map< const char *, std::unique_ptr< AttributeInterface > > | attributes_ |
Definition at line 49 of file server_address.h.
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.
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.
|
inline |
Definition at line 81 of file server_address.h.
grpc_core::ServerAddress::ServerAddress | ( | const ServerAddress & | other | ) |
Definition at line 66 of file server_address.cc.
|
noexcept |
Definition at line 86 of file server_address.cc.
|
inline |
Definition at line 95 of file server_address.h.
|
inline |
Definition at line 96 of file server_address.h.
int grpc_core::ServerAddress::Cmp | ( | const ServerAddress & | other | ) | const |
Definition at line 131 of file server_address.cc.
const ServerAddress::AttributeInterface * grpc_core::ServerAddress::GetAttribute | ( | const char * | key | ) | const |
Definition at line 141 of file server_address.cc.
ServerAddress & grpc_core::ServerAddress::operator= | ( | const ServerAddress & | other | ) |
Definition at line 72 of file server_address.cc.
|
noexcept |
Definition at line 93 of file server_address.cc.
|
inline |
Definition at line 91 of file server_address.h.
std::string grpc_core::ServerAddress::ToString | ( | ) | const |
Definition at line 161 of file server_address.cc.
ServerAddress grpc_core::ServerAddress::WithAttribute | ( | const char * | key, |
std::unique_ptr< AttributeInterface > | value | ||
) | const |
Definition at line 150 of file server_address.cc.
|
private |
Definition at line 111 of file server_address.h.
|
private |
Definition at line 112 of file server_address.h.
|
private |
Definition at line 113 of file server_address.h.