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
Local< T > Class Template Reference

#include <v8.h>

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

Public Member Functions

 Local ()
 
template<class S >
 Local (Local< S > that)
 
template<class S >
 Local (S *that)
 
template<class S >
Local< SAs ()
 
- Public Member Functions inherited from Handle< T >
 Handle ()
 
 Handle (T *val)
 
template<class S >
 Handle (Handle< S > that)
 
bool IsEmpty () const
 
void Clear ()
 
Toperator-> () const
 
Toperator* () const
 
template<class S >
bool operator== (Handle< S > that) const
 
template<class S >
bool operator!= (Handle< S > that) const
 
template<class S >
Handle< SAs ()
 
template<typename T >
 Handle (T *obj)
 
template<typename T >
 Handle (T *obj, Isolate *isolate)
 

Static Public Member Functions

template<class S >
static Local< TCast (Local< S > that)
 
static Local< TNew (Handle< T > that)
 
- Static Public Member Functions inherited from Handle< T >
template<class S >
static Handle< TCast (Handle< S > 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.

Definition at line 106 of file v8.h.

Constructor & Destructor Documentation

Local ( )
inline

Definition at line 4189 of file v8.h.

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 272 of file v8.h.

Local ( S that)
inline

Definition at line 281 of file v8.h.

Member Function Documentation

Local<S> As ( )
inline

Definition at line 291 of file v8.h.

Referenced by TEST(), and THREADED_TEST().

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

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 4193 of file v8.h.

References Internals::CanCastToHeapObject(), HandleScope::CreateHandle(), and T.

Referenced by LocalContext::local(), and TryCatch::~TryCatch().


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