An auxiliary data structure for helping to control the garbage collection of wrapped C++ objects associated to JavaScript objects in Google's V8 engine. More...
#include <JsObject.h>
Public Member Functions | |
| JsObject (T *handle, bool isOwner) | |
| Initializes a new garbage collection helper object. More... | |
| ~JsObject () | |
| The destructor will check if it is necessary to release the C++ object handle. More... | |
Public Attributes | |
| T * | m_handle |
| A pointer to a C++ object. More... | |
| bool | m_isOwner |
| If true it specifies that JsObject has the ownership of the C++ handle. More... | |
An auxiliary data structure for helping to control the garbage collection of wrapped C++ objects associated to JavaScript objects in Google's V8 engine.
Definition at line 43 of file JsObject.h.
|
inline |
Initializes a new garbage collection helper object.
| handle | A pointer to a C++ object. |
| isOwner | If true the JsObject will have the ownership of the pointer. |
Definition at line 54 of file JsObject.h.
|
inline |
The destructor will check if it is necessary to release the C++ object handle.
Definition at line 61 of file JsObject.h.
References te::v8::common::JsObject< T >::m_handle.
| T* te::v8::common::JsObject< T >::m_handle |
A pointer to a C++ object.
Definition at line 45 of file JsObject.h.
Referenced by te::v8::common::Unwrap(), te::v8::common::UnwrapAndLooseOwnership(), and te::v8::common::JsObject< T >::~JsObject().
| bool te::v8::common::JsObject< T >::m_isOwner |
If true it specifies that JsObject has the ownership of the C++ handle.
Definition at line 46 of file JsObject.h.
Referenced by te::v8::common::LooseOwnership(), and te::v8::common::UnwrapAndLooseOwnership().