mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-19 18:45:43 +00:00
b1f288aaea
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.
35 lines
948 B
C++
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
|