v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
External Class Reference

#include <v8.h>

Inheritance diagram for External:
Collaboration diagram for External:

Public Member Functions

V8EXPORT void * Value () const
 
- Public Member Functions inherited from Value
bool IsUndefined () const
 
bool IsNull () const
 
V8EXPORT bool IsTrue () const
 
V8EXPORT bool IsFalse () const
 
bool IsString () const
 
V8EXPORT bool IsFunction () const
 
V8EXPORT bool IsArray () const
 
V8EXPORT bool IsObject () const
 
V8EXPORT bool IsBoolean () const
 
V8EXPORT bool IsNumber () const
 
V8EXPORT bool IsExternal () const
 
V8EXPORT bool IsInt32 () const
 
V8EXPORT bool IsUint32 () const
 
V8EXPORT bool IsDate () const
 
V8EXPORT bool IsBooleanObject () const
 
V8EXPORT bool IsNumberObject () const
 
V8EXPORT bool IsStringObject () const
 
V8EXPORT bool IsNativeError () const
 
V8EXPORT bool IsRegExp () const
 
V8EXPORT Local< BooleanToBoolean () const
 
V8EXPORT Local< NumberToNumber () const
 
V8EXPORT Local< StringToString () const
 
V8EXPORT Local< StringToDetailString () const
 
V8EXPORT Local< ObjectToObject () const
 
V8EXPORT Local< IntegerToInteger () const
 
V8EXPORT Local< Uint32ToUint32 () const
 
V8EXPORT Local< Int32ToInt32 () const
 
V8EXPORT Local< Uint32ToArrayIndex () const
 
V8EXPORT bool BooleanValue () const
 
V8EXPORT double NumberValue () const
 
V8EXPORT int64_t IntegerValue () const
 
V8EXPORT uint32_t Uint32Value () const
 
V8EXPORT int32_t Int32Value () const
 
V8EXPORT bool Equals (Handle< Value > that) const
 
V8EXPORT bool StrictEquals (Handle< Value > that) const
 

Static Public Member Functions

static V8EXPORT Local< ValueWrap (void *data)
 
static void * Unwrap (Handle< Value > obj)
 
static V8EXPORT Local< ExternalNew (void *value)
 
static ExternalCast (Value *obj)
 

Detailed Description

A JavaScript value that wraps a C++ void*. This type of value is mainly used to associate C++ data structures with JavaScript objects.

The Wrap function V8 will return the most optimal Value object wrapping the C++ void*. The type of the value is not guaranteed to be an External object and no assumptions about its type should be made. To access the wrapped value Unwrap should be used, all other operations on that object will lead to unpredictable results.

Definition at line 1958 of file v8.h.

Member Function Documentation

External * Cast ( v8::Value value)
inlinestatic

Definition at line 4605 of file v8.h.

Local< External > New ( void *  value)
static

Definition at line 4752 of file api.cc.

References ENTER_V8, LOG_API, and STATIC_ASSERT.

Referenced by THREADED_TEST().

void * Unwrap ( Handle< Value obj)
inlinestatic

Definition at line 4382 of file v8.h.

Referenced by THREADED_TEST().

void * Value ( ) const

Definition at line 4762 of file api.cc.

Referenced by THREADED_TEST().

Local< Value > Wrap ( void *  data)
static

Definition at line 4707 of file api.cc.

References ASSERT_EQ, ENTER_V8, LOG_API, STATIC_ASSERT, and Utils::ToLocal().

Referenced by THREADED_TEST().


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