Go to the documentation of this file.
10 #ifndef vtk_m_VecFromPortal_h
11 #define vtk_m_VecFromPortal_h
28 template <
typename PortalType>
32 using ComponentType =
typename std::remove_const<typename PortalType::ValueType>::type;
54 template <
typename T, vtkm::IdComponent DestSize>
68 return vtkm::internal::ArrayPortalValueReference<PortalType>(this->
Portal,
78 template <
typename PortalType>
96 template <
typename PortalType>
117 return vector[componentIndex];
121 template <vtkm::IdComponent destSize>
130 #endif //vtk_m_VecFromPortal_h
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC_CONT vtkm::internal::ArrayPortalValueReference< PortalType > operator[](vtkm::IdComponent index) const
Definition: VecFromPortal.h:66
A tag for vectors that are "true" vectors (i.e.
Definition: VecTraits.h:21
Groups connected points that have the same field value.
Definition: Atomic.h:19
The TypeTraits class provides helpful compile-time information about the basic types used in VTKm (an...
Definition: TypeTraits.h:61
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
vtkm::Int32 IdComponent
Represents a component ID (index of component in a vector).
Definition: Types.h:168
VTKM_SUPPRESS_EXEC_WARNINGS static VTKM_EXEC_CONT vtkm::VecFromPortal< PortalType > ZeroInitialization()
Definition: VecFromPortal.h:90
vtkm::Id Offset
Definition: VecFromPortal.h:75
PortalType Portal
Definition: VecFromPortal.h:73
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC_CONT VecFromPortal(const PortalType &portal, vtkm::IdComponent numComponents=0, vtkm::Id offset=0)
Definition: VecFromPortal.h:44
typename vtkm::VecTraits< ComponentType >::BaseComponentType BaseComponentType
Base component type in the vector.
Definition: VecTraits.h:80
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
VTKM_EXEC_CONT void CopyInto(vtkm::Vec< T, DestSize > &dest) const
Definition: VecFromPortal.h:55
VTKM_EXEC_CONT vtkm::IdComponent GetNumberOfComponents() const
Definition: VecFromPortal.h:52
VTKM_SUPPRESS_EXEC_WARNINGS static VTKM_EXEC_CONT ComponentType GetComponent(const VecType &vector, vtkm::IdComponent componentIndex)
Definition: VecFromPortal.h:115
typename PortalType::ValueType ComponentType
Definition: VecFromPortal.h:82
vtkm::IdComponent NumComponents
Definition: VecFromPortal.h:74
Tag used to identify types that aren't Real, Integer, Scalar or Vector.
Definition: TypeTraits.h:20
Tag used to identify 1 dimensional types (vectors).
Definition: TypeTraits.h:51
A short fixed-length array.
Definition: Types.h:767
typename std::remove_const< typename PortalType::ValueType >::type ComponentType
Definition: VecFromPortal.h:32
typename vtkm::VecTraits< ComponentType >::BaseComponentType BaseComponentType
Definition: VecFromPortal.h:102
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC_CONT VecFromPortal()
Definition: VecFromPortal.h:36
typename VecType::ComponentType ComponentType
Definition: VecFromPortal.h:101
The VecTraits class gives several static members that define how to use a given type as a vector.
Definition: VecTraits.h:66
VTKM_SUPPRESS_EXEC_WARNINGS static VTKM_EXEC_CONT vtkm::IdComponent GetNumberOfComponents(const VecType &vector)
Definition: VecFromPortal.h:108
A short variable-length array from a window in an ArrayPortal.
Definition: VecFromPortal.h:29
VTKM_SUPPRESS_EXEC_WARNINGS static VTKM_EXEC_CONT void CopyInto(const VecType &src, vtkm::Vec< ComponentType, destSize > &dest)
Definition: VecFromPortal.h:122
#define VTKM_SUPPRESS_EXEC_WARNINGS
Definition: ExportMacros.h:53
typename vtkm::TypeTraits< ComponentType >::NumericTag NumericTag
Definition: VecFromPortal.h:85