ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cloudViewer::core::CUDAScopedDevice Class Reference

When CUDA is not enabled, this is a dummy class. More...

#include <CUDAUtils.h>

Public Member Functions

 CUDAScopedDevice (int device_id)
 
 CUDAScopedDevice (const Device &device)
 
 ~CUDAScopedDevice ()
 
 CUDAScopedDevice (const CUDAScopedDevice &)=delete
 
CUDAScopedDeviceoperator= (const CUDAScopedDevice &)=delete
 

Detailed Description

When CUDA is not enabled, this is a dummy class.

Definition at line 214 of file CUDAUtils.h.

Constructor & Destructor Documentation

◆ CUDAScopedDevice() [1/3]

cloudViewer::core::CUDAScopedDevice::CUDAScopedDevice ( int  device_id)
inlineexplicit

Definition at line 216 of file CUDAUtils.h.

◆ CUDAScopedDevice() [2/3]

cloudViewer::core::CUDAScopedDevice::CUDAScopedDevice ( const Device device)
inlineexplicit

Definition at line 217 of file CUDAUtils.h.

◆ ~CUDAScopedDevice()

cloudViewer::core::CUDAScopedDevice::~CUDAScopedDevice ( )
inline

Definition at line 218 of file CUDAUtils.h.

◆ CUDAScopedDevice() [3/3]

cloudViewer::core::CUDAScopedDevice::CUDAScopedDevice ( const CUDAScopedDevice )
delete

Member Function Documentation

◆ operator=()

CUDAScopedDevice& cloudViewer::core::CUDAScopedDevice::operator= ( const CUDAScopedDevice )
delete

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