Go to the documentation of this file.
11 #ifndef vtk_m_exec_ConnectivityStructured_h
12 #define vtk_m_exec_ConnectivityStructured_h
29 template <
typename VisitTopology,
typename Inc
identTopology, vtkm::IdComponent Dimension>
35 using InternalsType = vtkm::internal::ConnectivityStructuredInternals<Dimension>;
38 vtkm::internal::ConnectivityStructuredIndexHelper<VisitTopology, IncidentTopology, Dimension>;
90 template <
typename IndexType>
93 return Helper::GetNumberOfIndices(this->
Internals, index);
101 template <
typename IndexType>
104 return Helper::GetIndices(this->
Internals, index);
111 return Helper::FlatToLogicalVisitIndex(this->
Internals, flatVisitIndex);
118 return Helper::FlatToLogicalIncidentIndex(this->
Internals, flatIncidentIndex);
126 return Helper::LogicalToFlatVisitIndex(this->
Internals, logicalVisitIndex);
134 return Helper::LogicalToFlatIncidentIndex(this->
Internals, logicalIncidentIndex);
169 return this->
Internals.GetPointDimensions();
176 return this->
Internals.GetCellDimensions();
182 return this->
Internals.GetGlobalPointIndexStart();
193 #endif //vtk_m_exec_ConnectivityStructured_h
#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::Int32 IdComponent
Base type to use to index small lists.
Definition: Types.h:194
ConnectivityStructured()=default
SchedulingRangeType FlatToLogicalToIndex(vtkm::Id flatToIndex) const
Definition: ConnectivityStructured.h:153
vtkm::Id LogicalToFlatToIndex(const SchedulingRangeType &logicalToIndex) const
Definition: ConnectivityStructured.h:160
#define VTKM_IS_TOPOLOGY_ELEMENT_TAG(type)
Definition: TopologyElementTag.h:92
ConnectivityStructured(const ConnectivityStructured< IncidentTopology, VisitTopology, Dimension > &src)
Definition: ConnectivityStructured.h:54
ConnectivityStructured(const InternalsType &src)
Definition: ConnectivityStructured.h:46
vtkm::internal::ConnectivityStructuredIndexHelper< VisitTopology, IncidentTopology, Dimension > Helper
Definition: ConnectivityStructured.h:38
InternalsType Internals
Definition: ConnectivityStructured.h:188
vtkm::Id LogicalToFlatIncidentIndex(const SchedulingRangeType &logicalIncidentIndex) const
Convenience method that converts logical indices in a vtkm::Vec of an incident element to a flat,...
Definition: ConnectivityStructured.h:131
SchedulingRangeType FlatToLogicalFromIndex(vtkm::Id flatFromIndex) const
Definition: ConnectivityStructured.h:139
typename InternalsType::SchedulingRangeType SchedulingRangeType
Definition: ConnectivityStructured.h:41
typename Helper::CellShapeTag CellShapeTag
The tag representing the cell shape of the visited elements.
Definition: ConnectivityStructured.h:78
CellShapeTag GetCellShape(vtkm::Id) const
Returns a tag for the cell shape associated with the element at the given index.
Definition: ConnectivityStructured.h:86
vtkm::Int64 Id
Base type to use to index arrays.
Definition: Types.h:227
vtkm::Id LogicalToFlatVisitIndex(const SchedulingRangeType &logicalVisitIndex) const
Convenience method that converts logical indices in a vtkm::Vec of a visited element to a flat,...
Definition: ConnectivityStructured.h:123
A class holding information about topology connections.
Definition: ConnectivityStructured.h:30
A short fixed-length array.
Definition: Types.h:357
SchedulingRangeType GetGlobalPointIndexStart() const
Definition: ConnectivityStructured.h:180
vtkm::IdComponent GetNumberOfIndices(const IndexType &index) const
Given the index of a visited element, returns the number of incident elements touching it.
Definition: ConnectivityStructured.h:91
ConnectivityStructured & operator=(const ConnectivityStructured &src)=default
typename Helper::IndicesType IndicesType
Type of variable that lists of incident indices will be put into.
Definition: ConnectivityStructured.h:97
SchedulingRangeType FlatToLogicalIncidentIndex(vtkm::Id flatIncidentIndex) const
Convenience method that converts a flat, 1D index to the incident elements to a vtkm::Vec containing ...
Definition: ConnectivityStructured.h:116
vtkm::Vec< vtkm::Id, Dimension > GetPointDimensions() const
Return the dimensions of the points in the cell set.
Definition: ConnectivityStructured.h:167
vtkm::Id GetNumberOfElements() const
Provides the number of elements in the topology.
Definition: ConnectivityStructured.h:71
SchedulingRangeType FlatToLogicalVisitIndex(vtkm::Id flatVisitIndex) const
Convenience method that converts a flat, 1D index to the visited elements to a vtkm::Vec containing t...
Definition: ConnectivityStructured.h:109
vtkm::Vec< vtkm::Id, Dimension > GetCellDimensions() const
Return the dimensions of the points in the cell set.
Definition: ConnectivityStructured.h:174
vtkm::internal::ConnectivityStructuredInternals< Dimension > InternalsType
Definition: ConnectivityStructured.h:35
#define VTKM_DEPRECATED(...)
Definition: Deprecated.h:145
IndicesType GetIndices(const IndexType &index) const
Provides the indices of all elements incident to the visit element of the provided index.
Definition: ConnectivityStructured.h:102
vtkm::Id LogicalToFlatFromIndex(const SchedulingRangeType &logicalFromIndex) const
Definition: ConnectivityStructured.h:146