VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/IO/Xdmf3/vtkXdmf3ArrayKeeper.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkXdmf3ArrayKeeper.h
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00032 #ifndef vtkXdmf3ArrayKeeper_h
00033 #define vtkXdmf3ArrayKeeper_h
00034 
00035 #include "vtkIOXdmf3Module.h" // For export macro
00036 #include <map>
00037 
00038 class XdmfArray;
00039 
00040 class VTKIOXDMF3_EXPORT vtkXdmf3ArrayKeeper
00041   : public std::map<XdmfArray *, unsigned int>
00042 {
00043 public:
00045   vtkXdmf3ArrayKeeper();
00046 
00048   ~vtkXdmf3ArrayKeeper();
00049 
00051   void BumpGeneration();
00052 
00054   void Insert(XdmfArray *val);
00055 
00058   void Release(bool force);
00059 
00060 private:
00061   unsigned int generation;
00062 };
00063 
00064 #endif //vtkXdmf3ArrayKeeper_h