Supports internal iteration over a collection of key-value pairs.
Definition at line 17 of file includes/opentelemetry/common/key_value_iterable.h.

Public Member Functions | |
| virtual | ~KeyValueIterable ()=default |
| virtual bool | ForEachKeyValue (nostd::function_ref< bool(nostd::string_view, common::AttributeValue)> callback) const noexcept=0 |
| Iterate over key-value pairs. More... | |
| virtual size_t | size () const noexcept=0 |
| virtual | ~KeyValueIterable ()=default |
| virtual bool | ForEachKeyValue (nostd::function_ref< bool(nostd::string_view, common::AttributeValue)> callback) const noexcept=0 |
| Iterate over key-value pairs. More... | |
| virtual size_t | size () const noexcept=0 |
|
virtualdefault |
|
virtualdefault |
|
pure virtualnoexcept |
Iterate over key-value pairs.
| callback | a callback to invoke for each key-value. If the callback returns false, the iteration is aborted. |
Implemented in common::NoopKeyValueIterable, common::NoopKeyValueIterable, common::KeyValueIterableView< T >, and common::KeyValueIterableView< T >.
|
pure virtualnoexcept |
Iterate over key-value pairs.
| callback | a callback to invoke for each key-value. If the callback returns false, the iteration is aborted. |
Implemented in common::NoopKeyValueIterable, common::NoopKeyValueIterable, common::KeyValueIterableView< T >, and common::KeyValueIterableView< T >.
|
pure virtualnoexcept |
Implemented in common::KeyValueIterableView< T >, common::KeyValueIterableView< T >, common::NoopKeyValueIterable, and common::NoopKeyValueIterable.
|
pure virtualnoexcept |
Implemented in common::KeyValueIterableView< T >, common::KeyValueIterableView< T >, common::NoopKeyValueIterable, and common::NoopKeyValueIterable.