Public Member Functions | Static Public Member Functions

v8::Local< T > Class Template Reference

#include <v8.h>

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

List of all members.

Public Member Functions

template<class S >
 Local (Local< S > that)
template<class S >
 Local (S *that)
template<class S >
Local< S > As ()

Static Public Member Functions

template<class S >
static Local< T > Cast (Local< S > that)
static Local< T > New (Handle< T > that)

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::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 ( Handle< T >  that  )  [inline, 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.

References v8::HandleScope::CreateHandle(), and v8::Handle< T >::IsEmpty().


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