vtk-m/vtkm/cont/arg/TypeCheckTagCellSet.h

40 lines
1008 B
C
Raw Permalink 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_arg_TypeCheckTagCellSet_h
#define vtk_m_cont_arg_TypeCheckTagCellSet_h
#include <vtkm/cont/arg/TypeCheck.h>
#include <vtkm/cont/CellSet.h>
2017-05-18 14:29:41 +00:00
namespace vtkm
{
namespace cont
{
namespace arg
{
/// Check for a CellSet-like object.
///
struct TypeCheckTagCellSet
{
};
2017-05-18 14:29:41 +00:00
template <typename CellSetType>
struct TypeCheck<TypeCheckTagCellSet, CellSetType>
{
static constexpr bool value = vtkm::cont::internal::CellSetCheck<CellSetType>::type::value;
};
}
}
} // namespace vtkm::cont::arg
#endif //vtk_m_cont_arg_TypeCheckTagCellSet_h