![]() |
OnnxRuntime
|
Used internally by the C++ API. C++ wrapper types inherit from this. More...
#include <onnxruntime_cxx_api.h>
Public Types | |
| using | contained_type = T |
Public Member Functions | |
| Base ()=default | |
| Base (T *p) | |
| ~Base () | |
| operator T* () | |
| operator const T * () const | |
| T * | release () |
| Releases ownership of the contained pointer. More... | |
Protected Member Functions | |
| Base (const Base &)=delete | |
| Base & | operator= (const Base &)=delete |
| Base (Base &&v) noexcept | |
| void | operator= (Base &&v) noexcept |
Protected Attributes | |
| T * | p_ {} |
Friends | |
| template<typename > | |
| struct | Unowned |
Used internally by the C++ API. C++ wrapper types inherit from this.
This is a zero cost abstraction to wrap the C API objects and delete them on destruction. There is a secondary class 'Unowned<T>' that is used to prevent deletion on destruction (Used for return types that are not owned by the caller)
| using Ort::Base< T >::contained_type = T |
|
inline |
|
inline |
|
inline |
Releases ownership of the contained pointer.
|
protected |