OpenVDB 13.1.0
Loading...
Searching...
No Matches
DeviceGuard Class Reference

RAII class that caches/restores the current device at construction/destruction. More...

#include <nanovdb/cuda/DeviceMesh.h>

Public Member Functions

 DeviceGuard ()
 ~DeviceGuard ()
 DeviceGuard (const DeviceGuard &)=delete
 DeviceGuard is not copyable nor movable.
DeviceGuardoperator= (const DeviceGuard &)=delete
 DeviceGuard is not copyable nor movable.
 DeviceGuard (DeviceGuard &&other)=delete
 DeviceGuard is not copyable nor movable.
DeviceGuardoperator= (DeviceGuard &&other)=delete
 DeviceGuard is not copyable nor movable.

Detailed Description

RAII class that caches/restores the current device at construction/destruction.

Constructor & Destructor Documentation

◆ DeviceGuard() [1/3]

DeviceGuard ( )
inline

◆ ~DeviceGuard()

~DeviceGuard ( )
inline

◆ DeviceGuard() [2/3]

DeviceGuard ( const DeviceGuard & )
delete

DeviceGuard is not copyable nor movable.

◆ DeviceGuard() [3/3]

DeviceGuard ( DeviceGuard && other)
delete

DeviceGuard is not copyable nor movable.

Member Function Documentation

◆ operator=() [1/2]

DeviceGuard & operator= ( const DeviceGuard & )
delete

DeviceGuard is not copyable nor movable.

◆ operator=() [2/2]

DeviceGuard & operator= ( DeviceGuard && other)
delete

DeviceGuard is not copyable nor movable.