V8  latest master commit
V8 is Google's open source JavaScript engine
v8::Global< T > Class Template Reference

#include <v8.h>

Public Types

typedef void MoveOnlyTypeForCPP03
 

Public Member Functions

V8_INLINE Global ()
 
template<class S >
V8_INLINE Global (Isolate *isolate, Local< S > that)
 
template<class S >
V8_INLINE Global (Isolate *isolate, const PersistentBase< S > &that)
 
V8_INLINE Global (Global &&other)
 
V8_INLINE ~Global ()
 
template<class S >
V8_INLINE Globaloperator= (Global< S > &&rhs)
 
Global Pass ()
 
 Global (const Global &)=delete
 
void operator= (const Global &)=delete
 
template<class S >
Global< T > & operator= (Global< S > &&rhs)
 

Friends

template<class F >
class ReturnValue
 

Detailed Description

template<class T>
class v8::Global< T >

A PersistentBase which has move semantics.

Note: Persistent class hierarchy is subject to future changes.

Definition at line 99 of file v8.h.

Member Typedef Documentation

◆ MoveOnlyTypeForCPP03

template<class T >
typedef void v8::Global< T >::MoveOnlyTypeForCPP03

Definition at line 801 of file v8.h.

Constructor & Destructor Documentation

◆ Global() [1/5]

template<class T >
V8_INLINE v8::Global< T >::Global ( )
inline

A Global with no storage cell.

Definition at line 756 of file v8.h.

◆ Global() [2/5]

template<class T >
template<class S >
V8_INLINE v8::Global< T >::Global ( Isolate isolate,
Local< S >  that 
)
inline

Construct a Global from a Local. When the Local is non-empty, a new storage cell is created pointing to the same object, and no flags are set.

Definition at line 764 of file v8.h.

◆ Global() [3/5]

template<class T >
template<class S >
V8_INLINE v8::Global< T >::Global ( Isolate isolate,
const PersistentBase< S > &  that 
)
inline

Construct a Global from a PersistentBase. When the Persistent is non-empty, a new storage cell is created pointing to the same object, and no flags are set.

Definition at line 775 of file v8.h.

◆ Global() [4/5]

template<class T >
v8::Global< T >::Global ( Global< T > &&  other)

Move constructor.

Definition at line 10849 of file v8.h.

◆ ~Global()

template<class T >
V8_INLINE v8::Global< T >::~Global ( )
inline

Definition at line 785 of file v8.h.

◆ Global() [5/5]

template<class T >
v8::Global< T >::Global ( const Global< T > &  )
delete

Member Function Documentation

◆ operator=() [1/3]

template<class T >
void v8::Global< T >::operator= ( const Global< T > &  )
delete

◆ operator=() [2/3]

template<class T >
template<class S >
V8_INLINE Global& v8::Global< T >::operator= ( Global< S > &&  rhs)

Move via assignment.

◆ operator=() [3/3]

template<class T >
template<class S >
Global<T>& v8::Global< T >::operator= ( Global< S > &&  rhs)

Definition at line 10859 of file v8.h.

◆ Pass()

template<class T >
Global v8::Global< T >::Pass ( )
inline

Pass allows returning uniques from functions, etc.

Definition at line 796 of file v8.h.

Friends And Related Function Documentation

◆ ReturnValue

template<class T >
template<class F >
friend class ReturnValue
friend

Definition at line 808 of file v8.h.


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