2015-02-04 20:02:59 +00:00
|
|
|
//============================================================================
|
|
|
|
// Copyright (c) Kitware, Inc.
|
|
|
|
// All rights reserved.
|
|
|
|
// See LICENSE.txt for details.
|
2019-04-15 23:24:21 +00:00
|
|
|
//
|
2015-02-04 20:02:59 +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.
|
|
|
|
//============================================================================
|
2016-05-17 17:36:23 +00:00
|
|
|
#ifndef vtk_m_cont_arg_TransportTagCellSetIn_h
|
|
|
|
#define vtk_m_cont_arg_TransportTagCellSetIn_h
|
2015-02-04 20:02:59 +00:00
|
|
|
|
|
|
|
#include <vtkm/Types.h>
|
|
|
|
|
2015-07-28 23:33:52 +00:00
|
|
|
#include <vtkm/cont/CellSet.h>
|
2015-02-04 20:02:59 +00:00
|
|
|
|
|
|
|
#include <vtkm/cont/arg/Transport.h>
|
|
|
|
|
2017-05-18 14:29:41 +00:00
|
|
|
namespace vtkm
|
|
|
|
{
|
|
|
|
namespace cont
|
|
|
|
{
|
|
|
|
namespace arg
|
|
|
|
{
|
2015-02-04 20:02:59 +00:00
|
|
|
|
|
|
|
/// \brief \c Transport tag for input arrays.
|
|
|
|
///
|
2016-05-17 17:36:23 +00:00
|
|
|
/// \c TransportTagCellSetIn is a tag used with the \c Transport class to
|
2015-02-04 20:02:59 +00:00
|
|
|
/// transport topology objects for input data.
|
|
|
|
///
|
2019-07-30 16:53:51 +00:00
|
|
|
template <typename VisitTopology, typename IncidentTopology>
|
2017-05-18 14:29:41 +00:00
|
|
|
struct TransportTagCellSetIn
|
|
|
|
{
|
|
|
|
};
|
2015-02-04 20:02:59 +00:00
|
|
|
|
2019-07-30 16:53:51 +00:00
|
|
|
template <typename VisitTopology,
|
|
|
|
typename IncidentTopology,
|
|
|
|
typename ContObjectType,
|
|
|
|
typename Device>
|
|
|
|
struct Transport<vtkm::cont::arg::TransportTagCellSetIn<VisitTopology, IncidentTopology>,
|
2017-05-26 17:53:28 +00:00
|
|
|
ContObjectType,
|
2017-05-18 14:29:41 +00:00
|
|
|
Device>
|
2015-02-04 20:02:59 +00:00
|
|
|
{
|
2015-07-28 23:33:52 +00:00
|
|
|
VTKM_IS_CELL_SET(ContObjectType);
|
|
|
|
|
2020-01-21 20:18:03 +00:00
|
|
|
using ExecObjectType =
|
|
|
|
decltype(std::declval<ContObjectType>().PrepareForInput(Device(),
|
|
|
|
VisitTopology(),
|
|
|
|
IncidentTopology(),
|
|
|
|
std::declval<vtkm::cont::Token&>()));
|
2015-02-04 20:02:59 +00:00
|
|
|
|
2017-05-18 14:29:41 +00:00
|
|
|
template <typename InputDomainType>
|
2020-01-19 06:36:14 +00:00
|
|
|
VTKM_CONT ExecObjectType operator()(const ContObjectType& object,
|
|
|
|
const InputDomainType&,
|
|
|
|
vtkm::Id,
|
|
|
|
vtkm::Id,
|
|
|
|
vtkm::cont::Token& token) const
|
2015-02-04 20:02:59 +00:00
|
|
|
{
|
2020-01-19 06:36:14 +00:00
|
|
|
return object.PrepareForInput(Device(), VisitTopology(), IncidentTopology(), token);
|
2015-02-04 20:02:59 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} // namespace vtkm::cont::arg
|
|
|
|
|
2016-05-17 17:36:23 +00:00
|
|
|
#endif //vtk_m_cont_arg_TransportTagCellSetIn_h
|