Go to the documentation of this file.
12 #ifndef ZYPP_BASE_REFERENCECOUNTED_H
13 #define ZYPP_BASE_REFERENCECOUNTED_H
87 {
if( ptr_r ) ptr_r->
ref(); }
93 {
if( ptr_r ) ptr_r->
unref(); }
97 virtual std::ostream &
dumpOn( std::ostream & str )
const;
127 {
return obj.
dumpOn( str ); }
136 #define IMPL_PTR_TYPE(NAME) \
137 void intrusive_ptr_add_ref( const NAME * ptr_r ) \
138 { zypp::base::ReferenceCounted::add_ref( ptr_r ); } \
139 void intrusive_ptr_release( const NAME * ptr_r ) \
140 { zypp::base::ReferenceCounted::release( ptr_r ); }
143 #endif // ZYPP_BASE_REFERENCECOUNTED_H