VTK-m  2.0
ConvertNumComponentsToOffsets.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_ConvertNumComponentsToOffsets_h
11 #define vtk_m_cont_ConvertNumComponentsToOffsets_h
12 
13 #include <vtkm/cont/ArrayHandle.h>
16 
17 #include <vtkm/cont/vtkm_cont_export.h>
18 
19 namespace vtkm
20 {
21 namespace cont
22 {
23 
24 
45 VTKM_CONT_EXPORT void ConvertNumComponentsToOffsets(
46  const vtkm::cont::UnknownArrayHandle& numComponentsArray,
48  vtkm::Id& componentsArraySize,
49  vtkm::cont::DeviceAdapterId device = vtkm::cont::DeviceAdapterTagAny{});
50 
51 VTKM_CONT_EXPORT void ConvertNumComponentsToOffsets(
52  const vtkm::cont::UnknownArrayHandle& numComponentsArray,
54  vtkm::cont::DeviceAdapterId device = vtkm::cont::DeviceAdapterTagAny{});
55 
57  const vtkm::cont::UnknownArrayHandle& numComponentsArray,
58  vtkm::Id& componentsArraySize,
59  vtkm::cont::DeviceAdapterId device = vtkm::cont::DeviceAdapterTagAny{});
60 
62  const vtkm::cont::UnknownArrayHandle& numComponentsArray,
63  vtkm::cont::DeviceAdapterId device = vtkm::cont::DeviceAdapterTagAny{});
64 
66 
67 } // namespace vtkm::cont
68 } // namespace vtkm
69 
70 #endif // vtk_m_cont_ConvertNumComponentsToOffsets_h
vtkm::cont::ArrayHandle< vtkm::Id >
ArrayHandle.h
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
DeviceAdapterTag.h
vtkm::cont::UnknownArrayHandle
An ArrayHandle of an unknown value type and storage.
Definition: UnknownArrayHandle.h:406
vtkm::Id
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
UnknownArrayHandle.h
vtkm::cont::DeviceAdapterId
Definition: DeviceAdapterTag.h:52
vtkm::cont::ConvertNumComponentsToOffsets
VTKM_CONT_EXPORT void ConvertNumComponentsToOffsets(const vtkm::cont::UnknownArrayHandle &numComponentsArray, vtkm::cont::ArrayHandle< vtkm::Id > &offsetsArray, vtkm::Id &componentsArraySize, vtkm::cont::DeviceAdapterId device=vtkm::cont::DeviceAdapterTagAny{})