Public Member Functions | Static Public Member Functions | Private Types | Private Attributes | Friends | List of all members
grpc_core::MetadataMap< Derived, Traits > Class Template Reference

#include <metadata_batch.h>

Inheritance diagram for grpc_core::MetadataMap< Derived, Traits >:
Inheritance graph
[legend]

Public Member Functions

void Append (absl::string_view key, Slice value, MetadataParseErrorFn on_error)
 
void Clear ()
 
Derived Copy () const
 
size_t count () const
 
std::string DebugString () const
 
bool empty () const
 
template<typename Encoder >
void Encode (Encoder *encoder) const
 
template<typename Which >
absl::optional< typename Which::ValueType > get (Which) const
 
template<typename Which >
metadata_detail::Value< Which >::StorageType * get_pointer (Which)
 
template<typename Which >
const metadata_detail::Value< Which >::StorageType * get_pointer (Which) const
 
template<typename Which >
metadata_detail::Value< Which >::StorageType * GetOrCreatePointer (Which)
 
absl::optional< absl::string_viewGetStringValue (absl::string_view name, std::string *buffer) const
 
void Log (metadata_detail::LogFn log_fn) const
 
 MetadataMap (Arena *arena)
 
 MetadataMap (const MetadataMap &)=delete
 
 MetadataMap (MetadataMap &&) noexcept
 
MetadataMapoperator= (const MetadataMap &)=delete
 
Derived & operator= (MetadataMap &&) noexcept
 
void Remove (absl::string_view key)
 
void Remove (const char *key)
 
template<typename Which >
void Remove (Which)
 
void Set (const ParsedMetadata< Derived > &m)
 
template<typename Which , typename... Args>
absl::enable_if_t< Which::kRepeatable==false, void > Set (Which, Args &&... args)
 
template<typename Which , typename... Args>
absl::enable_if_t< Which::kRepeatable==true, void > Set (Which, Args &&... args)
 
template<typename Which >
absl::enable_if_t< Which::kRepeatable==false, absl::optional< typename Which::ValueType > > Take (Which which)
 
template<typename Which >
absl::enable_if_t< Which::kRepeatable==true, typename metadata_detail::Value< Which >::StorageType > Take (Which which)
 
size_t TransportSize () const
 
 ~MetadataMap ()
 

Static Public Member Functions

static ParsedMetadata< Derived > Parse (absl::string_view key, Slice value, uint32_t transport_size, MetadataParseErrorFn on_error)
 

Private Types

template<typename Which >
using Value = metadata_detail::Value< Which >
 

Private Attributes

Table< Value< Traits >... > table_
 
metadata_detail::UnknownMap unknown_
 

Friends

class metadata_detail::AppendHelper< Derived >
 
class metadata_detail::CopySink< Derived >
 
class metadata_detail::GetStringValueHelper< Derived >
 
class metadata_detail::RemoveHelper< Derived >
 
class ParsedMetadata< Derived >
 

Detailed Description

template<class Derived, typename... Traits>
class grpc_core::MetadataMap< Derived, Traits >

Definition at line 984 of file metadata_batch.h.

Member Typedef Documentation

◆ Value

template<class Derived , typename... Traits>
template<typename Which >
using grpc_core::MetadataMap< Derived, Traits >::Value = metadata_detail::Value<Which>
private

Definition at line 1177 of file metadata_batch.h.

Constructor & Destructor Documentation

◆ MetadataMap() [1/3]

template<typename Derived , typename... Traits>
grpc_core::MetadataMap< Derived, Traits >::MetadataMap ( Arena arena)
explicit

Definition at line 1193 of file metadata_batch.h.

◆ ~MetadataMap()

template<typename Derived , typename... Traits>
grpc_core::MetadataMap< Derived, Traits >::~MetadataMap ( )
default

◆ MetadataMap() [2/3]

template<class Derived , typename... Traits>
grpc_core::MetadataMap< Derived, Traits >::MetadataMap ( const MetadataMap< Derived, Traits > &  )
delete

◆ MetadataMap() [3/3]

