2014-10-22 21:15:14 +00:00
|
|
|
//============================================================================
|
|
|
|
// Copyright (c) Kitware, Inc.
|
|
|
|
// All rights reserved.
|
|
|
|
// See LICENSE.txt for details.
|
2019-04-15 23:24:21 +00:00
|
|
|
//
|
2014-10-22 21:15:14 +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_TypeCheckTagExecObject_h
|
|
|
|
#define vtk_m_cont_arg_TypeCheckTagExecObject_h
|
|
|
|
|
2015-07-30 22:02:21 +00:00
|
|
|
#include <vtkm/internal/ExportMacros.h>
|
|
|
|
|
2014-10-22 21:15:14 +00:00
|
|
|
#include <vtkm/cont/arg/TypeCheck.h>
|
|
|
|
|
2018-05-10 23:53:39 +00:00
|
|
|
#include <vtkm/cont/ExecutionObjectBase.h>
|
2014-10-22 21:15:14 +00:00
|
|
|
|
2016-08-29 15:13:00 +00:00
|
|
|
#include <type_traits>
|
2014-10-22 21:15:14 +00:00
|
|
|
|
2017-05-18 14:29:41 +00:00
|
|
|
namespace vtkm
|
|
|
|
{
|
|
|
|
namespace cont
|
|
|
|
{
|
|
|
|
namespace arg
|
|
|
|
{
|
2014-10-22 21:15:14 +00:00
|
|
|
|
|
|
|
/// The ExecObject type check passes for any object that inherits from \c
|
2018-05-10 23:53:39 +00:00
|
|
|
/// ExecutionObjectBase. This is supposed to signify that the object can be
|
2014-10-22 21:15:14 +00:00
|
|
|
/// used in the execution environment although there is no way to verify that.
|
|
|
|
///
|
2017-05-18 14:29:41 +00:00
|
|
|
struct TypeCheckTagExecObject
|
|
|
|
{
|
|
|
|
};
|
2014-10-22 21:15:14 +00:00
|
|
|
|
2017-05-18 14:29:41 +00:00
|
|
|
template <typename Type>
|
2014-10-22 21:15:14 +00:00
|
|
|
struct TypeCheck<TypeCheckTagExecObject, Type>
|
|
|
|
{
|
2018-09-08 17:07:06 +00:00
|
|
|
static constexpr bool value = vtkm::cont::internal::IsExecutionObjectBase<Type>::value;
|
2014-10-22 21:15:14 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} // namespace vtkm::cont::arg
|
|
|
|
|
|
|
|
#endif //vtk_m_cont_arg_TypeCheckTagExecObject_h
|