Go to the documentation of this file.
11 #ifndef vtk_m_exec_ConnectivityStructured_h
12 #define vtk_m_exec_ConnectivityStructured_h
23 template <
typename VisitTopology,
typename Inc
identTopology, vtkm::IdComponent Dimension>
29 using InternalsType = vtkm::internal::ConnectivityStructuredInternals<Dimension>;
32 vtkm::internal::ConnectivityStructuredIndexHelper<VisitTopology, IncidentTopology, Dimension>;
66 template <
typename IndexType>
69 return Helper::GetNumberOfIndices(this->
Internals, index);
74 template <
typename IndexType>
77 return Helper::GetIndices(this->
Internals, index);
83 return Helper::FlatToLogicalFromIndex(this->
Internals, flatFromIndex);
89 return Helper::LogicalToFlatFromIndex(this->
Internals, logicalFromIndex);
95 return Helper::FlatToLogicalToIndex(this->
Internals, flatToIndex);
101 return Helper::LogicalToFlatToIndex(this->
Internals, logicalToIndex);
107 return this->
Internals.GetPointDimensions();
113 return this->
Internals.GetCellDimensions();
119 return this->
Internals.GetGlobalPointIndexStart();
130 #endif //vtk_m_exec_ConnectivityStructured_h
VTKM_EXEC_CONT SchedulingRangeType FlatToLogicalToIndex(vtkm::Id flatToIndex) const
Definition: ConnectivityStructured.h:93
VTKM_EXEC vtkm::IdComponent GetNumberOfIndices(const IndexType &index) const
Definition: ConnectivityStructured.h:67
VTKM_EXEC vtkm::Id GetNumberOfElements() const
Definition: ConnectivityStructured.h:60
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
VTKM_EXEC_CONT SchedulingRangeType FlatToLogicalFromIndex(vtkm::Id flatFromIndex) const
Definition: ConnectivityStructured.h:81
VTKM_EXEC_CONT vtkm::Id LogicalToFlatFromIndex(const SchedulingRangeType &logicalFromIndex) const
Definition: ConnectivityStructured.h:87
vtkm::Int32 IdComponent
Represents a component ID (index of component in a vector).
Definition: Types.h:168
ConnectivityStructured()=default
VTKM_EXEC_CONT SchedulingRangeType GetGlobalPointIndexStart() const
Definition: ConnectivityStructured.h:117
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
VTKM_EXEC_CONT vtkm::Vec< vtkm::Id, Dimension > GetPointDimensions() const
Definition: ConnectivityStructured.h:105
vtkm::internal::ConnectivityStructuredIndexHelper< VisitTopology, IncidentTopology, Dimension > Helper
Definition: ConnectivityStructured.h:32
VTKM_EXEC_CONT vtkm::Id LogicalToFlatToIndex(const SchedulingRangeType &logicalToIndex) const
Definition: ConnectivityStructured.h:99
InternalsType Internals
Definition: ConnectivityStructured.h:125
typename InternalsType::SchedulingRangeType SchedulingRangeType
Definition: ConnectivityStructured.h:35
typename Helper::CellShapeTag CellShapeTag
Definition: ConnectivityStructured.h:62
VTKM_EXEC_CONT ConnectivityStructured(const InternalsType &src)
Definition: ConnectivityStructured.h:40
VTKM_EXEC IndicesType GetIndices(const IndexType &index) const
Definition: ConnectivityStructured.h:75
Definition: ConnectivityStructured.h:24
A short fixed-length array.
Definition: Types.h:767
VTKM_EXEC CellShapeTag GetCellShape(vtkm::Id) const
Definition: ConnectivityStructured.h:64
ConnectivityStructured & operator=(const ConnectivityStructured &src)=default
VTKM_EXEC_CONT ConnectivityStructured(const ConnectivityStructured< IncidentTopology, VisitTopology, Dimension > &src)
Definition: ConnectivityStructured.h:48
typename Helper::IndicesType IndicesType
Definition: ConnectivityStructured.h:72
VTKM_EXEC_CONT vtkm::Vec< vtkm::Id, Dimension > GetCellDimensions() const
Definition: ConnectivityStructured.h:111
vtkm::internal::ConnectivityStructuredInternals< Dimension > InternalsType
Definition: ConnectivityStructured.h:29
VTKM_IS_TOPOLOGY_ELEMENT_TAG(VisitTopology)