VTK  9.7.1
vtkmAlgorithm.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
3 
39 #ifndef vtkmAlgorithm_h
40 #define vtkmAlgorithm_h
41 
42 #include "vtkAlgorithm.h"
43 
44 VTK_ABI_NAMESPACE_BEGIN
45 
46 template <class AlgorithmT>
47 class vtkmAlgorithm : public AlgorithmT
48 {
49 public:
51 
56 
58  "Template argument must inherit vtkAlgorithm");
59 
61 
67  vtkGetMacro(ForceVTKm, bool);
68  vtkSetMacro(ForceVTKm, bool);
69  vtkBooleanMacro(ForceVTKm, bool);
71 
72 protected:
73  vtkmAlgorithm() = default;
74 
75  bool ForceVTKm = false;
76 
77 private:
78  vtkmAlgorithm(const vtkmAlgorithm&) = delete;
79  void operator=(const vtkmAlgorithm&) = delete;
80 };
81 VTK_ABI_NAMESPACE_END
82 
83 #endif // vtkmAlgorithm_h
vtkTemplateTypeMacro(vtkmAlgorithm, AlgorithmT)
Standard methods for instantiation, type information, and printing.
Base class for VTK-m algorithms.
Definition: vtkmAlgorithm.h:47
vtkmAlgorithm()=default