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

#include <v8-util.h>

Inheritance diagram for DefaultGlobalMapTraits< K, V >:
Collaboration diagram for DefaultGlobalMapTraits< K, V >:

Public Types

typedef GlobalValueMap< K, V, DefaultGlobalMapTraits< K, V > > MapType
 
typedef void WeakCallbackDataType
 
- Public Types inherited from StdMapTraits< K, V >
typedef std::map< K, PersistentContainerValueImpl
 
typedef Impl::iterator Iterator
 

Static Public Member Functions

static WeakCallbackDataTypeWeakCallbackParameter (MapType *map, const K &key, Local< V > value)
 
static MapTypeMapFromWeakCallbackInfo (const WeakCallbackInfo< WeakCallbackDataType > &data)
 
static K KeyFromWeakCallbackInfo (const WeakCallbackInfo< WeakCallbackDataType > &data)
 
static void DisposeCallbackData (WeakCallbackDataType *data)
 
static void OnWeakCallback (const WeakCallbackInfo< WeakCallbackDataType > &data)
 
static void Dispose (Isolate *isolate, Global< V > value, K key)
 
static void DisposeWeak (const WeakCallbackInfo< WeakCallbackDataType > &data)
 
- Static Public Member Functions inherited from StdMapTraits< K, V >
static bool Empty (Impl *impl)
 
static size_t Size (Impl *impl)
 
static void Swap (Impl &a, Impl &b)
 
static Iterator Begin (Impl *impl)
 
static Iterator End (Impl *impl)
 
static K Key (Iterator it)
 
static PersistentContainerValue Value (Iterator it)
 
static PersistentContainerValue Set (Impl *impl, K key, PersistentContainerValue value)
 
static PersistentContainerValue Get (Impl *impl, K key)
 
static PersistentContainerValue Remove (Impl *impl, K key)
 

Static Public Attributes

static const PersistentContainerCallbackType kCallbackType = kNotWeak
 

Detailed Description

template<typename K, typename V>
class v8::DefaultGlobalMapTraits< K, V >

Definition at line 117 of file v8-util.h.

Member Typedef Documentation

◆ MapType

template<typename K , typename V >
typedef GlobalValueMap<K, V, DefaultGlobalMapTraits<K, V> > MapType

Definition at line 125 of file v8-util.h.

◆ WeakCallbackDataType

template<typename K , typename V >
typedef void WeakCallbackDataType

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

Member Function Documentation

◆ Dispose()

template<typename K , typename V >
static void Dispose ( Isolate isolate,
Global< V value,
key 
)
inlinestatic

Definition at line 143 of file v8-util.h.

◆ DisposeCallbackData()

template<typename K , typename V >
static void DisposeCallbackData ( WeakCallbackDataType data)
inlinestatic

Definition at line 140 of file v8-util.h.

◆ DisposeWeak()

template<typename K , typename V >
static void DisposeWeak ( const WeakCallbackInfo< WeakCallbackDataType > &  data)
inlinestatic

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

◆ KeyFromWeakCallbackInfo()

template<typename K , typename V >
static K KeyFromWeakCallbackInfo ( const WeakCallbackInfo< WeakCallbackDataType > &  data)
inlinestatic

Definition at line 136 of file v8-util.h.

◆ MapFromWeakCallbackInfo()

template<typename K , typename V >
static MapType * MapFromWeakCallbackInfo ( const WeakCallbackInfo< WeakCallbackDataType > &  data)
inlinestatic

Definition at line 132 of file v8-util.h.

◆ OnWeakCallback()

template<typename K , typename V >
static void OnWeakCallback ( const WeakCallbackInfo< WeakCallbackDataType > &  data)
inlinestatic

Definition at line 141 of file v8-util.h.

◆ WeakCallbackParameter()

template<typename K , typename V >
static WeakCallbackDataType * WeakCallbackParameter ( MapType map,
const K &  key,
Local< V value 
)
inlinestatic

Definition at line 128 of file v8-util.h.

Field Documentation

◆ kCallbackType

template<typename K , typename V >
const PersistentContainerCallbackType kCallbackType = kNotWeak
static

Definition at line 124 of file v8-util.h.


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