NVIDIA NvNeural SDK
2022.2
GPU inference framework for NVIDIA Nsight Deep Learning Designer
|
BufferedLogger is a default implementation of IBufferedLogger. More...
#include <BufferedLogger.h>
Public Member Functions | |
IRefObject::RefCount | addRef () const noexcept |
Increments the object's reference count. More... | |
NeuralResult | forwardBufferedLogs (ILogger *pDestinationLogger) noexcept |
Forwards stored logs to a target logger. More... | |
NeuralResult | log (VerbosityLevel verbosity, const char *format,...) noexcept |
Logs an informational message. More... | |
NeuralResult | logError (VerbosityLevel verbosity, const char *format,...) noexcept |
Logs an error message. More... | |
NeuralResult | logWarning (VerbosityLevel verbosity, const char *format,...) noexcept |
Logs a warning message. More... | |
const void * | queryInterface (IRefObject::TypeId interface) const noexcept |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
void * | queryInterface (IRefObject::TypeId interface) noexcept |
Retrieves a new object interface pointer. More... | |
IRefObject::RefCount | release () const noexcept |
Decrements the object's reference count and destroy the object if the reference count reaches zero. More... | |
ILogger::VerbosityLevel | verbosity () const noexcept |
Retrieves the current verbosity level. More... | |
Additional Inherited Members | |
![]() | |
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. | |
![]() | |
using | VerbosityLevel = std::int32_t |
Typedef for verbosity levels. More... | |
![]() | |
static const IRefObject::TypeId | typeID = 0xb19309bc19e64b5dul |
Interface TypeId for InterfaceOf purposes. | |
![]() | |
static const TypeId | typeID = 0x14ecc3f9de638e1dul |
Interface TypeId for InterfaceOf purposes. | |
![]() | |
static const IRefObject::TypeId | typeID = 0xd74335d06aa1ba61ul |
Interface TypeId for InterfaceOf purposes. | |
![]() | |
virtual | ~IRefObject ()=default |
A protected destructor prevents accidental stack-allocation of IRefObjects or use with other smart pointer classes like std::unique_ptr. | |
BufferedLogger is a default implementation of IBufferedLogger.
It does not use RefObjectBase to prevent RefObjectBase lifecycle logging from reentering itself.
|
virtualnoexcept |
Increments the object's reference count.
Implements nvneural::IRefObject.
|
virtualnoexcept |
Forwards stored logs to a target logger.
pDestinationLogger | Logger to forward to. |
Implements nvneural::IBufferedLogger.
|
virtualnoexcept |
Logs an informational message.
verbosity | Verbosity level of the message. |
format | Printf-style format string. |
Implements nvneural::ILogger.
|
virtualnoexcept |
Logs an error message.
Error messages indicate a serious failure has occurred and the user's workflow must stop. Recoverable or expected failures should probably be warnings, not errors.
Under normal conditions, plugins should not emit error messages at verbosity level 0.
Error messages do not necessarily have to be fatal errors and result in application exit; a failure to export a model because of insufficient disk space is a legitimate error message but would not require the model editor to exit.
verbosity | Verbosity level of the message. |
format | Printf-style format string. |
Implements nvneural::ILogger.
|
virtualnoexcept |
Logs a warning message.
Warning messages indicate transient failures that the user should be aware of, but which did not result in failure of a major operation.
Under normal conditions, plugins should not emit warning messages at verbosity level 0.
verbosity | Verbosity level of the message. |
format | Printf-style format string. |
Implements nvneural::ILogger.
|
virtualnoexcept |
Retrieves a new object interface pointer.
interface | TypeId of the interface to convert to. |
Implements nvneural::IRefObject.
|
virtualnoexcept |
Decrements the object's reference count and destroy the object if the reference count reaches zero.
Implements nvneural::IRefObject.
|
virtualnoexcept |
Retrieves the current verbosity level.
Implements nvneural::ILogger.