An auxiliary data structure for helping to control the garbage collection of C++ objects. More...
#include <Holder.h>
Public Member Functions | |
T * | get () const |
Holder (T *handle, bool isOwner) | |
Initializes a new garbage collection helper object. | |
T & | operator* () const |
T * | operator-> () const |
~Holder () | |
The destructor will check if it is necessary to release the C++ object handle. | |
Public Attributes | |
T * | m_handle |
A pointer to a C++ object. | |
bool | m_isOwner |
If true it specifies that JsObject has the ownership of the C++ handle. | |
An auxiliary data structure for helping to control the garbage collection of C++ objects.
|
inline |
|
inline |
The destructor will check if it is necessary to release the C++ object handle.
Definition at line 61 of file Holder.h.
References te::common::Holder< T >::m_handle, and te::common::Holder< T >::m_isOwner.
|
inline |
Definition at line 77 of file Holder.h.
References te::common::Holder< T >::m_handle.
|
inline |
Definition at line 67 of file Holder.h.
References te::common::Holder< T >::m_handle.
|
inline |
Definition at line 72 of file Holder.h.
References te::common::Holder< T >::m_handle.
T* te::common::Holder< T >::m_handle |
A pointer to a C++ object.
Definition at line 45 of file Holder.h.
Referenced by te::common::Holder< T >::get(), te::common::Holder< T >::operator*(), te::common::Holder< T >::operator->(), and te::common::Holder< T >::~Holder().
bool te::common::Holder< T >::m_isOwner |
If true it specifies that JsObject has the ownership of the C++ handle.
Definition at line 46 of file Holder.h.
Referenced by te::common::Holder< T >::~Holder().