Viskores  1.0
ConvertNumComponentsToOffsets.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_ConvertNumComponentsToOffsets_h
19 #define viskores_cont_ConvertNumComponentsToOffsets_h
20 
24 
26 
27 namespace viskores
28 {
29 namespace cont
30 {
31 
32 
52 VISKORES_CONT_EXPORT void ConvertNumComponentsToOffsets(
53  const viskores::cont::UnknownArrayHandle& numComponentsArray,
55  viskores::Id& componentsArraySize,
57 
58 VISKORES_CONT_EXPORT void ConvertNumComponentsToOffsets(
59  const viskores::cont::UnknownArrayHandle& numComponentsArray,
62 
64  const viskores::cont::UnknownArrayHandle& numComponentsArray,
65  viskores::Id& componentsArraySize,
67 
69  const viskores::cont::UnknownArrayHandle& numComponentsArray,
71 
72 } // namespace viskores::cont
73 } // namespace viskores
74 
75 #endif // viskores_cont_ConvertNumComponentsToOffsets_h
ArrayHandle.h
DeviceAdapterTag.h
viskores::cont::ArrayHandle< viskores::Id >
viskores::cont::DeviceAdapterTagAny
Tag for a device adapter used to specify that any device may be used for an operation.
Definition: DeviceAdapterTag.h:194
viskores::Id
viskores::Int64 Id
Base type to use to index arrays.
Definition: Types.h:235
UnknownArrayHandle.h
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
viskores::cont::ConvertNumComponentsToOffsets
void ConvertNumComponentsToOffsets(const viskores::cont::UnknownArrayHandle &numComponentsArray, viskores::cont::ArrayHandle< viskores::Id > &offsetsArray, viskores::Id &componentsArraySize, viskores::cont::DeviceAdapterId device=viskores::cont::DeviceAdapterTagAny{})
ConvertNumComponentsToOffsets takes an array of Vec sizes (i.e.
viskores::cont::DeviceAdapterId
An object used to specify a device.
Definition: DeviceAdapterTag.h:66
viskores::cont::UnknownArrayHandle
An ArrayHandle of an unknown value type and storage.
Definition: UnknownArrayHandle.h:451
viskores_cont_export.h