IPrototypePlugin is an optional interface implemented by IPlugin objects that describes generic prototype layers implemented inside the plugin.
More...
#include <nvneural/PluginTypes.h>
|
using | RefCount = std::uint32_t |
| Typedef used to track the number of active references to an object.
|
|
using | TypeId = std::uint64_t |
| Every interface must define a unique TypeId. This should be randomized.
|
|
virtual | ~IRefObject ()=default |
| A protected destructor prevents accidental stack-allocation of IRefObjects or use with other smart pointer classes like std::unique_ptr.
|
|
IPrototypePlugin is an optional interface implemented by IPlugin objects that describes generic prototype layers implemented inside the plugin.
◆ getPrototypeDesc()
virtual const PrototypeDesc* nvneural::IPrototypePlugin::getPrototypeDesc |
( |
std::size_t |
prototypeIndex | ) |
const |
|
pure virtualnoexcept |
Returns a pointer to an PrototypeDesc object by index.
- Parameters
-
prototypeIndex | Index to retrieve; must be less than the value of getPrototypeDesc |
- Returns
- A pointer to PrototypeDesc that will remain valid through the lifespan of this object, or nullptr if prototypeIndex is out of bounds.
◆ getPrototypeDescCount()
virtual std::size_t nvneural::IPrototypePlugin::getPrototypeDescCount |
( |
| ) |
const |
|
pure virtualnoexcept |
Returns the number of PrototypeDesc objects accessible through this interface.
The value returned by this function must remain constant throughout the lifespan of this plugin object.
◆ getPrototypeRuntimeValidator()
virtual PrototypeRuntimeValidatorFunction nvneural::IPrototypePlugin::getPrototypeRuntimeValidator |
( |
std::size_t |
prototypeIndex | ) |
const |
|
pure virtualnoexcept |
Returns a PrototypeRuntimeValidatorFunction function by index.
- Parameters
-
prototypeIndex | Index to retrieve; must be less than the value of getPrototypeDesc |
- Returns
- A function pointer of PrototypeRuntimeValidatorFunction that will remain valid through the lifespan of this object, or nullptr if prototypeIndex is out of bounds.
The documentation for this class was generated from the following file: