NVIDIA DeepStream SDK API Reference

9.2 Release
common::KeyValueIterableView< T > Class Template Referencefinal

Detailed Description

template<class T>
class common::KeyValueIterableView< T >

Container for key-value pairs that can transform every value in it to one of types listed in common::AttributeValue.

It may contain value types that are not directly map'able to primitive value types. In that case the ForEachKeyValue method acts as a transform to convert the value type to one listed under AtributeValue (bool, int32_t, int64_t, uint32_t, uint64_t, double, nostd::string_view, or arrays of primite types). For example, if UUID, GUID, or UTF-16 string type is passed as one of values stored inside this container, the container itself may provide a custom implementation of ForEachKeyValue to transform the 'non-standard' type to one of the standard types.

Definition at line 57 of file includes/opentelemetry/common/key_value_iterable_view.h.

Inheritance diagram for common::KeyValueIterableView< T >:
Collaboration diagram for common::KeyValueIterableView< T >:

Public Member Functions

 KeyValueIterableView (const T &container) noexcept
 
bool ForEachKeyValue (nostd::function_ref< bool(nostd::string_view, common::AttributeValue)> callback) const noexcept override
 
size_t size () const noexcept override
 
 KeyValueIterableView (const T &container) noexcept
 
bool ForEachKeyValue (nostd::function_ref< bool(nostd::string_view, common::AttributeValue)> callback) const noexcept override
 
size_t size () const noexcept override
 

Constructor & Destructor Documentation

◆ KeyValueIterableView() [1/2]

template<class T >
common::KeyValueIterableView< T >::KeyValueIterableView ( const T &  container)
inlineexplicitnoexcept

◆ KeyValueIterableView() [2/2]

template<class T >
common::KeyValueIterableView< T >::KeyValueIterableView ( const T &  container)
inlineexplicitnoexcept

Member Function Documentation

◆ ForEachKeyValue() [1/2]

template<class T >
bool common::KeyValueIterableView< T >::ForEachKeyValue ( nostd::function_ref< bool(nostd::string_view, common::AttributeValue)>  callback) const
inlineoverridevirtualnoexcept

◆ ForEachKeyValue() [2/2]

template<class T >
bool common::KeyValueIterableView< T >::ForEachKeyValue ( nostd::function_ref< bool(nostd::string_view, common::AttributeValue)>  callback) const
inlineoverridevirtualnoexcept

◆ size() [1/2]

template<class T >
size_t common::KeyValueIterableView< T >::size ( ) const
inlineoverridevirtualnoexcept

◆ size() [2/2]

template<class T >
size_t common::KeyValueIterableView< T >::size ( ) const
inlineoverridevirtualnoexcept

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