A class for keeping reference to a persistent context. More...
#include <JsContext.h>
Public Member Functions | |
| ::v8::Persistent<::v8::Context > | getCtx () const |
| JsContext () | |
| Default constructor. More... | |
| ~JsContext () | |
| Destructor. More... | |
Private Member Functions | |
| JsContext (const JsContext &rhs) | |
| Copy constructor not allowed. More... | |
| JsContext & | operator= (const JsContext &rhs) |
| Assignment operator not allowed. More... | |
Private Attributes | |
| ::v8::Persistent<::v8::Context > | m_ctx |
| The context to run JavaScript code. More... | |
A class for keeping reference to a persistent context.
As stated in the Google's V8 JavaScript Engine, a context is an executiion environment that allows separate, unrelated, JavaScript applications to run in a single instance of V8.
In TerraLib, several plugins can use the same context.
Definition at line 54 of file JsContext.h.
| te::v8::common::JsContext::JsContext | ( | ) |
| te::v8::common::JsContext::~JsContext | ( | ) |
|
private |
Copy constructor not allowed.
| rhs | The right-hand-side copy that would be used to copy from. |
|
inline |
Definition at line 64 of file JsContext.h.
Assignment operator not allowed.
| rhs | The right-hand-side copy that would be used to copy from. |
|
private |
The context to run JavaScript code.
Definition at line 89 of file JsContext.h.
Referenced by JsContext(), and ~JsContext().