Go to the documentation of this file.
   10 #ifndef vtk_m_cont_ArrayCopyDevice_h 
   11 #define vtk_m_cont_ArrayCopyDevice_h 
   20 #include <vtkm/cont/vtkm_cont_export.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 
  
VTKM_CONT 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
 
Manages an array-worth of data.
Definition: ArrayHandle.h:283
 
Groups connected points that have the same field value.
Definition: Atomic.h:19
 
static VTKM_CONT bool Copy(vtkm::cont::DeviceAdapterId devId, const vtkm::cont::ArrayHandle< T, CIn > &input, vtkm::cont::ArrayHandle< U, COut > &output)
Definition: Algorithm.h:410
 
#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
 
VTKM_CONT void DeepCopyFrom(const vtkm::cont::ArrayHandle< ValueType, StorageTag > &source) const
Deep copies the data in the array.
Definition: ArrayHandle.h:682