Interface for accessing metadata.
More...
#include <lb_policy.h>
Interface for accessing metadata.
Implemented by the client channel and used by the SubchannelPicker.
◆ ~MetadataInterface()
virtual grpc_core::LoadBalancingPolicy::MetadataInterface::~MetadataInterface |
( |
| ) |
|
|
virtualdefault |
◆ Add()
virtual void grpc_core::LoadBalancingPolicy::MetadataInterface::Add |
( |
StringView |
key, |
|
|
StringView |
value |
|
) |
| |
|
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().
◆ begin()
virtual iterator grpc_core::LoadBalancingPolicy::MetadataInterface::begin |
( |
| ) |
const |
|
pure virtual |
◆ end()
virtual iterator grpc_core::LoadBalancingPolicy::MetadataInterface::end |
( |
| ) |
const |
|
pure virtual |
◆ erase()
virtual iterator grpc_core::LoadBalancingPolicy::MetadataInterface::erase |
( |
iterator |
it | ) |
|
|
pure virtual |
Removes the element pointed to by it.
Returns an iterator pointing to the next element.
◆ GetIteratorHandle()
intptr_t grpc_core::LoadBalancingPolicy::MetadataInterface::GetIteratorHandle |
( |
const iterator & |
it | ) |
const |
|
inlineprotected |
◆ iterator
The documentation for this class was generated from the following file: