VTK
9.6.20260320
Main Page
Related Pages
Topics
Namespaces
Classes
Files
File List
File Members
Common
Core
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
14
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
();
28
vtkWeakReference
();
29
~vtkWeakReference
()
override
;
30
34
void
Set
(
vtkObject
*
object
);
35
39
vtkObject
*
Get
();
40
41
private
:
42
vtkWeakPointer<vtkObject>
Object;
43
};
44
45
VTK_ABI_NAMESPACE_END
46
#endif
47
48
// VTK-HeaderTest-Exclude: vtkWeakReference.h
vtkObject::vtkObject
vtkObject()
vtkWeakPointer
a weak reference to a vtkObject.
Definition
vtkWeakPointer.h:48
vtkWeakReference::vtkWeakReference
vtkWeakReference()
vtkWeakReference::~vtkWeakReference
~vtkWeakReference() override
vtkWeakReference::Set
void Set(vtkObject *object)
Set the vtkObject to maintain a weak reference to.
vtkWeakReference::New
static vtkWeakReference * New()
vtkWeakReference::Get
vtkObject * Get()
Get the vtkObject pointer or nullptr if the object has been collected.
vtkObject.h
vtkWeakPointer.h
Generated on Fri Mar 20 2026 07:51:26 for VTK by
1.13.2