6eb9c9876c
Recently, an instantiation method was added to the VTK-m configuration files to set up a set of source files that compile instances of a template. This allows the template instances to be compiled exactly once in separate build files. However, the implementation made the assumption that the instantiations were happening for VTK-m filters. Now that the VTK-m filters are being redesigned, this assumption is broken. Thus, the instantiation code has been redesigned to be more general. It can now be applied to code within the new filter structure. It can also be applied anywhere else in the VTK-m source code.
34 lines
954 B
C++
34 lines
954 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_filter_Instantiations_h
|
|
#define vtk_m_filter_Instantiations_h
|
|
|
|
#include <vtkm/Deprecated.h>
|
|
#include <vtkm/internal/Instantiations.h>
|
|
|
|
namespace vtkm
|
|
{
|
|
namespace filter
|
|
{
|
|
|
|
VTKM_DEPRECATED(1.8, "Use vtkm/internal/Instantiations.h instead of vtkm/filter/Instantiations.h")
|
|
inline void Instantiations_deprecated() {}
|
|
|
|
inline void Instantiations_deprecated_warning()
|
|
{
|
|
Instantiations_deprecated();
|
|
}
|
|
|
|
} // namespace vtkm
|
|
} // namespace filter
|
|
|
|
#endif //vtk_m_filter_Instantiations_h
|