HDF5 C++ API Reference Manual

 

 

 

Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Examples

H5RefCounter.h

Go to the documentation of this file.
00001 // C++ informative line for the emacs editor: -*- C++ -*- 00002 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 00003 * Copyright by the Board of Trustees of the University of Illinois. * 00004 * All rights reserved. * 00005 * * 00006 * This file is part of HDF5. The full HDF5 copyright notice, including * 00007 * terms governing use, modification, and redistribution, is contained in * 00008 * the files COPYING and Copyright.html. COPYING can be found at the root * 00009 * of the source code distribution tree; Copyright.html can be found at the * 00010 * root level of an installed copy of the electronic HDF5 document set and * 00011 * is linked from the top-level documents page. It can also be found at * 00012 * http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have * 00013 * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * 00014 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ 00015 00016 #ifndef _H5RefCounter_H 00017 #define _H5RefCounter_H 00018 00019 00020 #ifndef H5_NO_NAMESPACE 00021 namespace H5 { 00022 #endif 00023 00027 00028 class H5_DLLCPP RefCounter { 00029 public: 00030 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00031 int getCounter () const; 00032 void increment(); 00033 void decrement(); 00034 00035 // this bool function is used to determine whether to close an 00036 // HDF5 object when there are no more reference to that object 00037 bool noReference(); 00038 00039 // Creates a reference counter to be used by an HDF5 object. 00040 RefCounter(); 00041 00042 ~RefCounter(); 00043 #endif // DOXYGEN_SHOULD_SKIP_THIS 00044 00045 private: 00046 int counter; // keeps track of number of copies of an object 00047 }; 00048 #ifndef H5_NO_NAMESPACE 00049 } 00050 #endif 00051 #endif

Generated on Thu Aug 5 00:22:37 2004 by doxygen 1.3.7-20040718