sharelib/DefaultRefCounter.h

Go to the documentation of this file.
00001 #ifndef DEFAULT_REFCOUNTER_H
00002 #define DEFAULT_REFCOUNTER_H
00003 
00012 #include "sharelib.h"
00013 
00014 namespace Share {
00015 
00021   class DefaultRefCounter/*: public AbstractRefCounter*/ {
00022     public:
00026       DefaultRefCounter() throw (ShareException);
00027       ~DefaultRefCounter();
00028 
00032       void notifyAttach();
00033 
00037       void notifyDetach();
00038 
00042       int refCount() const;
00043 
00047       void unlink();
00048 
00052       bool isUnlinked() const;
00053 
00058       bool shouldBeDestroyed() const;
00059     private:
00060       int refCount_;
00061       bool unlinked_;
00062   };
00063 
00064 }
00065 
00066 #endif // DEFAULT_REFCOUNTER_H

Generated on Sun Aug 26 17:42:59 2007 for ShareLibrary by  doxygen 1.5.2