IDisposable#
-
namespace Itala
-
struct IDisposable#
- #include <IDisposable.h>
Interface representing a disposable object, e.g. the ISystem, IDevice and IImage interfaces. Disposable objects require to be disposed by calling the IDisposable::Dispose method instead of the “delete” operator. This way, their destruction is managed in a safe way within ItalaApi.
Subclassed by Itala::IDefectDetection, Itala::IDevice, Itala::IImage, Itala::ISystem
Public Functions
-
virtual void Dispose() = 0#
When an IDisposable object is no longer required, this method MUST be called. If the instance is owned by a smart pointer, this function must be used as deleter or, in general, called on destruction of the RAII owner.
Protected Functions
-
inline virtual ~IDisposable()#
-
virtual void Dispose() = 0#
-
struct IDisposable#