template<typename Derived , typename... Traits>
grpc_core::MetadataMap< Derived, Traits >::MetadataMap ( MetadataMap< Derived, Traits > &&  other)
noexcept

Definition at line 1196 of file metadata_batch.h.

Member Function Documentation

◆ Append()

template<class Derived , typename... Traits>
void grpc_core::MetadataMap< Derived, Traits >::Append ( absl::string_view  key,
Slice  value,
MetadataParseErrorFn  on_error 
)
inline

Definition at line 1156 of file metadata_batch.h.

◆ Clear()

template<typename Derived , typename... Traits>
void grpc_core::MetadataMap< Derived, Traits >::Clear

Definition at line 1214 of file metadata_batch.h.

◆ Copy()

template<typename Derived , typename... Traits>
Derived grpc_core::MetadataMap< Derived, Traits >::Copy

Definition at line 1227 of file metadata_batch.h.

◆ count()

template<class Derived , typename... Traits>
size_t grpc_core::MetadataMap< Derived, Traits >::count ( ) const
inline

Definition at line 1167 of file metadata_batch.h.

◆ DebugString()

template<class Derived , typename... Traits>
std::string grpc_core::MetadataMap< Derived, Traits >::DebugString ( ) const
inline

Definition at line 1027 of file metadata_batch.h.

◆ empty()

template<class Derived , typename... Traits>
bool grpc_core::MetadataMap< Derived, Traits >::empty ( ) const
inline

Definition at line 1166 of file metadata_batch.h.

◆ Encode()

template<class Derived , typename... Traits>
template<typename Encoder >
void grpc_core::MetadataMap< Derived, Traits >::Encode ( Encoder *  encoder) const
inline

Definition at line 1011 of file metadata_batch.h.

◆ get()

template<class Derived , typename... Traits>
template<typename Which >
absl::optional<typename Which::ValueType> grpc_core::MetadataMap< Derived, Traits >::get ( Which  ) const
inline

Definition at line 1067 of file metadata_batch.h.

◆ get_pointer() [1/2]

template<class Derived , typename... Traits>
template<typename Which >
metadata_detail::Value<Which>::StorageType* grpc_core::MetadataMap< Derived, Traits >::get_pointer ( Which  )
inline

Definition at line 1049 of file metadata_batch.h.

◆ get_pointer() [2/2]

template<class Derived , typename... Traits>
template<typename Which >
const metadata_detail::Value<Which>::StorageType* grpc_core::MetadataMap< Derived, Traits >::get_pointer ( Which  ) const
inline

Definition at line 1039 of file metadata_batch.h.

◆ GetOrCreatePointer()

template<class Derived , typename... Traits>
template<typename Which >
metadata_detail::Value<Which>::StorageType* grpc_core::MetadataMap< Derived, Traits >::GetOrCreatePointer ( Which  )
inline

Definition at line 1058 of file metadata_batch.h.

◆ GetStringValue()

template<class Derived , typename... Traits>
absl::optional<absl::string_view> grpc_core::MetadataMap< Derived, Traits >::GetStringValue ( absl::string_view  name,
std::string *  buffer 
) const
inline

Definition at line 1100 of file metadata_batch.h.

◆ Log()

template<class Derived , typename... Traits>
void grpc_core::MetadataMap< Derived, Traits >::Log ( metadata_detail::LogFn  log_fn) const
inline

Definition at line 1020 of file metadata_batch.h.

◆ operator=() [1/2]

template<class Derived , typename... Traits>
MetadataMap& grpc_core::MetadataMap< Derived, Traits >::operator= ( const MetadataMap< Derived, Traits > &  )
delete

◆ operator=() [2/2]

template<typename Derived , typename... Traits>
Derived & grpc_core::MetadataMap< Derived, Traits >::operator= ( MetadataMap< Derived, Traits > &&  other)
noexcept

Definition at line 1203 of file metadata_batch.h.

◆ Parse()

template<class Derived , typename... Traits>
static ParsedMetadata<Derived> grpc_core::MetadataMap< Derived, Traits >::Parse ( absl::string_view  key,
Slice  value,
uint32_t  transport_size,
MetadataParseErrorFn  on_error 
)
inlinestatic

