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

#include <v8-weak-callback-info.h>

Public Types

using Callback = void(*)(const WeakCallbackInfo< T > &data)
 

Public Member Functions

 WeakCallbackInfo (Isolate *isolate, T *parameter, void *embedder_fields[kEmbedderFieldsInWeakCallback], Callback *callback)
 
V8_INLINE IsolateGetIsolate () const
 
V8_INLINE T * GetParameter () const
 
V8_INLINE void * GetInternalField (int index) const
 
void SetSecondPassCallback (Callback callback) const
 

Detailed Description

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

Definition at line 22 of file v8-weak-callback-info.h.

Member Typedef Documentation

◆ Callback

template<typename T >
using Callback = void (*)(const WeakCallbackInfo<T>& data)

Definition at line 24 of file v8-weak-callback-info.h.

Constructor & Destructor Documentation

◆ WeakCallbackInfo()

template<typename T >
WeakCallbackInfo ( Isolate isolate,
T *  parameter,
void *  embedder_fields[kEmbedderFieldsInWeakCallback],
Callback callback 
)
inline

Definition at line 26 of file v8-weak-callback-info.h.

Member Function Documentation

◆ GetInternalField()

template<class T >
void * GetInternalField ( int  index) const

◆ GetIsolate()

template<typename T >
V8_INLINE Isolate * GetIsolate ( ) const
inline

Definition at line 35 of file v8-weak-callback-info.h.

◆ GetParameter()

template<typename T >
V8_INLINE T * GetParameter ( ) const
inline

Definition at line 36 of file v8-weak-callback-info.h.

◆ SetSecondPassCallback()

template<typename T >
void SetSecondPassCallback ( Callback  callback) const
inline

Definition at line 45 of file v8-weak-callback-info.h.


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