v8  4.4.63(io.js3.3.1)
V8 is Google's open source JavaScript engine
DefaultPersistentValueMapTraits< K, V > Class Template Reference

#include <v8-util.h>

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

Public Types

typedef PersistentValueMap< K, V, DefaultPersistentValueMapTraits< 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 MapTypeMapFromWeakCallbackData (const WeakCallbackData< V, WeakCallbackDataType > &data)
static K KeyFromWeakCallbackData (const WeakCallbackData< V, WeakCallbackDataType > &data)
static void DisposeCallbackData (WeakCallbackDataType *data)
static void Dispose (Isolate *isolate, Global< V > value, K key)
- 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::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.

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

Member Typedef Documentation

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

typedef void WeakCallbackDataType

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

Member Function Documentation

static void Dispose ( Isolate isolate,
Global< V >  value,

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

static void DisposeCallbackData ( WeakCallbackDataType data)

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

static K KeyFromWeakCallbackData ( const WeakCallbackData< V, WeakCallbackDataType > &  data)

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

static MapType* MapFromWeakCallbackData ( const WeakCallbackData< V, WeakCallbackDataType > &  data)

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

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

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

Field Documentation

const PersistentContainerCallbackType kCallbackType = kNotWeak

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

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