Go to the documentation of this file.
10 #ifndef vtk_m_cont_ArrayHandleIndex_h
11 #define vtk_m_cont_ArrayHandleIndex_h
38 using StorageTagIndexSuperclass =
63 internal::FunctorToArrayHandleImplicitBuffers(
vtkm::internal::IndexFunctor{}, length))
87 struct SerializableTypeString<
vtkm::cont::ArrayHandleIndex>
89 static VTKM_CONT const std::string
Get() {
return "AH_Index"; }
93 struct SerializableTypeString<
vtkm::cont::ArrayHandle<vtkm::Id, vtkm::cont::StorageTagIndex>>
94 : SerializableTypeString<vtkm::cont::ArrayHandleIndex>
104 struct Serialization<
vtkm::cont::ArrayHandleIndex>
110 static VTKM_CONT void save(BinaryBuffer& bb,
const BaseType& obj)
112 vtkmdiy::save(bb, obj.GetNumberOfValues());
125 struct Serialization<
vtkm::cont::ArrayHandle<vtkm::Id, vtkm::cont::StorageTagIndex>>
126 : Serialization<vtkm::cont::ArrayHandleIndex>
132 #endif //vtk_m_cont_ArrayHandleIndex_h
Manages an array-worth of data.
Definition: ArrayHandle.h:283
Groups connected points that have the same field value.
Definition: Atomic.h:19
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC_CONT auto Get(const vtkm::Tuple< Ts... > &tuple) -> decltype(tuple.template Get< Index >())
Retrieve the object from a vtkm::Tuple at the given index.
Definition: Tuple.h:83
VTKM_CONT vtkm::cont::ArrayHandleIndex make_ArrayHandleIndex(vtkm::Id length)
A convenience function for creating an ArrayHandleIndex.
Definition: ArrayHandleIndex.h:70
VTKM_ARRAY_HANDLE_SUBCLASS_NT(ArrayHandleIndex,(vtkm::cont::ArrayHandle< vtkm::Id, StorageTagIndex >))
Definition: ArrayHandleIndex.h:31
Definition: Particle.h:331
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC T load(const U &u, vtkm::Id v)
Definition: FetchTagArrayDirectIn.h:36
#define VTKM_CONT
Definition: ExportMacros.h:57
VTKM_CONT ArrayHandleIndex(vtkm::Id length)
Definition: ArrayHandleIndex.h:61
StorageTag_ StorageTag
Definition: ArrayHandle.h:291
#define VTKM_ALWAYS_EXPORT
Definition: ExportMacros.h:92
An implicit array handle containing the its own indices.
Definition: ArrayHandleIndex.h:54