]> SALOME platform Git repositories - modules/yacs.git/blob - src/engine/RefCounter.hxx
Salome HOME
copy tag mergefrom_BR_V0_1_CC_Salome_04oct07
[modules/yacs.git] / src / engine / RefCounter.hxx
1 #ifndef __REFCOUNTER_HXX__
2 #define __REFCOUNTER_HXX__
3
4 namespace YACS
5 {
6   namespace ENGINE
7   {
8     class RefCounter
9     {
10     public:
11       unsigned int getRefCnt() const { return _cnt; }
12       void incrRef() const;
13       bool decrRef();
14       static unsigned int _totalCnt;
15     protected:
16       RefCounter();
17       virtual ~RefCounter();
18     protected:
19       mutable unsigned int _cnt;
20     };
21   }
22 }
23
24 #endif