VTK  9.2.20220926
vtkReferenceCount.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkReferenceCount.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
24 #ifndef vtkReferenceCount_h
25 #define vtkReferenceCount_h
26 
27 #include "vtkCommonCoreModule.h" // For export macro
28 #include "vtkObject.h"
29 
30 VTK_ABI_NAMESPACE_BEGIN
31 class VTKCOMMONCORE_EXPORT vtkReferenceCount : public vtkObject
32 {
33 public:
35 
36  vtkTypeMacro(vtkReferenceCount, vtkObject);
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
39 protected:
41  ~vtkReferenceCount() override;
42 
43 private:
44  vtkReferenceCount(const vtkReferenceCount&) = delete;
45  void operator=(const vtkReferenceCount&) = delete;
46 };
47 
49 #endif
a simple class to control print indentation
Definition: vtkIndent.h:120
abstract base class for most VTK objects
Definition: vtkObject.h:83
Obsolete / empty subclass of object.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkReferenceCount * New()
~vtkReferenceCount() override