Go to the documentation of this file.
10 #ifndef vtk_m_cont_arg_TransportTagTopologyFieldIn_h
11 #define vtk_m_cont_arg_TransportTagTopologyFieldIn_h
35 template <
typename TopologyElementTag>
73 template <
typename TopologyElementTag,
typename ContObjectType,
typename Device>
82 std::declval<ContObjectType>().PrepareForInput(Device(), std::declval<vtkm::cont::Token&>()));
91 if (
object.GetNumberOfValues() != detail::TopologyDomainSize(inputDomain, TopologyElementTag()))
96 return object.PrepareForInput(Device(), token);
103 #endif //vtk_m_cont_arg_TransportTagTopologyFieldIn_h
A tag used to identify the point elements in a topology.
Definition: TopologyElementTag.h:34
A tag used to identify the face elements in a topology.
Definition: TopologyElementTag.h:54
ExecObjectType operator()(const ContObjectType &object, const vtkm::cont::CellSet &inputDomain, vtkm::Id, vtkm::Id, vtkm::cont::Token &token) const
Definition: TransportTagTopologyFieldIn.h:85
Groups connected points that have the same field value.
Definition: Atomic.h:19
Transport tag for input arrays in topology maps.
Definition: TransportTagTopologyFieldIn.h:36
A tag used to identify the edge elements in a topology.
Definition: TopologyElementTag.h:44
A token to hold the scope of an ArrayHandle or other object.
Definition: Token.h:35
#define VTKM_IS_ARRAY_HANDLE(T)
Checks that the given type is a vtkm::cont::ArrayHandle.
Definition: ArrayHandle.h:137
virtual vtkm::Id GetNumberOfPoints() const =0
Get the number of points in the topology.
virtual vtkm::Id GetNumberOfCells() const =0
Get the number of cells in the topology.
decltype(std::declval< ContObjectType >().PrepareForInput(Device(), std::declval< vtkm::cont::Token & >())) ExecObjectType
Definition: TransportTagTopologyFieldIn.h:82
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::Int64 Id
Base type to use to index arrays.
Definition: Types.h:227
Defines the topological structure of the data in a DataSet.
Definition: CellSet.h:28
This class is thrown when a VTKm function or method encounters an invalid value that inhibits progres...
Definition: ErrorBadValue.h:25
virtual vtkm::Id GetNumberOfFaces() const =0
Class for transporting from the control to the execution environment.
Definition: Transport.h:38
A tag used to identify the cell elements in a topology.
Definition: TopologyElementTag.h:24
virtual vtkm::Id GetNumberOfEdges() const =0