NVIDIA DeepStream SDK API Reference

9.2 Release
sdk::metrics::AttributesHashMapWithCustomHash< CustomHash > Class Template Reference

Detailed Description

template<typename CustomHash = MetricAttributesHash>
class sdk::metrics::AttributesHashMapWithCustomHash< CustomHash >

Definition at line 47 of file includes/opentelemetry/sdk/metrics/state/attributes_hashmap.h.

Public Member Functions

 AttributesHashMapWithCustomHash (size_t attributes_limit=kAggregationCardinalityLimit)
 
Aggregation * Get (const MetricAttributes &attributes) const
 
bool Has (const MetricAttributes &attributes) const
 
Aggregation * GetOrSetDefault (const opentelemetry::common::KeyValueIterable &attributes, const AttributesProcessor *attributes_processor, nostd::function_ref< std::unique_ptr< Aggregation >()> aggregation_callback)
 
Aggregation * GetOrSetDefault (const MetricAttributes &attributes, nostd::function_ref< std::unique_ptr< Aggregation >()> aggregation_callback)
 
Aggregation * GetOrSetDefault (MetricAttributes &&attributes, nostd::function_ref< std::unique_ptr< Aggregation >()> aggregation_callback)
 
void Set (const opentelemetry::common::KeyValueIterable &attributes, const AttributesProcessor *attributes_processor, std::unique_ptr< Aggregation > aggr)
 Set the value for given key, overwriting the value if already present. More...
 
void Set (const MetricAttributes &attributes, std::unique_ptr< Aggregation > aggr)
 
void Set (MetricAttributes &&attributes, std::unique_ptr< Aggregation > aggr)
 
bool GetAllEnteries (nostd::function_ref< bool(const MetricAttributes &, Aggregation &)> callback) const
 Iterate the hash to yield key and value stored in hash. More...
 
size_t Size ()
 Return the size of hash. More...
 
 AttributesHashMapWithCustomHash (size_t attributes_limit=kAggregationCardinalityLimit)
 
Aggregation * Get (const MetricAttributes &attributes) const
 
bool Has (const MetricAttributes &attributes) const
 
Aggregation * GetOrSetDefault (const opentelemetry::common::KeyValueIterable &attributes, const AttributesProcessor *attributes_processor, nostd::function_ref< std::unique_ptr< Aggregation >()> aggregation_callback)
 
Aggregation * GetOrSetDefault (const MetricAttributes &attributes, nostd::function_ref< std::unique_ptr< Aggregation >()> aggregation_callback)
 
Aggregation * GetOrSetDefault (MetricAttributes &&attributes, nostd::function_ref< std::unique_ptr< Aggregation >()> aggregation_callback)
 
void Set (const opentelemetry::common::KeyValueIterable &attributes, const AttributesProcessor *attributes_processor, std::unique_ptr< Aggregation > aggr)
 Set the value for given key, overwriting the value if already present. More...
 
void Set (const MetricAttributes &attributes, std::unique_ptr< Aggregation > aggr)
 
void Set (MetricAttributes &&attributes, std::unique_ptr< Aggregation > aggr)
 
bool GetAllEnteries (nostd::function_ref< bool(const MetricAttributes &, Aggregation &)> callback) const
 Iterate the hash to yield key and value stored in hash. More...
 
size_t Size ()
 Return the size of hash. More...
 

Constructor & Destructor Documentation

◆ AttributesHashMapWithCustomHash() [1/2]

template<typename CustomHash = MetricAttributesHash>
sdk::metrics::AttributesHashMapWithCustomHash< CustomHash >::AttributesHashMapWithCustomHash ( size_t  attributes_limit = kAggregationCardinalityLimit)
inline

◆ AttributesHashMapWithCustomHash() [2/2]

template<typename CustomHash = MetricAttributesHash>
sdk::metrics::AttributesHashMapWithCustomHash< CustomHash >::AttributesHashMapWithCustomHash ( size_t  attributes_limit = kAggregationCardinalityLimit)
inline

