vtk-m/vtkm/cont/arg/TypeCheckTagKeys.h
Kenneth Moreland b1f288aaea Add non-templated base class to Keys class.
The only reason Keys has a template is so that it can hold a UniqueKeys
array and provide the key for each group. If that is not needed and you
want to implement a library function that takes a keys object, you can
now grab the Keys superclass KeysBase. KeysBase is not templated, so you
can pass it to a standard method in a library.
2020-05-21 08:34:07 -06:00

35 lines
948 B
C++

//============================================================================
// 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_cont_arg_TypeCheckTagKeys_h
#define vtk_m_cont_arg_TypeCheckTagKeys_h
#include <vtkm/cont/arg/TypeCheck.h>
namespace vtkm
{
namespace cont
{
namespace arg
{
/// Check for a Keys object.
///
struct TypeCheckTagKeys
{
};
// The specialization that actually checks for Keys types is implemented in vtkm/worklet/Keys.h.
// That class is not accessible from here due to VTK-m package dependencies.
}
}
} // namespace vtkm::cont::arg
#endif //vtk_m_cont_arg_TypeCheckTagKeys_h