![]() |
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 |
![]() | |
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 |
![]() | |
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 |
contained_type * | release () |
Relinquishes ownership of the contained C object pointer The underlying object is not destroyed. | |
Additional Inherited Members | |
![]() | |
using | B = Ort::detail::Base< OrtKeyValuePairs > |
![]() | |
using | contained_type = 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.