Pyrogenesis
13997
|
#include <ScriptVal.h>
Public Member Functions | |
CScriptValRooted () | |
CScriptValRooted (JSContext *cx, jsval val) | |
CScriptValRooted (JSContext *cx, CScriptVal val) | |
jsval | get () const |
Returns the current value (or JSVAL_VOID if uninitialised). More... | |
jsval & | getRef () const |
Returns reference to the current value. More... | |
bool | undefined () const |
Returns whether the value is uninitialised or is JSVAL_VOID. More... | |
bool | uninitialised () const |
Returns whether the value is uninitialised. More... | |
Private Attributes | |
boost::shared_ptr< jsval > | m_Val |
Definition at line 49 of file ScriptVal.h.
|
inline |
Definition at line 52 of file ScriptVal.h.
CScriptValRooted::CScriptValRooted | ( | JSContext * | cx, |
jsval | val | ||
) |
Definition at line 31 of file ScriptVal.cpp.
CScriptValRooted::CScriptValRooted | ( | JSContext * | cx, |
CScriptVal | val | ||
) |
Definition at line 38 of file ScriptVal.cpp.
jsval CScriptValRooted::get | ( | ) | const |
Returns the current value (or JSVAL_VOID if uninitialised).
Definition at line 45 of file ScriptVal.cpp.
jsval & CScriptValRooted::getRef | ( | ) | const |
Returns reference to the current value.
Fails if the value is not yet initialised.
Definition at line 52 of file ScriptVal.cpp.
bool CScriptValRooted::undefined | ( | ) | const |
Returns whether the value is uninitialised or is JSVAL_VOID.
Definition at line 58 of file ScriptVal.cpp.
bool CScriptValRooted::uninitialised | ( | ) | const |
Returns whether the value is uninitialised.
Definition at line 63 of file ScriptVal.cpp.
|
private |
Definition at line 78 of file ScriptVal.h.