GRPC C++
1.39.1
|
Interface for accessing metadata. More...
#include <lb_policy.h>
Data Structures | |
class | iterator |
Public Member Functions | |
virtual | ~MetadataInterface ()=default |
virtual void | Add (absl::string_view key, absl::string_view value)=0 |
Adds a key/value pair. More... | |
virtual iterator | begin () const =0 |
Iteration interface. More... | |
virtual iterator | end () const =0 |
virtual iterator | erase (iterator it)=0 |
Removes the element pointed to by it. More... | |
Protected Member Functions | |
intptr_t | GetIteratorHandle (const iterator &it) const |
Friends | |
class | iterator |
Interface for accessing metadata.
Implemented by the client channel and used by the SubchannelPicker.
|
virtualdefault |
|
pure virtual |
Adds a key/value pair.
Does NOT take ownership of key or value. Implementations must ensure that the key and value remain alive until the call ends. If desired, they may be allocated via CallState::Alloc().
Implemented in grpc_core::ClientChannel::LoadBalancedCall::Metadata.
|
pure virtual |
Iteration interface.
Implemented in grpc_core::ClientChannel::LoadBalancedCall::Metadata.
|
pure virtual |
Implemented in grpc_core::ClientChannel::LoadBalancedCall::Metadata.
|
pure virtual |
Removes the element pointed to by it.
Returns an iterator pointing to the next element.
Implemented in grpc_core::ClientChannel::LoadBalancedCall::Metadata.
|
inlineprotected |
|
friend |