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