vtk-m/vtkm/cont/CellSetStructured.hxx

50 lines
1.8 KiB
C++
Raw Normal View History

//============================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
2019-04-15 23:24:21 +00:00
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE. See the above copyright notice for more information.
//============================================================================
#ifndef vtk_m_cont_CellSetStructured_hxx
#define vtk_m_cont_CellSetStructured_hxx
2017-05-18 14:29:41 +00:00
namespace vtkm
{
namespace cont
{
template <vtkm::IdComponent DIMENSION>
2017-05-18 14:29:41 +00:00
template <typename TopologyElement>
typename CellSetStructured<DIMENSION>::SchedulingRangeType
2017-05-18 14:29:41 +00:00
CellSetStructured<DIMENSION>::GetSchedulingRange(TopologyElement) const
{
VTKM_IS_TOPOLOGY_ELEMENT_TAG(TopologyElement);
return this->Structure.GetSchedulingRange(TopologyElement());
}
2017-05-18 14:29:41 +00:00
template <vtkm::IdComponent DIMENSION>
template <typename DeviceAdapter, typename VisitTopology, typename IncidentTopology>
typename CellSetStructured<DIMENSION>::
template ExecutionTypes<DeviceAdapter, VisitTopology, IncidentTopology>::ExecObjectType
CellSetStructured<DIMENSION>::PrepareForInput(DeviceAdapter,
VisitTopology,
IncidentTopology,
vtkm::cont::Token&) const
{
using ConnectivityType =
typename ExecutionTypes<DeviceAdapter, VisitTopology, IncidentTopology>::ExecObjectType;
return ConnectivityType(this->Structure);
}
2017-05-18 14:29:41 +00:00
template <vtkm::IdComponent DIMENSION>
void CellSetStructured<DIMENSION>::PrintSummary(std::ostream& out) const
{
2019-08-13 21:28:37 +00:00
out << " StructuredCellSet: " << std::endl;
this->Structure.PrintSummary(out);
}
}
}
#endif