6#ifndef vtkmlib_Portals_h
7#define vtkmlib_Portals_h
10#include "vtkAcceleratorsVTKmCoreModule.h"
11#include "vtkmConfigCore.h"
13VTK_ABI_NAMESPACE_BEGIN
18#include <vtkm/cont/internal/IteratorFromArrayPortal.h>
22VTK_ABI_NAMESPACE_BEGIN
24template <
typename Type,
typename VTKDataArrayType_>
27 static const int NUM_COMPONENTS = vtkm::VecTraits<Type>::NUM_COMPONENTS;
40 VTKM_SUPPRESS_EXEC_WARNINGS
44 VTKM_SUPPRESS_EXEC_WARNINGS
48 VTKM_SUPPRESS_EXEC_WARNINGS
52 typedef vtkm::cont::internal::IteratorFromArrayPortal<vtkArrayPortal>
IteratorType;
64 VTKDataArrayType* VTKData;
68template <
typename Type>
71 static const int NUM_COMPONENTS = vtkm::VecTraits<Type>::NUM_COMPONENTS;
83 VTKM_SUPPRESS_EXEC_WARNINGS
87 VTKM_SUPPRESS_EXEC_WARNINGS
91 VTKM_SUPPRESS_EXEC_WARNINGS
95 typedef vtkm::cont::internal::IteratorFromArrayPortal<vtkPointsPortal>
IteratorType;
108 ComponentType* Array;
114#ifndef vtkmlib_Portals_cxx
115#include <vtkm/cont/internal/ArrayPortalFromIterators.h>
118VTK_ABI_NAMESPACE_BEGIN
120extern template class VTKACCELERATORSVTKMCORE_TEMPLATE_EXPORT
121 vtkPointsPortal<vtkm::Vec<vtkm::Float32, 3>
const>;
122extern template class VTKACCELERATORSVTKMCORE_TEMPLATE_EXPORT
123 vtkPointsPortal<vtkm::Vec<vtkm::Float64, 3>
const>;
124extern template class VTKACCELERATORSVTKMCORE_TEMPLATE_EXPORT
125 vtkPointsPortal<vtkm::Vec<vtkm::Float32, 3>>;
126extern template class VTKACCELERATORSVTKMCORE_TEMPLATE_EXPORT
127 vtkPointsPortal<vtkm::Vec<vtkm::Float64, 3>>;
133#include "Portals.hxx"
VTKM_EXEC_CONT vtkArrayPortal()
vtkm::cont::internal::IteratorFromArrayPortal< vtkArrayPortal > IteratorType
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC_CONT ValueType Get(vtkm::Id index) const
typename vtkPortalTraits< Type >::ComponentType ComponentType
VTKM_CONT IteratorType GetIteratorBegin() const
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC_CONT vtkm::Id GetNumberOfValues() const
VTKM_CONT IteratorType GetIteratorEnd() const
typename vtkPortalTraits< Type >::Type ValueType
VTKM_CONT vtkArrayPortal(VTKDataArrayType *array, vtkm::Id size)
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC_CONT void Set(vtkm::Id index, const ValueType &value) const
VTKM_CONT VTKDataArrayType * GetVtkData() const
VTKDataArrayType_ VTKDataArrayType
VTKM_CONT IteratorType GetIteratorEnd() const
VTKM_CONT vtkPoints * GetVtkData() const
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC_CONT ValueType Get(vtkm::Id index) const
VTKM_CONT vtkPointsPortal(vtkPoints *points, vtkm::Id size)
VTKM_CONT IteratorType GetIteratorBegin() const
VTKM_EXEC_CONT vtkPointsPortal()
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC_CONT void Set(vtkm::Id index, const ValueType &value) const
typename vtkPortalTraits< Type >::ComponentType ComponentType
vtkm::cont::internal::IteratorFromArrayPortal< vtkPointsPortal > IteratorType
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC_CONT vtkm::Id GetNumberOfValues() const
typename vtkPortalTraits< Type >::Type ValueType
abstract superclass for arrays of numeric data
represent and manipulate 3D points
typename std::remove_const< T >::type ComponentType