26 #ifndef __TERRALIB_COMMON_INTERNAL_COUNTED_H
27 #define __TERRALIB_COMMON_INTERNAL_COUNTED_H
30 #include <boost/noncopyable.hpp>
107 #endif // __TERRALIB_COMMON_INTERNAL_COUNTED_H
virtual ~Counted()
Destructor.
void detach()
Decreases the number of references to this object. Destroy it if there are no more references to it...
int refCount()
Returns the number of references to this object.
void attach()
Increases the number of references to this object.
A counted class keeps track of how many abstract instances are pointing to it.
int m_refCount
The number of references to this object.
void intrusive_ptr_add_ref(Counted *p)
void intrusive_ptr_release(Counted *p)