Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
v8::DefaultPersistentValueMapTraits< K, V > Class Template Reference

#include <v8-util.h>

Inheritance diagram for v8::DefaultPersistentValueMapTraits< K, V >:
[legend]
Collaboration diagram for v8::DefaultPersistentValueMapTraits< K, V >:
[legend]

Public Types

typedef PersistentValueMap< K, V, DefaultPersistentValueMapTraits< K, V > > MapType
 
typedef void WeakCallbackDataType
 
- Public Types inherited from v8::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 Dispose (Isolate *isolate, Global< V > value, K key)
 
- Static Public Member Functions inherited from v8::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::DefaultPersistentValueMapTraits< K, V >

A default trait implementation for PersistentValueMap, which inherits a std:map backing map from StdMapTraits and holds non-weak persistent objects and has no special Dispose handling.

You should not derive from this class, since MapType depends on the surrounding class, and hence a subclass cannot simply inherit the methods.

Member Typedef Documentation

◆ MapType

template<typename K , typename V >
typedef PersistentValueMap<K, V, DefaultPersistentValueMapTraits<K, V> > v8::DefaultPersistentValueMapTraits< K, V >::MapType

◆ WeakCallbackDataType

template<typename K , typename V >
typedef void v8::DefaultPersistentValueMapTraits< K, V >::WeakCallbackDataType

Member Function Documentation

◆ Dispose()

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

◆ DisposeCallbackData()

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

◆ KeyFromWeakCallbackInfo()

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

◆ MapFromWeakCallbackInfo()

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

◆ WeakCallbackParameter()

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

Member Data Documentation

◆ kCallbackType

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

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