Member Function Documentation

◆ Get() [1/2]

template<typename CustomHash = MetricAttributesHash>
Aggregation* sdk::metrics::AttributesHashMapWithCustomHash< CustomHash >::Get ( const MetricAttributes &  attributes) const
inline

◆ Get() [2/2]

template<typename CustomHash = MetricAttributesHash>
Aggregation* sdk::metrics::AttributesHashMapWithCustomHash< CustomHash >::Get ( const MetricAttributes &  attributes) const
inline

◆ GetAllEnteries() [1/2]

template<typename CustomHash = MetricAttributesHash>
bool sdk::metrics::AttributesHashMapWithCustomHash< CustomHash >::GetAllEnteries ( nostd::function_ref< bool(const MetricAttributes &, Aggregation &)>  callback) const
inline

Iterate the hash to yield key and value stored in hash.

Definition at line 191 of file 9.2/includes/opentelemetry/sdk/metrics/state/attributes_hashmap.h.

◆ GetAllEnteries() [2/2]

template<typename CustomHash = MetricAttributesHash>
bool sdk::metrics::AttributesHashMapWithCustomHash< CustomHash >::GetAllEnteries ( nostd::function_ref< bool(const MetricAttributes &, Aggregation &)>  callback) const
inline

Iterate the hash to yield key and value stored in hash.

Definition at line 191 of file includes/opentelemetry/sdk/metrics/state/attributes_hashmap.h.

◆ GetOrSetDefault() [1/6]

template<typename CustomHash = MetricAttributesHash>
Aggregation* sdk::metrics::AttributesHashMapWithCustomHash< CustomHash >::GetOrSetDefault ( const MetricAttributes &  attributes,
nostd::function_ref< std::unique_ptr< Aggregation >()>  aggregation_callback 
)
inline

◆ GetOrSetDefault() [2/6]

template<typename CustomHash = MetricAttributesHash>
Aggregation* sdk::metrics::AttributesHashMapWithCustomHash< CustomHash >::GetOrSetDefault ( const MetricAttributes &  attributes,
nostd::function_ref< std::unique_ptr< Aggregation >()>  aggregation_callback 
)
inline

◆ GetOrSetDefault() [3/6]

template<typename CustomHash = MetricAttributesHash>
Aggregation* sdk::metrics::AttributesHashMapWithCustomHash< CustomHash >::GetOrSetDefault ( const opentelemetry::common::KeyValueIterable &  attributes,
const AttributesProcessor *  attributes_processor,
nostd::function_ref< std::unique_ptr< Aggregation >()>  aggregation_callback 
)
inline
Returns
the pointer to value for given key if present. If not present, it uses the provided callback to generate value and store in the hash

Definition at line 83 of file 9.2/includes/opentelemetry/sdk/metrics/state/attributes_hashmap.h.

References absl::move().

◆ GetOrSetDefault() [4/6]

template<typename CustomHash = MetricAttributesHash>
Aggregation* sdk::metrics::AttributesHashMapWithCustomHash< CustomHash >::GetOrSetDefault ( const opentelemetry::common::KeyValueIterable &  attributes,
const AttributesProcessor *  attributes_processor,
nostd::function_ref< std::unique_ptr< Aggregation >()>  aggregation_callback 
)
inline
Returns
the pointer to value for given key if present. If not present, it uses the provided callback to generate value and store in the hash

Definition at line 83 of file includes/opentelemetry/sdk/metrics/state/attributes_hashmap.h.

References absl::move().

◆ GetOrSetDefault() [5/6]

template<typename CustomHash = MetricAttributesHash>
Aggregation* sdk::metrics::AttributesHashMapWithCustomHash< CustomHash >::GetOrSetDefault ( MetricAttributes &&  attributes,
nostd::function_ref< std::unique_ptr< Aggregation >()>  aggregation_callback 
)
inline

◆ GetOrSetDefault() [6/6]

