8#ifndef META_OCEAN_INTERACTION_JS_OBJECT_H
9#define META_OCEAN_INTERACTION_JS_OBJECT_H
29template <
typename T,
typename TNative>
59 static inline v8::Local<v8::Value>
create(
NativeType&& value,
const v8::Local<v8::Context>& context);
75template <
typename T,
typename TNative>
78template <
typename T,
typename TNative>
81template <
typename T,
typename TNative>
86 T::createFunctionTemplate();
94template <
typename T,
typename TNative>
101template <
typename T,
typename TNative>
107template <
typename T,
typename TNative>
This class implements the base class for all JavaScript wrappers.
Definition JSBase.h:34
static v8::Local< v8::Value > createObject(typename T::NativeType &&value, const v8::Local< v8::Context > &context)
Creates an JavaScript value for a given C++ wrapper object.
Definition JSBase.h:351
This class implements the base class for all native wrapper of JavaScript objects.
Definition JSObject.h:31
static void release()
Releases the function and object template for this object.
Definition JSObject.h:108
static v8::Local< v8::FunctionTemplate > functionTemplate()
Returns the function template for this object.
Definition JSObject.h:82
TNative NativeType
Definition of the native data type which is wrapped by this Java Script object.
Definition JSObject.h:37
static v8::Persistent< v8::ObjectTemplate > objectTemplate_
Object template for the Vector2 object.
Definition JSObject.h:72
static v8::Local< v8::Value > create(NativeType &&value, const v8::Local< v8::Context > &context)
Creates an new wrapped object.
Definition JSObject.h:102
static v8::Local< v8::ObjectTemplate > objectTemplate()
Returns the object template for this object.
Definition JSObject.h:95
static v8::Persistent< v8::FunctionTemplate > functionTemplate_
Function template for the Vector2 object.
Definition JSObject.h:69
Namespace of the Interaction JavaScript library.
Definition JavaScript.h:24
Namespace of the Interaction library.
Definition Empty.h:19
The namespace covering the entire Ocean framework.
Definition Accessor.h:15