22 #ifndef _DOM_RefCountImpl_h_
23 #define _DOM_RefCountImpl_h_
25 #include <tdelibs_export.h>
36 class TDEHTML_EXPORT DomShared
39 DomShared() : _ref( 0 ) {}
44 virtual bool deleteMe();
46 void ref() { _ref++; }
47 void deref() {
if(_ref) _ref--;
if(!_ref && deleteMe())
delete this; }
48 bool hasOneRef()
const {
return _ref == 1; }
49 unsigned int refCount()
const {
return _ref; }
The Document Object Model (DOM) is divided into two parts, the COREDOM core DOM, specifying some core...