template<typename CustomHash = MetricAttributesHash>
Aggregation* sdk::metrics::AttributesHashMapWithCustomHash< CustomHash >::GetOrSetDefault ( MetricAttributes &&  attributes,
nostd::function_ref< std::unique_ptr< Aggregation >()>  aggregation_callback 
)
inline

◆ Has() [1/2]

template<typename CustomHash = MetricAttributesHash>
bool sdk::metrics::AttributesHashMapWithCustomHash< CustomHash >::Has ( const MetricAttributes &  attributes) const
inline
Returns
check if key is present in hash

Definition at line 73 of file includes/opentelemetry/sdk/metrics/state/attributes_hashmap.h.

◆ Has() [2/2]

template<typename CustomHash = MetricAttributesHash>
bool sdk::metrics::AttributesHashMapWithCustomHash< CustomHash >::Has ( const MetricAttributes &  attributes) const
inline
Returns
check if key is present in hash

Definition at line 73 of file 9.2/includes/opentelemetry/sdk/metrics/state/attributes_hashmap.h.

◆ Set() [1/6]

template<typename CustomHash = MetricAttributesHash>
void sdk::metrics::AttributesHashMapWithCustomHash< CustomHash >::Set ( const MetricAttributes &  attributes,
std::unique_ptr< Aggregation >  aggr 
)
inline

◆ Set() [2/6]

template<typename CustomHash = MetricAttributesHash>
void sdk::metrics::AttributesHashMapWithCustomHash< CustomHash >::Set ( const MetricAttributes &  attributes,
std::unique_ptr< Aggregation >  aggr 
)
inline

◆ Set() [3/6]

template<typename CustomHash = MetricAttributesHash>
void sdk::metrics::AttributesHashMapWithCustomHash< CustomHash >::Set ( const opentelemetry::common::KeyValueIterable &  attributes,
const AttributesProcessor *  attributes_processor,
std::unique_ptr< Aggregation >  aggr 
)
inline

Set the value for given key, overwriting the value if already present.

Definition at line 147 of file 9.2/includes/opentelemetry/sdk/metrics/state/attributes_hashmap.h.

References absl::move(), and sdk::metrics::AttributesHashMapWithCustomHash< CustomHash >::Set().

◆ Set() [4/6]

template<typename CustomHash = MetricAttributesHash>
void sdk::metrics::AttributesHashMapWithCustomHash< CustomHash >::Set ( const opentelemetry::common::KeyValueIterable &  attributes,
const AttributesProcessor *  attributes_processor,
std::unique_ptr< Aggregation >  aggr 
)
inline

Set the value for given key, overwriting the value if already present.

Definition at line 147 of file includes/opentelemetry/sdk/metrics/state/attributes_hashmap.h.

References absl::move().

Referenced by sdk::metrics::AttributesHashMapWithCustomHash< CustomHash >::Set().

◆ Set() [5/6]

template<typename CustomHash = MetricAttributesHash>
void sdk::metrics::AttributesHashMapWithCustomHash< CustomHash >::Set ( MetricAttributes &&  attributes,
std::unique_ptr< Aggregation >  aggr 
)
inline

◆ Set() [6/6]

template<typename CustomHash = MetricAttributesHash>
void sdk::metrics::AttributesHashMapWithCustomHash< CustomHash >::Set ( MetricAttributes &&  attributes,
std::unique_ptr< Aggregation >  aggr 
)
inline

◆ Size() [1/2]

template<typename CustomHash = MetricAttributesHash>
size_t sdk::metrics::AttributesHashMapWithCustomHash< CustomHash >::Size ( )
inline

Return the size of hash.

Definition at line 207 of file 9.2/includes/opentelemetry/sdk/metrics/state/attributes_hashmap.h.

◆ Size() [2/2]

template<typename CustomHash = MetricAttributesHash>
size_t sdk::metrics::AttributesHashMapWithCustomHash< CustomHash >::Size ( )
inline

Return the size of hash.

Definition at line 207 of file includes/opentelemetry/sdk/metrics/state/attributes_hashmap.h.


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