mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-05 09:59:12 +00:00
43 lines
1017 B
C++
43 lines
1017 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_source_Source_h
|
|
#define vtk_m_source_Source_h
|
|
|
|
#include <vtkm/cont/DataSet.h>
|
|
#include <vtkm/cont/Invoker.h>
|
|
#include <vtkm/source/vtkm_source_export.h>
|
|
|
|
namespace vtkm
|
|
{
|
|
namespace source
|
|
{
|
|
|
|
class VTKM_SOURCE_EXPORT Source
|
|
{
|
|
public:
|
|
VTKM_CONT
|
|
virtual ~Source() = default;
|
|
|
|
VTKM_CONT
|
|
vtkm::cont::DataSet Execute() const { return this->DoExecute(); }
|
|
|
|
protected:
|
|
VTKM_CONT
|
|
virtual vtkm::cont::DataSet DoExecute() const = 0;
|
|
|
|
vtkm::cont::Invoker Invoke;
|
|
};
|
|
|
|
} // namespace source
|
|
} // namespace vtkm
|
|
|
|
#endif // vtk_m_source_Source_h
|