Go to the documentation of this file.
10 #ifndef vtk_m_cont_ArrayCopyDevice_h
11 #define vtk_m_cont_ArrayCopyDevice_h
33 template <
typename T1,
typename S1,
typename T2,
typename S2>
44 template <
typename T,
typename S>
74 template <
typename InValueType,
typename InStorage,
typename OutValueType,
typename OutStorage>
80 using SameTypes = std::is_same<InArrayType, OutArrayType>;
81 using IsWritable = vtkm::cont::internal::IsWritableArrayHandle<OutArrayType>;
93 "Cannot copy to a read-only array with a different "
94 "type than the source.");
97 detail::ArrayCopyImpl(source, destination);
105 #endif //vtk_m_cont_ArrayCopyDevice_h
Manages an array-worth of data.
Definition: ArrayHandle.h:300
void ArrayCopyDevice(const vtkm::cont::ArrayHandle< InValueType, InStorage > &source, vtkm::cont::ArrayHandle< OutValueType, OutStorage > &destination)
Does a deep copy from one array to another array.
Definition: ArrayCopyDevice.h:75
Groups connected points that have the same field value.
Definition: Atomic.h:19
#define VTKM_STATIC_ASSERT(condition)
Definition: StaticAssert.h:16
#define VTKM_STATIC_ASSERT_MSG(condition, message)
Definition: StaticAssert.h:18
#define VTKM_CONT
Definition: ExportMacros.h:57
static bool Copy(vtkm::cont::DeviceAdapterId devId, const vtkm::cont::ArrayHandle< T, CIn > &input, vtkm::cont::ArrayHandle< U, COut > &output)
Definition: Algorithm.h:411
void DeepCopyFrom(const vtkm::cont::ArrayHandle< ValueType, StorageTag > &source) const
Deep copies the data in the array.
Definition: ArrayHandle.h:707