26 #ifndef __TERRALIB_COMMON_INTERNAL_HOLDER_H
27 #define __TERRALIB_COMMON_INTERNAL_HOLDER_H
30 #include <boost/noncopyable.hpp>
43 template<
class T>
struct Holder :
public boost::noncopyable
An auxiliary data structure for helping to control the garbage collection of C++ objects.
bool m_isOwner
If true it specifies that JsObject has the ownership of the C++ handle.
Holder(T *handle, bool isOwner)
Initializes a new garbage collection helper object.
~Holder()
The destructor will check if it is necessary to release the C++ object handle.
T * m_handle
A pointer to a C++ object.