VTK
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:
33  static vtkReferenceCount *New();
34 
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 
48 #endif
49 
abstract base class for most VTK objects
Definition: vtkObject.h:59
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:39
Obsolete / empty subclass of object.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...