v8  8.6.395(node15.0.1)
V8 is Google's open source JavaScript engine
JSMember< T > Class Template Reference

#include <v8-cppgc.h>

Public Member Functions

 JSMember ()=default
 
template<typename U , typename = std::enable_if_t<std::is_base_of<T, U>::value>>
 JSMember (Isolate *isolate, Local< U > that)
 
 JSMember (const JSMember &other)
 
template<typename U , typename = std::enable_if_t<std::is_base_of<T, U>::value>>
 JSMember (const JSMember< U > &other)
 
 JSMember (JSMember &&other)
 
template<typename U , typename = std::enable_if_t<std::is_base_of<T, U>::value>>
 JSMember (JSMember< U > &&other)
 
JSMemberoperator= (const JSMember &other)
 
template<typename U , typename = std::enable_if_t<std::is_base_of<T, U>::value>>
JSMemberoperator= (const JSMember< U > &other)
 
JSMemberoperator= (JSMember &&other)
 
template<typename U , typename = std::enable_if_t<std::is_base_of<T, U>::value>>
JSMemberoperator= (JSMember< U > &&other)
 
T * operator-> () const
 
T * operator* () const
 
template<typename U , typename = std::enable_if_t<std::is_base_of<T, U>::value>>
void Set (v8::Isolate *isolate, Local< U > that)
 

Detailed Description

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

A traced handle without destructor that clears the handle. The handle may only be used in GarbageCollected objects and must be processed in a Trace() method.

Definition at line 16 of file v8-cppgc.h.

Constructor & Destructor Documentation

◆ JSMember() [1/6]

JSMember ( )
default

◆ JSMember() [2/6]

JSMember ( Isolate isolate,
Local< U >  that 
)
inline

Definition at line 102 of file v8-cppgc.h.

◆ JSMember() [3/6]

JSMember ( const JSMember< T > &  other)
inline

Definition at line 106 of file v8-cppgc.h.

◆ JSMember() [4/6]

JSMember ( const JSMember< U > &  other)
inline

Definition at line 110 of file v8-cppgc.h.

◆ JSMember() [5/6]

JSMember ( JSMember< T > &&  other)
inline

Definition at line 114 of file v8-cppgc.h.

◆ JSMember() [6/6]

JSMember ( JSMember< U > &&  other)
inline

Definition at line 118 of file v8-cppgc.h.

Member Function Documentation

◆ operator*()

T* operator* ( ) const
inline

Definition at line 139 of file v8-cppgc.h.

◆ operator->()

T* operator-> ( ) const
inline

Definition at line 138 of file v8-cppgc.h.

◆ operator=() [1/4]

JSMember& operator= ( const JSMember< T > &  other)
inline

Definition at line 122 of file v8-cppgc.h.

◆ operator=() [2/4]

JSMember& operator= ( const JSMember< U > &  other)
inline

Definition at line 126 of file v8-cppgc.h.

◆ operator=() [3/4]

JSMember& operator= ( JSMember< T > &&  other)
inline

Definition at line 130 of file v8-cppgc.h.

◆ operator=() [4/4]

JSMember& operator= ( JSMember< U > &&  other)
inline

Definition at line 134 of file v8-cppgc.h.

◆ Set()

void Set ( v8::Isolate isolate,
Local< U >  that 
)
inline

Definition at line 145 of file v8-cppgc.h.

References JSMemberBase::Reset().


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