Go to the documentation of this file.
12 #ifndef CA_MGM_REFERENCECOUNTED_H
13 #define CA_MGM_REFERENCECOUNTED_H
94 {
if( ptr_r ) ptr_r->
ref(); }
100 {
if( ptr_r ) ptr_r->
unref(); }
104 virtual std::ostream &
dumpOn( std::ostream & str )
const;
134 {
return obj.
dumpOn( str ); }
140 #define IMPL_PTR_TYPE(NAME) \
141 void intrusive_ptr_add_ref( const NAME * ptr_r ) \
142 { ca_mgm::ReferenceCounted::add_ref( ptr_r ); } \
143 void intrusive_ptr_release( const NAME * ptr_r ) \
144 { ca_mgm::ReferenceCounted::release( ptr_r ); }
147 #endif // CA_MGM_REFERENCECOUNTED_H