Public Member Functions | Friends

js::Value Class Reference

#include <jsvalue.h>

Collaboration diagram for js::Value:

List of all members.

Public Member Functions

void setNull ()
void setUndefined ()
void setInt32 (int32 i)
int32getInt32Ref ()
void setDouble (double d)
double & getDoubleRef ()
void setString (JSString *str)
void setObject (JSObject &obj)
void setBoolean (bool b)
void setMagic (JSWhyMagic why)
void setMagicWithObjectOrNullPayload (JSObject *obj)
JSObjectgetMagicObjectOrNullPayload () const
void setNumber (uint32 ui)
void setNumber (double d)
void setObjectOrNull (JSObject *arg)
void setObjectOrUndefined (JSObject *arg)
void swap (Value &rhs)
bool isUndefined () const
bool isNull () const
bool isNullOrUndefined () const
bool isInt32 () const
bool isInt32 (int32 i32) const
bool isDouble () const
bool isNumber () const
bool isString () const
bool isObject () const
bool isPrimitive () const
bool isObjectOrNull () const
bool isGCThing () const
bool isBoolean () const
bool isTrue () const
bool isFalse () const
bool isMagic () const
bool isMagic (JSWhyMagic why) const
bool hasPtrPayload () const
bool isMarkable () const
int32 gcKind () const
bool operator== (const Value &rhs) const
bool operator!= (const Value &rhs) const
int32 toInt32 () const
double toDouble () const
double toNumber () const
JSStringtoString () const
JSObjecttoObject () const
JSObjecttoObjectOrNull () const
void * toGCThing () const
bool toBoolean () const
uint32 payloadAsRawUint32 () const
uint64 asRawBits () const
JSValueType extractNonDoubleType () const
JSValueTag extractNonDoubleTag () const
void unboxNonDoubleTo (uint64 *out) const
void boxNonDoubleFrom (JSValueType type, uint64 *out)
JSValueType extractNonDoubleObjectTraceType () const
JSValueTag extractNonDoubleObjectTraceTag () const
void setPrivate (void *ptr)
void * toPrivate () const
void setPrivateUint32 (uint32 ui)
uint32 toPrivateUint32 () const
uint32getPrivateUint32Ref ()
void setUnmarkedPtr (void *ptr)
void * toUnmarkedPtr () const
const jsuwordpayloadWord () const

Friends

bool SameType (const Value &lhs, const Value &rhs)

Member Function Documentation

uint64 js::Value::asRawBits (  )  const [inline]
void js::Value::boxNonDoubleFrom ( JSValueType  type,
uint64 out 
) [inline]
JSValueTag js::Value::extractNonDoubleObjectTraceTag (  )  const [inline]
JSValueType js::Value::extractNonDoubleObjectTraceType (  )  const [inline]
JSValueTag js::Value::extractNonDoubleTag (  )  const [inline]
JSValueType js::Value::extractNonDoubleType (  )  const [inline]
int32 js::Value::gcKind (  )  const [inline]
double& js::Value::getDoubleRef (  )  [inline]
int32& js::Value::getInt32Ref (  )  [inline]
JSObject* js::Value::getMagicObjectOrNullPayload (  )  const [inline]
uint32& js::Value::getPrivateUint32Ref (  )  [inline]
bool js::Value::hasPtrPayload (  )  const [inline]
bool js::Value::isBoolean (  )  const [inline]
bool js::Value::isDouble (  )  const [inline]
bool js::Value::isFalse (  )  const [inline]
bool js::Value::isGCThing (  )  const [inline]
bool js::Value::isInt32 (  )  const [inline]
bool js::Value::isInt32 ( int32  i32  )  const [inline]
bool js::Value::isMagic (  )  const [inline]
bool js::Value::isMagic ( JSWhyMagic  why  )  const [inline]
bool js::Value::isMarkable (  )  const [inline]
bool js::Value::isNull (  )  const [inline]
bool js::Value::isNullOrUndefined (  )  const [inline]
bool js::Value::isNumber (  )  const [inline]
bool js::Value::isObject (  )  const [inline]
bool js::Value::isObjectOrNull (  )  const [inline]
bool js::Value::isPrimitive (  )  const [inline]
bool js::Value::isString (  )  const [inline]
bool js::Value::isTrue (  )  const [inline]
bool js::Value::isUndefined (  )  const [inline]
bool js::Value::operator!= ( const Value rhs  )  const [inline]
bool js::Value::operator== ( const Value rhs  )  const [inline]
uint32 js::Value::payloadAsRawUint32 (  )  const [inline]
const jsuword* js::Value::payloadWord (  )  const [inline]
void js::Value::setBoolean ( bool  b  )  [inline]
void js::Value::setDouble ( double  d  )  [inline]
void js::Value::setInt32 ( int32  i  )  [inline]
void js::Value::setMagic ( JSWhyMagic  why  )  [inline]
void js::Value::setMagicWithObjectOrNullPayload ( JSObject obj  )  [inline]
void js::Value::setNull (  )  [inline]
void js::Value::setNumber ( uint32  ui  )  [inline]
void js::Value::setNumber ( double  d  )  [inline]
void js::Value::setObject ( JSObject obj  )  [inline]
void js::Value::setObjectOrNull ( JSObject arg  )  [inline]
void js::Value::setObjectOrUndefined ( JSObject arg  )  [inline]
void js::Value::setPrivate ( void *  ptr  )  [inline]
void js::Value::setPrivateUint32 ( uint32  ui  )  [inline]
void js::Value::setString ( JSString str  )  [inline]
void js::Value::setUndefined (  )  [inline]
void js::Value::setUnmarkedPtr ( void *  ptr  )  [inline]
void js::Value::swap ( Value rhs  )  [inline]
bool js::Value::toBoolean (  )  const [inline]
double js::Value::toDouble (  )  const [inline]
void* js::Value::toGCThing (  )  const [inline]
int32 js::Value::toInt32 (  )  const [inline]
double js::Value::toNumber (  )  const [inline]
JSObject& js::Value::toObject (  )  const [inline]
JSObject* js::Value::toObjectOrNull (  )  const [inline]
void* js::Value::toPrivate (  )  const [inline]
uint32 js::Value::toPrivateUint32 (  )  const [inline]
JSString* js::Value::toString (  )  const [inline]
void* js::Value::toUnmarkedPtr (  )  const [inline]
void js::Value::unboxNonDoubleTo ( uint64 out  )  const [inline]

Friends And Related Function Documentation

bool SameType ( const Value lhs,
const Value rhs 
) [friend]

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