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

#include <v8-traced-handle.h>

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

Public Member Functions

Local< T > Get (Isolate *isolate) const
 
template<class S >
V8_INLINE BasicTracedReference< S > & As () const
 
T * operator-> () const
 
T * operator* () const
 
- Public Member Functions inherited from TracedReferenceBase
bool IsEmpty () const
 
V8_INLINE void Reset ()
 
V8_INLINE v8::Local< v8::ValueGet (v8::Isolate *isolate) const
 
bool IsEmptyThreadSafe () const
 
V8_INLINE void SetWrapperClassId (uint16_t class_id)
 
V8_INLINE uint16_t WrapperClassId () const
 

Friends

template<typename F >
class Local
 
class Object
 
template<typename F >
class TracedReference
 
template<typename F >
class BasicTracedReference
 
template<typename F >
class ReturnValue
 

Additional Inherited Members

- Protected Member Functions inherited from TracedReferenceBase
void SetSlotThreadSafe (void *new_val)
 
const void * GetSlotThreadSafe () const
 
V8_EXPORT void CheckValue () const
 
V8_INLINE internal::Address address () const
 
- Protected Attributes inherited from TracedReferenceBase
internal::Addressval_ = nullptr
 

Detailed Description

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

A traced handle with copy and move semantics. The handle is to be used together as part of GarbageCollected objects (see v8-cppgc.h) or from stack and specifies edges from C++ objects to JavaScript.

The exact semantics are:

Note that the base class cannot be instantiated itself, use |TracedReference| instead.

Definition at line 137 of file v8-traced-handle.h.

Member Function Documentation

◆ As()

template<typename T >
template<class S >
V8_INLINE BasicTracedReference< S > & As ( ) const
inline

Definition at line 150 of file v8-traced-handle.h.

◆ Get()

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

Construct a Local<T> from this handle.

Definition at line 142 of file v8-traced-handle.h.

References Local< T >::New(), and TracedReferenceBase::val_.

◆ operator*()

template<typename T >
T * operator* ( ) const
inline

◆ operator->()

template<typename T >
T * operator-> ( ) const
inline

Friends And Related Symbol Documentation

◆ BasicTracedReference

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

Definition at line 184 of file v8-traced-handle.h.

◆ Local

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

Definition at line 179 of file v8-traced-handle.h.

◆ Object

template<typename T >
friend class Object
friend

Definition at line 180 of file v8-traced-handle.h.

◆ ReturnValue

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

Definition at line 186 of file v8-traced-handle.h.

◆ TracedReference

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

Definition at line 182 of file v8-traced-handle.h.


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