V8 Project
v8::WeakCallbackData< T, P > Class Template Reference

#include <v8.h>

+ Inheritance diagram for v8::WeakCallbackData< T, P >:
+ Collaboration diagram for v8::WeakCallbackData< T, P >:

Public Types

typedef void(* Callback) (const WeakCallbackData< T, P > &data)
 

Public Member Functions

IsolateGetIsolate () const
 
Local< TGetValue () const
 
PGetParameter () const
 

Private Member Functions

 WeakCallbackData (Isolate *isolate, Local< T > handle, P *parameter)
 

Private Attributes

Isolateisolate_
 
Local< Thandle_
 
Pparameter_
 

Friends

class internal::GlobalHandles
 

Detailed Description

template<class T, class P>
class v8::WeakCallbackData< T, P >

Definition at line 417 of file v8.h.

Member Typedef Documentation

◆ Callback

template<class T , class P >
typedef void(* v8::WeakCallbackData< T, P >::Callback) (const WeakCallbackData< T, P > &data)

Definition at line 419 of file v8.h.

Constructor & Destructor Documentation

◆ WeakCallbackData()

template<class T , class P >
v8::WeakCallbackData< T, P >::WeakCallbackData ( Isolate isolate,
Local< T handle,
P parameter 
)
inlineprivate

Definition at line 427 of file v8.h.

428  : isolate_(isolate), handle_(handle), parameter_(parameter) { }
Local< T > handle_
Definition: v8.h:430
Isolate * isolate_
Definition: v8.h:429
Handle< T > handle(T *t, Isolate *isolate)
Definition: handles.h:146

Member Function Documentation

◆ GetIsolate()

template<class T , class P >
Isolate* v8::WeakCallbackData< T, P >::GetIsolate ( ) const
inline

Definition at line 421 of file v8.h.

421 { return isolate_; }

References v8::WeakCallbackData< T, P >::isolate_.

Referenced by v8::internal::Debug::HandleWeakDebugInfo(), v8::ReadBufferWeakCallback(), and v8::PersistentValueMap< K, V, Traits >::WeakCallback().

+ Here is the caller graph for this function:

◆ GetParameter()

template<class T , class P >
P* v8::WeakCallbackData< T, P >::GetParameter ( ) const
inline

◆ GetValue()

template<class T , class P >
Local<T> v8::WeakCallbackData< T, P >::GetValue ( ) const
inline

Definition at line 422 of file v8.h.

422 { return handle_; }

References v8::WeakCallbackData< T, P >::handle_.

Referenced by v8::internal::DeleteNativeObjectAt(), v8::internal::ScriptCache::HandleWeakScript(), and v8::ReadBufferWeakCallback().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ internal::GlobalHandles

template<class T , class P >
friend class internal::GlobalHandles
friend

Definition at line 426 of file v8.h.

Member Data Documentation

◆ handle_

template<class T , class P >
Local<T> v8::WeakCallbackData< T, P >::handle_
private

Definition at line 430 of file v8.h.

Referenced by v8::WeakCallbackData< T, P >::GetValue().

◆ isolate_

template<class T , class P >
Isolate* v8::WeakCallbackData< T, P >::isolate_
private

Definition at line 429 of file v8.h.

Referenced by v8::WeakCallbackData< T, P >::GetIsolate().

◆ parameter_

template<class T , class P >
P* v8::WeakCallbackData< T, P >::parameter_
private

Definition at line 431 of file v8.h.

Referenced by v8::WeakCallbackData< T, P >::GetParameter().


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