V8
Public Member Functions | Static Public Member Functions | Friends | List of all members
v8::Local< T > Class Template Reference

#include <v8.h>

Inheritance diagram for v8::Local< T >:
v8::Handle< T >

Public Member Functions

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 v8::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

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 v8::Handle< T >
template<class S >
static V8_INLINE Handle< T > Cast (Handle< S > that)

Friends

class Utils
class Eternal
class PersistentBase
class Persistent
class Handle
class Local
class FunctionCallbackInfo
class PropertyCallbackInfo
class String
class Object
class Context
class internal::CustomArguments
class HandleScope
class EscapableHandleScope
class PersistentValueMap
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.

Constructor & Destructor Documentation

template<class T>
template<class S >
V8_INLINE v8::Local< T >::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>.

Member Function Documentation

template<class T>
Local< T > v8::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.

Reimplemented from v8::Handle< T >.


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