Molybden API
Loading...
Searching...
No Matches
molybden::JsProxyObjectImpl< C > Class Template Reference

Derive C from JsProxyObjectImpl<C> via CRTP pattern and implement the interface of JsProxyObject. More...

#include <js_proxy_object.hpp>

Inheritance diagram for molybden::JsProxyObjectImpl< C >:
molybden::JsProxyObject molybden::JsAccessible< JsProxyFunctionObjectBase > molybden::JsAccessible< C >

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< JsProxyObjectas ()
 

Detailed Description

template<class C>
class molybden::JsProxyObjectImpl< C >

Derive C from JsProxyObjectImpl<C> via CRTP pattern and implement the interface of JsProxyObject.

Template Parameters
Cthe class to make a proxy of.

The documentation for this class was generated from the following files: