]> matita.cs.unibo.it Git - helm.git/blob - helm/DEVEL/mathml_editor/src/TObject.hh
Initial revision
[helm.git] / helm / DEVEL / mathml_editor / src / TObject.hh
1
2 #ifndef __TObject_hh__
3 #define __TObject_hh__
4
5 class TObject
6 {
7 protected:
8   TObject(void) { refCounter = 1; };
9   virtual ~TObject() { };
10
11 public:
12   void ref(coid) const { refCounter++; };
13   void unref(void) const { if (--refCounter) delete this; };
14 };
15
16 #endif // __TObject_hh__