v8 13.6.233 (node 24.1.0)
V8 is Google's open source JavaScript engine
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages Concepts
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
 
V8_INLINE internal::ValueHelper::InternalRepresentationType repr () 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)
 
static V8_INLINE LocalBase< T > FromRepr (internal::ValueHelper::InternalRepresentationType repr)
 

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 handle 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 195 of file v8-local-handle.h.

Constructor & Destructor Documentation

◆ LocalBase() [1/3]

◆ LocalBase() [2/3]

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

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

References IndirectHandleBase::IndirectHandleBase(), and V8_INLINE.

◆ LocalBase() [3/3]

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

Member Function Documentation

◆ FromRepr()

template<typename T>
static V8_INLINE LocalBase< T > FromRepr ( internal::ValueHelper::InternalRepresentationType repr)
inlinestaticprotected

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

References LocalBase(), IndirectHandleBase::repr(), and V8_INLINE.

◆ FromSlot()

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

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

References LocalBase(), IndirectHandleBase::slot(), and V8_INLINE.

◆ New() [1/2]

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

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

References HandleScope::CreateHandle(), LocalBase(), V8_INLINE, and IndirectHandleBase::value().

Referenced by New().

◆ 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 198 of file v8-local-handle.h.

References Local.

Referenced by Local.


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