Definition at line 1142 of file metadata_batch.h.

◆ Remove() [1/3]

template<class Derived , typename... Traits>
void grpc_core::MetadataMap< Derived, Traits >::Remove ( absl::string_view  key)
inline

Definition at line 1092 of file metadata_batch.h.

◆ Remove() [2/3]

template<class Derived , typename... Traits>
void grpc_core::MetadataMap< Derived, Traits >::Remove ( const char *  key)
inline

Definition at line 1097 of file metadata_batch.h.

◆ Remove() [3/3]

template<class Derived , typename... Traits>
template<typename Which >
void grpc_core::MetadataMap< Derived, Traits >::Remove ( Which  )
inline

Definition at line 1087 of file metadata_batch.h.

◆ Set() [1/3]

template<class Derived , typename... Traits>
void grpc_core::MetadataMap< Derived, Traits >::Set ( const ParsedMetadata< Derived > &  m)
inline

Definition at line 1151 of file metadata_batch.h.

◆ Set() [2/3]

template<class Derived , typename... Traits>
template<typename Which , typename... Args>
absl::enable_if_t<Which::kRepeatable == false, void> grpc_core::MetadataMap< Derived, Traits >::Set ( Which  ,
Args &&...  args 
)
inline

Definition at line 1075 of file metadata_batch.h.

◆ Set() [3/3]

template<class Derived , typename... Traits>
template<typename Which , typename... Args>
absl::enable_if_t<Which::kRepeatable == true, void> grpc_core::MetadataMap< Derived, Traits >::Set ( Which  ,
Args &&...  args 
)
inline

Definition at line 1080 of file metadata_batch.h.

◆ Take() [1/2]

template<class Derived , typename... Traits>
template<typename Which >
absl::enable_if_t<Which::kRepeatable == false, absl::optional<typename Which::ValueType> > grpc_core::MetadataMap< Derived, Traits >::Take ( Which  which)
inline

Definition at line 1115 of file metadata_batch.h.

◆ Take() [2/2]

template<class Derived , typename... Traits>
template<typename Which >
absl::enable_if_t<Which::kRepeatable == true, typename metadata_detail::Value<Which>::StorageType> grpc_core::MetadataMap< Derived, Traits >::Take ( Which  which)
inline

Definition at line 1129 of file metadata_batch.h.

◆ TransportSize()

template<typename Derived , typename... Traits>
size_t grpc_core::MetadataMap< Derived, Traits >::TransportSize

Definition at line 1220 of file metadata_batch.h.

Friends And Related Function Documentation

◆ metadata_detail::AppendHelper< Derived >

template<class Derived , typename... Traits>
friend class metadata_detail::AppendHelper< Derived >
friend

Definition at line 1170 of file metadata_batch.h.

◆ metadata_detail::CopySink< Derived >

template<class Derived , typename... Traits>
friend class metadata_detail::CopySink< Derived >
friend

Definition at line 1173 of file metadata_batch.h.

◆ metadata_detail::GetStringValueHelper< Derived >

template<class Derived , typename... Traits>
friend class metadata_detail::GetStringValueHelper< Derived >
friend

Definition at line 1171 of file metadata_batch.h.

◆ metadata_detail::RemoveHelper< Derived >

template<class Derived , typename... Traits>
friend class metadata_detail::RemoveHelper< Derived >
friend

Definition at line 1172 of file metadata_batch.h.

◆ ParsedMetadata< Derived >

template<class Derived , typename... Traits>
friend class ParsedMetadata< Derived >
friend

Definition at line 1174 of file metadata_batch.h.

Member Data Documentation

◆ table_

template<class Derived , typename... Traits>
Table<Value<Traits>...> grpc_core::MetadataMap< Derived, Traits >::table_
private

Definition at line 1180 of file metadata_batch.h.

◆ unknown_

template<class Derived , typename... Traits>
metadata_detail::UnknownMap grpc_core::MetadataMap< Derived, Traits >::unknown_
private

Definition at line 1181 of file metadata_batch.h.


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


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