Loading...
Searching...
No Matches
JSContextabstract

#include <Ultralight/JavaScript.h>

Overview

This class wraps a JSContextRef (a JavaScript execution context for use with JavaScriptCore) and locks the context on the current thread for the duration of its lifetime.

Inheritance diagram for JSContext:
RefCounted

Public Member Functions

virtual JSContextRef ctx ()=0
 Get the underlying JSContextRef for use with JavaScriptCore C API.
 
 operator JSContextRef ()
 Typecast to a JSContextRef for use with JavaScriptCore C API.
 
- Public Member Functions inherited from RefCounted
virtual void AddRef () const =0
 
virtual void Release () const =0
 
virtual int ref_count () const =0
 

Protected Member Functions

virtual ~JSContext ()
 
- Protected Member Functions inherited from RefCounted
virtual ~RefCounted ()
 

Constructor & Destructor Documentation

◆ ~JSContext()

virtual ~JSContext ( )
protectedvirtual

Member Function Documentation

◆ ctx()

virtual JSContextRef ctx ( )
pure virtual

Get the underlying JSContextRef for use with JavaScriptCore C API.

◆ operator JSContextRef()

operator JSContextRef ( )

Typecast to a JSContextRef for use with JavaScriptCore C API.


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