Loading...
Searching...
No Matches
Public Types | Public Member Functions | Friends | List of all members
v8::Global< T > Class Template Reference

#include <v8-persistent-handle.h>

Inheritance diagram for v8::Global< T >:
[legend]
Collaboration diagram for v8::Global< T >:
[legend]

Public Types

using MoveOnlyTypeForCPP03 = void
 

Public Member Functions

 Global ()=default
 
template<class S >
 Global (Isolate *isolate, Local< S > that)
 
template<class S >
 Global (Isolate *isolate, const PersistentBase< S > &that)
 
 Global (Global &&other)
 
 ~Global ()
 
template<class S >
Globaloperator= (Global< S > &&rhs)
 
Global Pass ()
 
 Global (const Global &)=delete
 
void operator= (const Global &)=delete
 
template<class S >
Global< T > & operator= (Global< S > &&rhs)
 
- Public Member Functions inherited from v8::PersistentBase< T >
void Reset ()
 
template<class S >
void Reset (Isolate *isolate, const Local< S > &other)
 
template<class S >
void Reset (Isolate *isolate, const PersistentBase< S > &other)
 
Local< T > Get (Isolate *isolate) const
 
template<class S >
bool operator== (const PersistentBase< S > &that) const
 
template<class S >
bool operator== (const Local< S > &that) const
 
template<class S >
bool operator!= (const PersistentBase< S > &that) const
 
template<class S >
bool operator!= (const Local< S > &that) const
 
template<typename P >
void SetWeak (P *parameter, typename WeakCallbackInfo< P >::Callback callback, WeakCallbackType type)
 
void SetWeak ()
 
template<typename P >
P * ClearWeak ()
 
void ClearWeak ()
 
void AnnotateStrongRetainer (const char *label)
 
bool IsWeak () const
 
void SetWrapperClassId (uint16_t class_id)
 
uint16_t WrapperClassId () const
 
 PersistentBase (const PersistentBase &other)=delete
 
void operator= (const PersistentBase &)=delete
 
- Public Member Functions inherited from v8::api_internal::IndirectHandleBase
bool IsEmpty () const
 
void Clear ()
 

Friends

template<class F >
class ReturnValue
 

Additional Inherited Members

- Protected Member Functions inherited from v8::api_internal::IndirectHandleBase
 IndirectHandleBase ()=default
 
 IndirectHandleBase (const IndirectHandleBase &other)=default
 
IndirectHandleBaseoperator= (const IndirectHandleBase &that)=default
 
 IndirectHandleBase (internal::Address *location)
 
internal::Address ptr () const
 
internal::Address *const & slot () const
 
internal::Address *& slot ()
 
template<typename T , bool check_null = false>
T * value () const
 

Detailed Description

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

A PersistentBase which has move semantics.

Note: Persistent class hierarchy is subject to future changes.

Examples
process.cc, and shell.cc.

Member Typedef Documentation

◆ MoveOnlyTypeForCPP03

template<class T >
using v8::Global< T >::MoveOnlyTypeForCPP03 = void

Constructor & Destructor Documentation

◆ Global() [1/5]

template<class T >
v8::Global< T >::Global ( )
inlinedefault

A Global with no storage cell.

◆ Global() [2/5]

template<class T >
template<class S >
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.

◆ Global() [3/5]

template<class T >
template<class S >
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.

◆ Global() [4/5]

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

Move constructor.

Here is the call graph for this function:

◆ ~Global()

template<class T >
v8::Global< T >::~Global ( )
inline
Here is the call graph for this function:

◆ 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 >
Global & v8::Global< T >::operator= ( Global< S > &&  rhs)
inline

Move via assignment.

◆ operator=() [3/3]

template<class T >
template<class S >
Global< T > & v8::Global< T >::operator= ( Global< S > &&  rhs)
Here is the call graph for this function:

◆ Pass()

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

Pass allows returning uniques from functions, etc.

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ ReturnValue

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

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