Molybden API
|
Derive C
from JsProxyObjectImpl<C>
via CRTP pattern and implement the interface of JsProxyObject
.
More...
#include <js_proxy_object.hpp>
Additional Inherited Members | |
Public Member Functions inherited from molybden::JsProxyObject | |
template<class T > | |
std::shared_ptr< T > | as () |
Downcasts the object to the appropriate proxy type. | |
virtual JsReturnValue | call (const std::string &method_name, const std::vector< JsValue > &args)=0 |
Called when the JavaScript proxy object method with method_name has been called in the corresponding JavaScript object with args passed. | |
virtual JsValue | getProperty (const std::string &property_name)=0 |
Called when the JavaScript proxy object property with property_name has been accessed to read. | |
virtual bool | setProperty (const std::string &property_name, const JsValue &value)=0 |
Called when the JavaScript proxy object property with property_name has been accessed to write. | |
virtual bool | hasMethod (const std::string &method_name)=0 |
Called when the JavaScript engine requests whether the proxy object has the method with method_name . | |
virtual bool | hasProperty (const std::string &property_name)=0 |
Called when the JavaScript engine requests whether the proxy object has the property with property_name . | |
virtual std::string | getType ()=0 |
Called when the JavaScript engine requests the proxy object type name. | |
virtual std::vector< std::string > | enumerateMembers ()=0 |
Called when the JavaScript engine requests all the members of the proxy object. | |
template<> | |
std::shared_ptr< JsProxyObject > | as () |
Derive C
from JsProxyObjectImpl<C>
via CRTP pattern and implement the interface of JsProxyObject
.
C | the class to make a proxy of. |