v8 10.2.154 (node 18.16.0)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
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]

template<class T >
V8_INLINE Eternal ( )
inline

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

◆ Eternal() [2/2]

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

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

Member Function Documentation

◆ Get()

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

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

◆ IsEmpty()

template<class T >
V8_INLINE bool IsEmpty ( ) const
inline

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

◆ Set()

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