00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkReferenceCount.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00023 #ifndef __vtkReferenceCount_h 00024 #define __vtkReferenceCount_h 00025 00026 #include "vtkObject.h" 00027 00028 class VTK_COMMON_EXPORT vtkReferenceCount : public vtkObject 00029 { 00030 public: 00031 static vtkReferenceCount *New(); 00032 00033 vtkTypeMacro(vtkReferenceCount,vtkObject); 00034 void PrintSelf(ostream& os, vtkIndent indent); 00035 00036 protected: 00037 vtkReferenceCount(); 00038 ~vtkReferenceCount(); 00039 00040 private: 00041 vtkReferenceCount(const vtkReferenceCount&); // Not implemented. 00042 void operator=(const vtkReferenceCount&); // Not implemented. 00043 }; 00044 00045 00046 #endif 00047