2019-05-15 14:16:12 +00:00
|
|
|
//============================================================================
|
|
|
|
// Copyright (c) Kitware, Inc.
|
|
|
|
// All rights reserved.
|
|
|
|
// See LICENSE.txt for details.
|
|
|
|
//
|
|
|
|
// 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_worklet_internal_ScatterBase_h
|
|
|
|
#define vtk_m_worklet_internal_ScatterBase_h
|
|
|
|
|
2020-02-23 23:37:15 +00:00
|
|
|
#include <vtkm/internal/DecayHelpers.h>
|
2019-05-15 14:16:12 +00:00
|
|
|
#include <vtkm/internal/ExportMacros.h>
|
|
|
|
|
|
|
|
namespace vtkm
|
|
|
|
{
|
|
|
|
namespace worklet
|
|
|
|
{
|
|
|
|
namespace internal
|
|
|
|
{
|
|
|
|
/// Base class for all scatter classes.
|
|
|
|
///
|
|
|
|
/// This allows VTK-m to determine when a parameter
|
|
|
|
/// is a scatter type instead of a worklet parameter.
|
|
|
|
///
|
|
|
|
struct VTKM_ALWAYS_EXPORT ScatterBase
|
|
|
|
{
|
|
|
|
};
|
2019-09-27 20:40:53 +00:00
|
|
|
|
|
|
|
template <typename T>
|
2020-02-23 23:37:15 +00:00
|
|
|
using is_scatter = std::is_base_of<ScatterBase, vtkm::internal::remove_cvref<T>>;
|
2019-05-15 14:16:12 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|