VTK-m  2.0
TypeCheckTagAtomicArray.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_arg_TypeCheckTagAtomicArray_h
11 #define vtk_m_cont_arg_TypeCheckTagAtomicArray_h
12 
14 
15 #include <vtkm/List.h>
16 
17 #include <vtkm/cont/ArrayHandle.h>
18 #include <vtkm/cont/AtomicArray.h>
19 
20 namespace vtkm
21 {
22 namespace cont
23 {
24 namespace arg
25 {
26 
31 struct TypeCheckTagAtomicArray;
32 
33 template <typename ArrayType>
34 struct TypeCheck<TypeCheckTagAtomicArray, ArrayType>
35 {
36  static constexpr bool value = false;
37 };
38 
39 template <typename T>
40 struct TypeCheck<TypeCheckTagAtomicArray, vtkm::cont::ArrayHandle<T, vtkm::cont::StorageTagBasic>>
41 {
43 };
44 
45 }
46 }
47 } // namespace vtkm::cont::arg
48 
49 #endif //vtk_m_cont_arg_TypeCheckTagAtomicArray_h
vtkm::cont::ArrayHandle
Manages an array-worth of data.
Definition: ArrayHandle.h:283
ArrayHandle.h
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::ListHas
typename detail::ListHasImpl< List, T >::type ListHas
Checks to see if the given T is in the list pointed to by List.
Definition: List.h:571
vtkm::cont::arg::TypeCheck
Class for checking that a type matches the semantics for an argument.
Definition: TypeCheck.h:34
vtkm::cont::arg::TypeCheck::value
static constexpr bool value
The static constant boolean value is set to true if the type is valid for the given check tag and fal...
Definition: TypeCheck.h:39
TypeCheck.h
List.h
AtomicArray.h