Descriptor interface.
More...
#include <IDescriptor.h>
|
virtual uint32_t | getModelVersion () const noexcept=0 |
| Get algorithm model version this descriptor was created with.
|
|
virtual DescriptorType | getDescriptorType () const noexcept=0 |
| Get type of descriptor.
|
|
virtual uint32_t | getDescriptorLength () const noexcept=0 |
| return size of descriptor in bytes.
|
|
virtual bool | getDescriptor (uint8_t *buffer) const noexcept=0 |
| Copy descriptor data to user provided buffer.
|
|
virtual void | setDescriptor (const uint8_t *buffer) noexcept=0 |
| Copy descriptor from user providedbuffer.
|
|
virtual void | clear () noexcept=0 |
| Clear object data.
|
|
virtual IRefCounted * | getParentObject () const noexcept=0 |
| Get parent object (one that has created this).
|
|
virtual void | getSize (Sizer &sizer, uint32_t flags=Default) const noexcept=0 |
| Estimate size of this object binary data.
|
|
virtual Result< Error > | load (IArchive *archive, uint32_t flags=Default)=0 |
| Load object from archive.
|
|
virtual Result< Error > | save (IArchive *archive, uint32_t flags=Default) const =0 |
| Save object to archive.
|
|
virtual int32_t | retain () noexcept=0 |
| Increase strong reference count.
|
|
virtual int32_t | retainLocked () noexcept=0 |
| Increase strong reference count thread safely.
|
|
virtual int32_t | release () noexcept=0 |
| Decrease strong reference count.
|
|
virtual int32_t | getRefCount () const noexcept=0 |
| Get actual strong reference count.
|
|
virtual int32_t | retainWeak () noexcept=0 |
| Increase weak reference count.
|
|
virtual int32_t | releaseWeak () noexcept=0 |
| Decrease weak reference count.
|
|
virtual int32_t | getWeakRefCount () const noexcept=0 |
| Get actual weak reference count.
|
|
Descriptor interface.
Used for matching.
◆ getDescriptor()
virtual bool fsdk::IDescriptor::getDescriptor |
( |
uint8_t * | buffer | ) |
const |
|
pure virtualnoexcept |
Copy descriptor data to user provided buffer.
- Parameters
-
[out] | buffer | user provided buffer. |
- Returns
- true if OK, and false if ERROR.
- Note
- This method is thread safe.
-
buffer must be preallocated by client code.
◆ getDescriptorLength()
virtual uint32_t fsdk::IDescriptor::getDescriptorLength |
( |
| ) |
const |
|
pure virtualnoexcept |
return size of descriptor in bytes.
- Returns
- size of descriptor in bytes.
- Note
- This method is thread safe.
◆ getDescriptorType()
Get type of descriptor.
- Returns
- type as enum.
- See also
- DescriptorType for details.
◆ getModelVersion()
virtual uint32_t fsdk::IDescriptor::getModelVersion |
( |
| ) |
const |
|
pure virtualnoexcept |
Get algorithm model version this descriptor was created with.
- Returns
- Version as integral number.
◆ setDescriptor()
virtual void fsdk::IDescriptor::setDescriptor |
( |
const uint8_t * | buffer | ) |
|
|
pure virtualnoexcept |
Copy descriptor from user providedbuffer.
- Parameters
-
[in] | buffer | user provided buffer. |
The documentation for this struct was generated from the following file: