VTK  9.1.20211024
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 class VTKCOMMONCORE_EXPORT vtkReferenceCount : public vtkObject
31 {
32 public:
34 
35  vtkTypeMacro(vtkReferenceCount, vtkObject);
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
38 protected:
40  ~vtkReferenceCount() override;
41 
42 private:
43  vtkReferenceCount(const vtkReferenceCount&) = delete;
44  void operator=(const vtkReferenceCount&) = delete;
45 };
46 
47 #endif
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract base class for most VTK objects
Definition: vtkObject.h:82
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