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
Namespace for the Common module of TerraLib.
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.