NVIDIA NvNeural SDK  2022.2
GPU inference framework for NVIDIA Nsight Deep Learning Designer
RefObject.h File Reference

Standard implementation for IRefObject-derived objects. More...

#include <atomic>
#include <utility>

Go to the source code of this file.

Classes

struct  nvneural::refobj::DisableLifecycleLogging::BaseType
 No base types are provided by this trait. More...
 
struct  nvneural::refobj::IndirectlyImplements< TInterface, TIntermediateType >::BaseType
 Provide an empty struct as a recommended base type. More...
 
struct  nvneural::refobj::DisableLifecycleLogging
 Disables log messages when the object refcount changes. More...
 
struct  nvneural::refobj::Implements< TInterface >
 Helper class for RefObjectBase indicating direct inheritance. More...
 
struct  nvneural::refobj::IndirectlyImplements< TInterface, TIntermediateType >
 Helper class for RefObjectBase indicating interface support without direct inheritance. More...
 
struct  nvneural::refobj::PublicBase< TBaseType >
 Helper class for RefObjectBase indicating direct inheritance without providing interfaces. More...
 
struct  nvneural::refobj::RefObjectBase< ParameterList >
 Parameterized base class implementing common IRefObject operations. More...
 

Macros

#define NVNEURAL_REFOBJ_REFERENCE_CALLBACKS   0
 Define this macro to a nonzero value to enable virtualized addRefCallback/releaseCallback members inside RefObjectBase. More...
 

Functions

ILoggernvneural::DefaultLogger ()
 Returns a pointer to the default logger for this module. More...
 

Detailed Description

Standard implementation for IRefObject-derived objects.

Macro Definition Documentation

◆ NVNEURAL_REFOBJ_REFERENCE_CALLBACKS

#define NVNEURAL_REFOBJ_REFERENCE_CALLBACKS   0

Define this macro to a nonzero value to enable virtualized addRefCallback/releaseCallback members inside RefObjectBase.

These can be overridden in the derived class to provide object- specific lifecycle callbacks when the reference count changes. Most applications will not need this functionality; it exists as a debugging aid.

Function Documentation

◆ DefaultLogger()

ILogger * nvneural::DefaultLogger ( )

Returns a pointer to the default logger for this module.

If no logger has been assigned via IPlugin::setDefaultLogger or SetDefaultLogger, the logger will silently ignore all messages sent to it.