00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef RCBase_h
00011 #define RCBase_h 1
00012 namespace Genfun {
00017 class RCBase
00018 {
00019
00020 public:
00021
00022 RCBase();
00023
00024
00025 void ref() const;
00026
00027 void unref() const;
00028
00029 unsigned int refCount() const;
00030
00031
00032 protected:
00033
00034 virtual ~RCBase();
00035
00036 private:
00037
00038 RCBase(const RCBase &right);
00039
00040 const RCBase & operator=(const RCBase &right);
00041
00042 mutable unsigned short int _count;
00043
00044
00045
00046 };
00047
00048
00049
00050 }
00051
00052
00053 #endif
00054
00055