18 #ifndef INCLUDED_SCRIPTVAL
19 #define INCLUDED_SCRIPTVAL
22 #include <boost/shared_ptr.hpp>
38 const jsval&
get()
const {
return m_Val; }
91 JSIdArray*
get()
const;
100 #endif // INCLUDED_SCRIPTVAL
bool uninitialised() const
Returns whether the value is uninitialised.
boost::shared_ptr< jsval > m_Val
A trivial wrapper around a jsval.
AutoJSIdArray(JSContext *cx, JSIdArray *ida)
bool undefined() const
Returns whether the value is uninitialised or is JSVAL_VOID.
NONCOPYABLE(AutoJSIdArray)
jsid operator[](size_t i) const
jsval & getRef() const
Returns reference to the current value.
bool undefined() const
Returns whether the value is JSVAL_VOID.
RAII wrapper for JSIdArray*.