14#include <zypp-core/base/Logger.h>
15#include <zypp-core/base/Exception.h>
16#include <zypp-core/base/ReferenceCounted.h>
37 INT <<
"~ReferenceCounted: nonzero reference count" << std::endl;
43 INT <<
"ReferenceCounted::unref: zero reference count" << std::endl;
44 throw std::out_of_range(
"ReferenceCounted::unref: zero reference count" );
49 return str <<
"ReferenceCounted(@" << (
const void *)
this
Base class for reference counted objects.
virtual ~ReferenceCounted()
Dtor.
virtual std::ostream & dumpOn(std::ostream &str) const
Overload to realize std::ostream & operator<<.
void unrefException() const
Throws Exception on unref.
unsigned _counter
The reference counter.
ReferenceCounted()
Default ctor.
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.