v8 12.4.254 (node 22.4.1)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
LocalBase< T > Class Template Reference

#include <v8-local-handle.h>

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

Protected Member Functions

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

Static Protected Member Functions

static V8_INLINE LocalBase< T > New (Isolate *isolate, internal::Address value)
 
static V8_INLINE LocalBase< T > New (Isolate *isolate, T *that)
 
static V8_INLINE LocalBase< T > FromSlot (internal::Address *slot)
 

Friends

template<class F >
class Local
 

Additional Inherited Members

- Public Member Functions inherited from IndirectHandleBase
V8_INLINE bool IsEmpty () const
 
V8_INLINE void Clear ()
 

Detailed Description

template<typename T>
class v8::LocalBase< T >

A base class for local handles. Its implementation depends on whether direct local support is enabled. When it is, a local handle contains a direct pointer to the referenced object, otherwise it contains an indirect pointer.

Definition at line 191 of file v8-local-handle.h.

Constructor & Destructor Documentation

◆ LocalBase() [1/3]

template<typename T >
V8_INLINE LocalBase ( )
protecteddefault

Referenced by LocalBase< T >::New().

◆ LocalBase() [2/3]

template<typename T >
V8_INLINE LocalBase ( internal::Address location)
inlineexplicitprotected

Definition at line 198 of file v8-local-handle.h.

◆ LocalBase() [3/3]

template<typename T >
template<typename S >
V8_INLINE LocalBase ( const LocalBase< S > &  other)
inlineprotected

Definition at line 202 of file v8-local-handle.h.

Member Function Documentation

◆ FromSlot()

template<typename T >
static V8_INLINE LocalBase< T > FromSlot ( internal::Address slot)
inlinestaticprotected

Definition at line 215 of file v8-local-handle.h.

References IndirectHandleBase::slot().

◆ New() [1/2]

template<typename T >
static V8_INLINE LocalBase< T > New ( Isolate isolate,
internal::Address  value 
)
inlinestaticprotected

◆ New() [2/2]

template<typename T >
static V8_INLINE LocalBase< T > New ( Isolate isolate,
T *  that 
)
inlinestaticprotected

Friends And Related Symbol Documentation

◆ Local

template<typename T >
template<class F >
friend class Local
friend

Definition at line 194 of file v8-local-handle.h.


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