NVIDIA DeepStream SDK API Reference

9.2 Release
common::KeyValueProperties Class Reference

Detailed Description

Collaboration diagram for common::KeyValueProperties:

Data Structures

class  Entry
 

Public Member Functions

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

Data Fields

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

Constructor & Destructor Documentation

◆ KeyValueProperties() [1/6]

common::KeyValueProperties::KeyValueProperties ( size_t  size)
inlinenoexcept

◆ KeyValueProperties() [2/6]

common::KeyValueProperties::KeyValueProperties ( )
inlinenoexcept

◆ KeyValueProperties() [3/6]

template<class T , class = typename std::enable_if<detail::is_key_value_iterable<T>::value>::type>
common::KeyValueProperties::KeyValueProperties ( const T &  keys_and_values)
inlinenoexcept

◆ KeyValueProperties() [4/6]

common::KeyValueProperties::KeyValueProperties ( size_t  size)
inlinenoexcept

◆ KeyValueProperties() [5/6]

common::KeyValueProperties::KeyValueProperties ( )
inlinenoexcept

◆ KeyValueProperties() [6/6]

template<class T , class = typename std::enable_if<detail::is_key_value_iterable<T>::value>::type>
common::KeyValueProperties::KeyValueProperties ( const T &  keys_and_values)
inlinenoexcept

Member Function Documentation

◆ AddEntry() [1/2]

void common::KeyValueProperties::AddEntry ( nostd::string_view  key,
nostd::string_view  value 
)
inlinenoexcept

◆ AddEntry() [2/2]

void common::KeyValueProperties::AddEntry ( nostd::string_view  key,
nostd::string_view  value 
)
inlinenoexcept

◆ GetAllEntries() [1/2]

bool common::KeyValueProperties::GetAllEntries ( nostd::function_ref< bool(nostd::string_view, nostd::string_view)>  callback) const
inlinenoexcept

Definition at line 239 of file includes/opentelemetry/common/kv_properties.h.

References entries_, and num_entries_.

◆ GetAllEntries() [2/2]

bool common::KeyValueProperties::GetAllEntries ( nostd::function_ref< bool(nostd::string_view, nostd::string_view)>  callback) const
inlinenoexcept

Definition at line 239 of file 9.2/includes/opentelemetry/common/kv_properties.h.

References entries_, and num_entries_.

◆ GetValue() [1/2]

bool common::KeyValueProperties::GetValue ( nostd::string_view  key,
std::string &  value 
) const
inlinenoexcept

Definition at line 254 of file 9.2/includes/opentelemetry/common/kv_properties.h.

References entries_, and num_entries_.

◆ GetValue() [2/2]

bool common::KeyValueProperties::GetValue ( nostd::string_view  key,
std::string &  value 
) const
inlinenoexcept

Definition at line 254 of file includes/opentelemetry/common/kv_properties.h.

References entries_, and num_entries_.

◆ Size() [1/2]

size_t common::KeyValueProperties::Size ( ) const
inlinenoexcept

Definition at line 269 of file includes/opentelemetry/common/kv_properties.h.

References num_entries_.

◆ Size() [2/2]

size_t common::KeyValueProperties::Size ( ) const
inlinenoexcept

Definition at line 269 of file 9.2/includes/opentelemetry/common/kv_properties.h.

References num_entries_.

Field Documentation

◆ entries_

nostd::unique_ptr< Entry[]> common::KeyValueProperties::entries_

◆ max_num_entries_

size_t common::KeyValueProperties::max_num_entries_

Definition at line 200 of file includes/opentelemetry/common/kv_properties.h.

Referenced by AddEntry().

◆ num_entries_

size_t common::KeyValueProperties::num_entries_

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