Class KeyValueProperties

Nested Relationships

Class Documentation

class opentelemetry::common::KeyValueProperties

Public Functions

inline KeyValueProperties(size_t size)
inline KeyValueProperties()
template<class T, class = typename std::enable_if<detail::is_key_value_iterable<T>::value>::type>
inline KeyValueProperties(const T &keys_and_values)
inline void AddEntry(const nostd::string_view &key, const nostd::string_view &value)
inline bool GetAllEntries(nostd::function_ref<bool(nostd::string_view, nostd::string_view)> callback) const
inline bool GetValue(const nostd::string_view key, std::string &value) const
inline size_t Size() const noexcept

Public Members

size_t num_entries_
size_t max_num_entries_
nostd::unique_ptr<Entry[]> entries_
class Entry

Public Functions

inline Entry()
inline Entry(const Entry &copy)
inline Entry &operator=(Entry &other)
Entry(Entry &&other) = default
Entry &operator=(Entry &&other) = default
inline Entry(nostd::string_view key, nostd::string_view value)
inline nostd::string_view GetKey() const
inline nostd::string_view GetValue() const
inline void SetValue(nostd::string_view value)