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
void detach()
Decreases the number of references to this object. Destroy it if there are no more references to it...
void attach()
Increases the number of references to this object.
int refCount()
Returns the number of references to this object.
void intrusive_ptr_release(Counted *p)
void intrusive_ptr_add_ref(Counted *p)
int m_refCount
The number of references to this object.
virtual ~Counted()
Destructor.
A counted class keeps track of how many abstract instances are pointing to it.