Main Page   Class Hierarchy   Compound List   File List   Compound Members  

rcBase.h

00001 //////////////////////////////////////////////////////////////////////
00002 // Copyright (c) 2001-2002 David Pritchard <drpritch@alumni.uwaterloo.ca>
00003 // 
00004 // This program is free software; you can redistribute it and/or
00005 // modify it under the terms of the GNU Lesser General Public License
00006 // as published by the Free Software Foundation; either
00007 // version 2 of the License, or (at your option) any later
00008 // version.
00009 // 
00010 // This program is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 // GNU Lesser General Public License for more details.
00014 // 
00015 // You should have received a copy of the GNU Lesser General Public License
00016 // along with this program; if not, write to the Free Software
00017 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00018 
00019 #ifndef freecloth_resmgt_rcBase_h
00020 #define freecloth_resmgt_rcBase_h
00021 
00022 #ifndef freecloth_resmgt_package_h
00023 #include <freecloth/resmgt/package.h>
00024 #endif
00025 
00026 FREECLOTH_NAMESPACE_START
00027 
00028 ////////////////////////////////////////////////////////////////////////////////
00029 // FORWARD DECLARATIONS
00030 
00031 class RCShdPtrBase;
00032 
00033 ////////////////////////////////////////////////////////////////////////////////
00034 /*!
00035  * \class RCBase freecloth/resmgt/rcBase.h
00036  * \brief Base class for reference-counted objects.
00037  *
00038  * This class contains a reference count, for use with the RCShdPtr<>
00039  * smart pointer class. Any object that is intended to be usable as a
00040  * smart-pointed object should derive from this.
00041  */
00042 class RCBase
00043 {
00044 protected:
00045     UInt32 _rcCount;
00046 
00047     //----- member functions -----
00048     RCBase();
00049     RCBase( RCBase const& );
00050     virtual ~RCBase();
00051 
00052     friend class RCShdPtrBase;
00053 };
00054 
00055 FREECLOTH_NAMESPACE_END
00056 #endif

Generated on Wed Apr 23 15:58:46 2003 for Freecloth by doxygen1.3-rc3