NVIDIA NvNeural SDK
2022.2
GPU inference framework for NVIDIA Nsight Deep Learning Designer
|
Helper class for RefObjectBase indicating direct inheritance. More...
#include <nvneural/RefObject.h>
Public Types | |
using | BaseType = TInterface |
Provide TInterface as a recommended base type. More... | |
Static Public Member Functions | |
Helper functions for queryInterface | |
These functions return the appropriately-adjusted void* or const void* for casting an object to the specific interface type provided as TInterface, and return nullptr if casting to any other interface type ID. They are implementation details of the RefObjectBase version of queryInterface. You should not need to modify them. | |
template<typename TObject > | |
static void * | querySingleInterface (IRefObject::TypeId interfaceId, TObject *me) |
Non-const querySingleInterface implementation. More... | |
template<typename TObject > | |
static const void * | querySingleInterface (IRefObject::TypeId interfaceId, const TObject *me) |
Const querySingleInterface implementation. More... | |
Static Public Attributes | |
static const bool | EnableLogging = true |
This trait normally allows lifecycle logging. | |
Helper class for RefObjectBase indicating direct inheritance.
Include this in the RefObjectBase parameter list; your resulting object will derive publicly from TInterface, and provide automatic support for queryInterface.
Use this only for leaf interfaces; if you add Implements<> for multiple versions of the same interface tree, you will observe "ambiguous base class" errors when building.
TInterface | Interface to inherit from |
using nvneural::refobj::Implements< TInterface >::BaseType = TInterface |
Provide TInterface as a recommended base type.
RefObjectBase<Implements<TInterface>> will inherit from TInterface.
|
inlinestatic |
Const querySingleInterface implementation.
interfaceId | Interface ID to cast to ("IInterface") |
me | Object to cast |
|
inlinestatic |
Non-const querySingleInterface implementation.
interfaceId | Interface ID to cast to ("IInterface") |
me | Object to cast |