![]() |
ONNX Runtime
|
Wrapper around OrtKeyValuePairs. More...
#include <onnxruntime_cxx_api.h>
Public Member Functions | |
| KeyValuePairs (std::nullptr_t) | |
| KeyValuePairs (OrtKeyValuePairs *p) | |
| Take ownership of a pointer created by C API. | |
| KeyValuePairs () | |
| Wraps OrtApi::CreateKeyValuePairs. | |
| KeyValuePairs (const std::unordered_map< std::string, std::string > &kv_pairs) | |
| Wraps OrtApi::CreateKeyValuePairs and OrtApi::AddKeyValuePair. | |
| void | Add (const char *key, const char *value) |
| Wraps OrtApi::AddKeyValuePair. | |
| void | Remove (const char *key) |
| Wraps OrtApi::RemoveKeyValuePair. | |
| ConstKeyValuePairs | GetConst () const |
Public Member Functions inherited from Ort::detail::KeyValuePairsImpl< OrtKeyValuePairs > | |
| const char * | GetValue (const char *key) const |
| std::unordered_map< std::string, std::string > | GetKeyValuePairs () const |
| void | GetKeyValuePairs (std::vector< const char * > &keys, std::vector< const char * > &values) const |
Public Member Functions inherited from Ort::detail::Base< T > | |
| constexpr | Base ()=default |
| constexpr | Base (contained_type *p) noexcept |
| ~Base () | |
| Base (const Base &)=delete | |
| Base & | operator= (const Base &)=delete |
| Base (Base &&v) noexcept | |
| Base & | operator= (Base &&v) noexcept |
| constexpr | operator contained_type * () const noexcept |
| constexpr contained_type & | operator* () const noexcept |
| contained_type * | release () |
| Relinquishes ownership of the contained C object pointer The underlying object is not destroyed. | |
Additional Inherited Members | |
Public Types inherited from Ort::detail::KeyValuePairsImpl< OrtKeyValuePairs > | |
| using | B = Ort::detail::Base< OrtKeyValuePairs > |
Public Types inherited from Ort::detail::Base< T > | |
| using | contained_type = T |
Protected Attributes inherited from Ort::detail::Base< T > | |
| contained_type * | p_ {} |
Wrapper around OrtKeyValuePairs.
|
inlineexplicit |
No instance is created
|
inlineexplicit |
Take ownership of a pointer created by C API.
|
explicit |
Wraps OrtApi::CreateKeyValuePairs.
|
explicit |
| void Ort::KeyValuePairs::Add | ( | const char * | key, |
| const char * | value | ||
| ) |
Wraps OrtApi::AddKeyValuePair.
|
inline |
| void Ort::KeyValuePairs::Remove | ( | const char * | key | ) |
Wraps OrtApi::RemoveKeyValuePair.