37 INT <<
"~ReferenceCounted: nonzero reference count" << std::endl;
38 throw std::out_of_range(
"~ReferenceCounted: nonzero reference count" );
44 INT <<
"ReferenceCounted::unref: zero reference count" << std::endl;
45 throw std::out_of_range(
"ReferenceCounted::unref: zero reference count" );
50 return str <<
"ReferenceCounted(@" << (
const void *)
this
virtual ~ReferenceCounted()
Dtor.
virtual std::ostream & dumpOn(std::ostream &str) const
Overload to realize std::ostream & operator<<.
unsigned _counter
The reference counter.
Base class for reference counted objects.
void unrefException() const
Throws Exception on unref.
ReferenceCounted()
Default ctor.