Viskores  1.0
ErrorBadDevice.h
Go to the documentation of this file.
1 //============================================================================
2 // The contents of this file are covered by the Viskores license. See
3 // LICENSE.txt for details.
4 //
5 // By contributing to this file, all contributors agree to the Developer
6 // Certificate of Origin Version 1.1 (DCO 1.1) as stated in DCO.txt.
7 //============================================================================
8 
9 //============================================================================
10 // Copyright (c) Kitware, Inc.
11 // All rights reserved.
12 // See LICENSE.txt for details.
13 //
14 // This software is distributed WITHOUT ANY WARRANTY; without even
15 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 // PURPOSE. See the above copyright notice for more information.
17 //============================================================================
18 #ifndef viskores_cont_ErrorBadDevice_h
19 #define viskores_cont_ErrorBadDevice_h
20 
21 #include <viskores/cont/Error.h>
22 
25 
26 namespace viskores
27 {
28 namespace cont
29 {
30 
31 
33 
37 class VISKORES_ALWAYS_EXPORT ErrorBadDevice : public Error
38 {
39 public:
40  ErrorBadDevice(const std::string& message)
41  : Error(message)
42  {
43  }
44 };
45 
47 
53 //
54 VISKORES_CONT_EXPORT void throwFailedRuntimeDeviceTransfer(const std::string& className,
56 }
57 } // namespace viskores::cont
58 
59 #endif // viskores_cont_ErrorBadDevice_h
DeviceAdapterTag.h
viskores::cont::ErrorBadDevice::ErrorBadDevice
ErrorBadDevice(const std::string &message)
Definition: ErrorBadDevice.h:40
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
Error.h
viskores::cont::throwFailedRuntimeDeviceTransfer
void throwFailedRuntimeDeviceTransfer(const std::string &className, viskores::cont::DeviceAdapterId device)
Throws an ErrorBadeDevice exception with the following message: "Viskores was unable to transfer clas...
viskores::cont::ErrorBadDevice
This class is thrown when Viskores performs an operation that is not supported on the current device.
Definition: ErrorBadDevice.h:37
VISKORES_SILENCE_WEAK_VTABLE_WARNING_END
#define VISKORES_SILENCE_WEAK_VTABLE_WARNING_END
Definition: ExportMacros.h:128
viskores::cont::DeviceAdapterId
An object used to specify a device.
Definition: DeviceAdapterTag.h:66
VISKORES_SILENCE_WEAK_VTABLE_WARNING_START
#define VISKORES_SILENCE_WEAK_VTABLE_WARNING_START
Definition: ExportMacros.h:127
viskores::cont::Error
The superclass of all exceptions thrown by any Viskores function or method.
Definition: Error.h:41
viskores_cont_export.h