VTK-m  2.2
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 
18 
19 namespace vtkm
20 {
21 namespace cont
22 {
23 
24 
45  const vtkm::cont::UnknownArrayHandle& numComponentsArray,
47  vtkm::Id& componentsArraySize,
49 
51  const vtkm::cont::UnknownArrayHandle& numComponentsArray,
54 
56  const vtkm::cont::UnknownArrayHandle& numComponentsArray,
57  vtkm::Id& componentsArraySize,
59 
61  const vtkm::cont::UnknownArrayHandle& numComponentsArray,
63 
64 } // namespace vtkm::cont
65 } // namespace vtkm
66 
67 #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:430
vtkm::cont::ConvertNumComponentsToOffsets
void ConvertNumComponentsToOffsets(const vtkm::cont::UnknownArrayHandle &numComponentsArray, vtkm::cont::ArrayHandle< vtkm::Id > &offsetsArray, vtkm::Id &componentsArraySize, vtkm::cont::DeviceAdapterId device=vtkm::cont::DeviceAdapterTagAny{})
ConvertNumComponentsToOffsets takes an array of Vec sizes (i.e.
UnknownArrayHandle.h
VTKM_CONT_EXPORT
#define VTKM_CONT_EXPORT
Definition: vtkm_cont_export.h:44
vtkm_cont_export.h
vtkm::Id
vtkm::Int64 Id
Base type to use to index arrays.
Definition: Types.h:227
vtkm::cont::DeviceAdapterTagAny
Tag for a device adapter used to specify that any device may be used for an operation.
Definition: DeviceAdapterTag.h:180
vtkm::cont::DeviceAdapterId
An object used to specify a device.
Definition: DeviceAdapterTag.h:58