v8  3.28.71 (node 0.12.18)
V8 is Google's open source JavaScript engine
Local< T > Class Template Reference

#include <v8.h>

Inheritance diagram for Local< T >:
Collaboration diagram for Local< T >:

Public Member Functions

V8_INLINE Local ()
 
template<class S >
V8_INLINE Local (Local< S > that)
 
template<class S >
V8_INLINE Local (Handle< S > that)
 
template<class S >
V8_INLINE Local< S > As ()
 
- Public Member Functions inherited from Handle< T >
V8_INLINE Handle ()
 
template<class S >
V8_INLINE Handle (Handle< S > that)
 
V8_INLINE bool IsEmpty () const
 
V8_INLINE void Clear ()
 
V8_INLINE T * operator-> () const
 
V8_INLINE T * operator* () const
 
template<class S >
V8_INLINE bool operator== (const Handle< S > &that) const
 
template<class S >
V8_INLINE bool operator== (const PersistentBase< S > &that) const
 
template<class S >
V8_INLINE bool operator!= (const Handle< S > &that) const
 
template<class S >
V8_INLINE bool operator!= (const Persistent< S > &that) const
 
template<class S >
V8_INLINE Handle< S > As ()
 

Static Public Member Functions

template<class S >
static V8_INLINE Local< T > Cast (Local< S > that)
 
static V8_INLINE Local< T > New (Isolate *isolate, Handle< T > that)
 
static V8_INLINE Local< T > New (Isolate *isolate, const PersistentBase< T > &that)
 
- Static Public Member Functions inherited from Handle< T >
template<class S >
static V8_INLINE Handle< T > Cast (Handle< S > that)
 
static V8_INLINE Handle< T > New (Isolate *isolate, Handle< T > that)
 
static V8_INLINE Handle< T > New (Isolate *isolate, const PersistentBase< T > &that)
 

Friends

class Utils
 
template<class F >
class Eternal
 
template<class F >
class PersistentBase
 
template<class F , class M >
class Persistent
 
template<class F >
class Handle
 
template<class F >
class Local
 
template<class F >
class FunctionCallbackInfo
 
template<class F >
class PropertyCallbackInfo
 
class String
 
class Object
 
class Context
 
template<class F >
class internal::CustomArguments
 
class HandleScope
 
class EscapableHandleScope
 
template<class F1 , class F2 , class F3 >
class PersistentValueMap
 
template<class F1 , class F2 >
class PersistentValueVector
 

Detailed Description

template<class T>
class v8::Local< T >

A light-weight stack-allocated object handle. All operations that return objects from within v8 return them in local handles. They are created within HandleScopes, and all local handles allocated within a handle scope are destroyed when the handle scope is destroyed. Hence it is not necessary to explicitly deallocate local handles.

Definition at line 332 of file v8.h.

Constructor & Destructor Documentation

◆ Local() [1/3]

Definition at line 5750 of file v8.h.

References Handle< T >::Handle.

◆ Local() [2/3]

V8_INLINE Local ( Local< S >  that)
inline

This check fails when trying to convert between incompatible handles. For example, converting from a Handle<String> to a Handle<Number>.

Definition at line 335 of file v8.h.

References Handle< T >::Handle.

◆ Local() [3/3]

V8_INLINE Local ( Handle< S >  that)
inline

Definition at line 354 of file v8.h.

References Handle< T >::Handle.

Member Function Documentation

◆ As()

V8_INLINE Local<S> As ( )
inline

Definition at line 359 of file v8.h.

References Handle< T >::Local.

◆ Cast()

static V8_INLINE Local<T> Cast ( Local< S >  that)
inlinestatic

Definition at line 346 of file v8.h.

References Handle< T >::Local.

◆ New() [1/2]

Local< T > New ( Isolate isolate,
const PersistentBase< T > &  that 
)
static

Definition at line 5759 of file v8.h.

◆ New() [2/2]

Local< T > New ( Isolate isolate,
Handle< T >  that 
)
static

Create a local handle for the content of another handle. The referee is kept alive by the local handle even when the original handle is destroyed/disposed.

Definition at line 5754 of file v8.h.

Friends And Related Function Documentation

◆ Context

friend class Context
friend

Definition at line 383 of file v8.h.

◆ EscapableHandleScope

friend class EscapableHandleScope
friend

Definition at line 386 of file v8.h.

◆ Eternal

friend class Eternal
friend

Definition at line 374 of file v8.h.

◆ FunctionCallbackInfo

friend class FunctionCallbackInfo
friend

Definition at line 379 of file v8.h.

◆ Handle

friend class Handle
friend

Definition at line 377 of file v8.h.

◆ HandleScope

friend class HandleScope
friend

Definition at line 385 of file v8.h.

◆ internal::CustomArguments

friend class internal::CustomArguments
friend

Definition at line 384 of file v8.h.

◆ Local

friend class Local
friend

Definition at line 378 of file v8.h.

◆ Object

friend class Object
friend

Definition at line 382 of file v8.h.

◆ Persistent

friend class Persistent
friend

Definition at line 376 of file v8.h.

◆ PersistentBase

friend class PersistentBase
friend

Definition at line 375 of file v8.h.

◆ PersistentValueMap

friend class PersistentValueMap
friend

Definition at line 387 of file v8.h.

◆ PersistentValueVector

friend class PersistentValueVector
friend

Definition at line 388 of file v8.h.

◆ PropertyCallbackInfo

friend class PropertyCallbackInfo
friend

Definition at line 380 of file v8.h.

◆ String

friend class String
friend

Definition at line 381 of file v8.h.

◆ Utils

friend class Utils
friend

Definition at line 373 of file v8.h.


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