v8  10.1.124 (node 18.2.0)
V8 is Google's open source JavaScript engine
Eternal< T > Class Template Reference

#include <v8-persistent-handle.h>

Public Member Functions

V8_INLINE Eternal ()
 
template<class S >
V8_INLINE Eternal (Isolate *isolate, Local< S > handle)
 
V8_INLINE Local< T > Get (Isolate *isolate) const
 
V8_INLINE bool IsEmpty () const
 
template<class S >
void Set (Isolate *isolate, Local< S > handle)
 

Detailed Description

template<class T>
class v8::Eternal< T >

Eternal handles are set-once handles that live for the lifetime of the isolate.

Definition at line 47 of file v8-persistent-handle.h.

Constructor & Destructor Documentation

◆ Eternal() [1/2]

V8_INLINE Eternal ( )
inline

Definition at line 49 of file v8-persistent-handle.h.

◆ Eternal() [2/2]

V8_INLINE Eternal ( Isolate isolate,
Local< S >  handle 
)
inline

Definition at line 51 of file v8-persistent-handle.h.

Member Function Documentation

◆ Get()

V8_INLINE Local<T> Get ( Isolate isolate) const
inline

Definition at line 55 of file v8-persistent-handle.h.

References HandleScope::Local.

◆ IsEmpty()

V8_INLINE bool IsEmpty ( ) const
inline

Definition at line 61 of file v8-persistent-handle.h.

◆ Set()

void Set ( Isolate isolate,
Local< S >  handle 
)
inline

Definition at line 64 of file v8-persistent-handle.h.

References v8::api_internal::Eternalize().


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