VTK  9.7.1
vtkWeakReference.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 
15 #ifndef vtkWeakReference_h
16 #define vtkWeakReference_h
17 
18 #include "vtkCommonCoreModule.h" // For export macro
19 #include "vtkObject.h"
20 #include "vtkWeakPointer.h"
21 
22 VTK_ABI_NAMESPACE_BEGIN
23 class VTKCOMMONCORE_EXPORT vtkWeakReference : public vtkObject
24 {
25 public:
26  vtkTypeMacro(vtkWeakReference, vtkObject);
27  static vtkWeakReference* New();
29  ~vtkWeakReference() override;
30 
34  void Set(vtkObject* object);
35 
39  vtkObject* Get();
40 
41 private:
43 };
44 
45 VTK_ABI_NAMESPACE_END
46 #endif
47 
48 // VTK-HeaderTest-Exclude: vtkWeakReference.h
abstract base class for most VTK objects
Definition: vtkObject.h:52
Utility class to hold a weak reference to a vtkObject.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...