VART-X  0.3.0
vart::DeviceImplBase Class Referenceabstract

Abstract interface for device implementation used by Device. More...

#include <vart_device_impl_base.hpp>

Public Member Functions

 DeviceImplBase ()=delete
 Default construction is disabled. More...
 
 DeviceImplBase (int32_t dev_idx)
 
virtual ~DeviceImplBase ()
 Virtual destructor to ensure proper cleanup of derived implementations. More...
 
virtual int32_t get_device_index ()=0
 get_device_index() - Retrieves device index of current instance More...
 

Protected Attributes

int32_t device_index
 Device index for this implementation. More...
 

Detailed Description

Abstract interface for device implementation used by Device.

Note
Applications should use vart::Device rather than this type directly, unless extending or integrating a new backend.

Constructor & Destructor Documentation

◆ DeviceImplBase() [1/2]

vart::DeviceImplBase::DeviceImplBase ( )
delete

Default construction is disabled.

◆ DeviceImplBase() [2/2]

vart::DeviceImplBase::DeviceImplBase ( int32_t  dev_idx)
inline

◆ ~DeviceImplBase()

virtual vart::DeviceImplBase::~DeviceImplBase ( )
inlinevirtual

Virtual destructor to ensure proper cleanup of derived implementations.

Member Function Documentation

◆ get_device_index()

virtual int32_t vart::DeviceImplBase::get_device_index ( )
pure virtual

get_device_index() - Retrieves device index of current instance

Returns
Returns the device index

Member Data Documentation

◆ device_index

int32_t vart::DeviceImplBase::device_index
protected

Device index for this implementation.


The documentation for this class was generated from the following file: