VTK  9.3.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 
12 #ifndef vtkWeakReference_h
13 #define vtkWeakReference_h
14 
15 #include "vtkCommonCoreModule.h" // For export macro
16 #include "vtkObject.h"
17 #include "vtkWeakPointer.h"
18 
19 VTK_ABI_NAMESPACE_BEGIN
20 class VTKCOMMONCORE_EXPORT vtkWeakReference : public vtkObject
21 {
22 public:
23  vtkTypeMacro(vtkWeakReference, vtkObject);
24  static vtkWeakReference* New();
26  ~vtkWeakReference() override;
27 
31  void Set(vtkObject* object);
32 
36  vtkObject* Get();
37 
38 private:
40 };
41 
42 VTK_ABI_NAMESPACE_END
43 #endif
44 
45 // VTK-HeaderTest-Exclude: vtkWeakReference.h
abstract base class for most VTK objects
Definition: vtkObject.h:51
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...