mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-06 18:38:59 +00:00
257dc1f84e
`vtkm::source::Source` now uses virtual inheritance for the `Execute` method. This will allow us to enforce that all vtkm::source have a consistent calling convention. To make the code inside filters and sources more similar the base `vtkm::source::Source` class has a `vtkm::cont::Invoker` as a member variable. This will allow sources to use the `this->Invoke()` pattern that filters use to launch worklets.
25 lines
691 B
C++
25 lines
691 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.
|
|
//============================================================================
|
|
|
|
#include <vtkm/source/Source.h>
|
|
|
|
namespace vtkm
|
|
{
|
|
namespace source
|
|
{
|
|
|
|
//Fix the vtable for Source to be in the vtkm_source library
|
|
Source::Source() = default;
|
|
Source::~Source() = default;
|
|
|
|
|
|
} // namespace source
|
|
} // namespace vtkm
|