Go to the documentation of this file.
10 #ifndef vtk_m_cont_ArrayHandleIndex_h
11 #define vtk_m_cont_ArrayHandleIndex_h
39 using StorageTagIndexSuperclass =
65 internal::FunctorToArrayHandleImplicitBuffers(
vtkm::internal::IndexFunctor{}, length))
81 struct ArrayRangeComputeImpl;
89 bool computeFiniteRange,
94 struct ArrayRangeComputeMagnitudeImpl;
102 bool computeFiniteRange,
105 auto rangeAH = ArrayRangeComputeImpl<vtkm::cont::StorageTagIndex>{}(
106 input, maskArray, computeFiniteRange, device);
107 return rangeAH.ReadPortal().Get(0);
126 struct SerializableTypeString<
vtkm::cont::ArrayHandleIndex>
128 static VTKM_CONT std::string
Get() {
return "AH_Index"; }
132 struct SerializableTypeString<
vtkm::cont::ArrayHandle<vtkm::Id, vtkm::cont::StorageTagIndex>>
133 : SerializableTypeString<vtkm::cont::ArrayHandleIndex>
143 struct Serialization<
vtkm::cont::ArrayHandleIndex>
149 static VTKM_CONT void save(BinaryBuffer& bb,
const BaseType& obj)
151 vtkmdiy::save(bb, obj.GetNumberOfValues());
164 struct Serialization<
vtkm::cont::ArrayHandle<vtkm::Id, vtkm::cont::StorageTagIndex>>
165 : Serialization<vtkm::cont::ArrayHandleIndex>
171 #endif //vtk_m_cont_ArrayHandleIndex_h
Manages an array-worth of data.
Definition: ArrayHandle.h:300
T load(const U &u, vtkm::Id v)
Definition: FetchTagArrayDirectIn.h:36
Groups connected points that have the same field value.
Definition: Atomic.h:19
auto Get(const vtkm::Tuple< Ts... > &tuple)
Retrieve the object from a vtkm::Tuple at the given index.
Definition: Tuple.h:81
#define VTKM_ARRAY_HANDLE_SUBCLASS_NT(classname, superclass)
Macro to make default methods in ArrayHandle subclasses.
Definition: ArrayHandle.h:266
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
vtkm::cont::detail::GetTypeInParentheses< void(vtkm::cont::ArrayHandle< vtkm::Id, StorageTagIndex >) >::type Superclass
Definition: ArrayHandleIndex.h:59
Definition: ArrayHandleIndex.h:32
Definition: Particle.h:351
#define VTKM_CONT_EXPORT
Definition: vtkm_cont_export.h:44
#define VTKM_CONT
Definition: ExportMacros.h:57
ArrayHandleIndex(vtkm::Id length)
Construct an index array containing values from 0 to length - 1.
Definition: ArrayHandleIndex.h:63
vtkm::Int64 Id
Base type to use to index arrays.
Definition: Types.h:227
typename Superclass::StorageTag StorageTag
Definition: ArrayHandleImplicit.h:189
An object used to specify a device.
Definition: DeviceAdapterTag.h:58
vtkm::cont::ArrayHandleIndex make_ArrayHandleIndex(vtkm::Id length)
A convenience function for creating an ArrayHandleIndex.
Definition: ArrayHandleIndex.h:72
#define VTKM_ALWAYS_EXPORT
Definition: ExportMacros.h:89
An implicit array handle containing the its own indices.
Definition: ArrayHandleIndex.h:55
Represent a continuous scalar range of values.
Definition: Range.h:31