VTK-m  2.0
ErrorBadDevice.h
Go to the documentation of this file.
1 //============================================================================
2 // Copyright (c) Kitware, Inc.
3 // All rights reserved.
4 // See LICENSE.txt for details.
5 //
6 // This software is distributed WITHOUT ANY WARRANTY; without even
7 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 // PURPOSE. See the above copyright notice for more information.
9 //============================================================================
10 #ifndef vtk_m_cont_ErrorBadDevice_h
11 #define vtk_m_cont_ErrorBadDevice_h
12 
13 #include <vtkm/cont/Error.h>
14 
16 #include <vtkm/cont/vtkm_cont_export.h>
17 
18 namespace vtkm
19 {
20 namespace cont
21 {
22 
23 
25 
30 {
31 public:
32  ErrorBadDevice(const std::string& message)
33  : Error(message)
34  {
35  }
36 };
37 
39 
45 //
46 VTKM_CONT_EXPORT void throwFailedRuntimeDeviceTransfer(const std::string& className,
48 }
49 } // namespace vtkm::cont
50 
51 #endif // vtk_m_cont_ErrorBadDevice_h
VTKM_SILENCE_WEAK_VTABLE_WARNING_START
#define VTKM_SILENCE_WEAK_VTABLE_WARNING_START
Definition: ExportMacros.h:119
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
VTKM_SILENCE_WEAK_VTABLE_WARNING_END
#define VTKM_SILENCE_WEAK_VTABLE_WARNING_END
Definition: ExportMacros.h:120
DeviceAdapterTag.h
vtkm::cont::Error
The superclass of all exceptions thrown by any VTKm function or method.
Definition: Error.h:33
Error.h
vtkm::cont::ErrorBadDevice::ErrorBadDevice
ErrorBadDevice(const std::string &message)
Definition: ErrorBadDevice.h:32
vtkm::cont::DeviceAdapterId
Definition: DeviceAdapterTag.h:52
VTKM_ALWAYS_EXPORT
#define VTKM_ALWAYS_EXPORT
Definition: ExportMacros.h:92
vtkm::cont::ErrorBadDevice
This class is thrown when VTK-m performs an operation that is not supported on the current device.
Definition: ErrorBadDevice.h:29
vtkm::cont::throwFailedRuntimeDeviceTransfer
VTKM_SILENCE_WEAK_VTABLE_WARNING_END VTKM_CONT_EXPORT void throwFailedRuntimeDeviceTransfer(const std::string &className, vtkm::cont::DeviceAdapterId device)
Throws an ErrorBadeDevice exception with the following message: "VTK-m was unable to transfer classNa...