91 if (ptr && ptr->is_unreferenced())
95 bool null()
const {
return ptr == NULL; }
97 int shareing(
void)
const {
return ptr?(ptr->refcount() > 1):0; }
102 (h.ptr)->inc_refcount();
105 if (ptr && ptr->is_unreferenced())
117 t_ptr->inc_refcount();
120 if (ptr && ptr->is_unreferenced())
127 return ptr?(ptr->object_ptr()):(
ObjectT *)NULL;
130 operator const ObjectT *()
const {
131 return ptr?(ptr->object_ptr()):(
const ObjectT *)NULL;
144 {
return a.ptr==b.ptr; }
146 {
return !( a==b ); }
149 {
return s <<
"HANDLE"; }