v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StrongMapTraits< K, V > Class Template Reference

#include <v8-util.h>

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

Public Types

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

Static Public Member Functions

static WeakCallbackDataTypeWeakCallbackParameter (Impl *impl, const K &key, Local< V > value)
 
static ImplImplFromWeakCallbackData (const WeakCallbackData< V, WeakCallbackDataType > &data)
 
static K KeyFromWeakCallbackData (const WeakCallbackData< V, WeakCallbackDataType > &data)
 
static void DisposeCallbackData (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 bool kIsWeak = false
 

Detailed Description

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

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

Users have to implement their own dispose trait.

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

Member Typedef Documentation

typedef StdMapTraits<K, V>::Impl Impl

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

typedef void WeakCallbackDataType

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

Member Function Documentation

void DisposeCallbackData ( WeakCallbackDataType data)
static

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

StrongMapTraits< K, V >::Impl * ImplFromWeakCallbackData ( const WeakCallbackData< V, WeakCallbackDataType > &  data)
static

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

References NULL.

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

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

StrongMapTraits< K, V >::WeakCallbackDataType * WeakCallbackParameter ( Impl impl,
const K &  key,
Local< V >  value 
)
static

Empty default implementations for StrongTraits methods.

These should not be necessary, since they're only used in code that is surrounded by if(Traits::kIsWeak), which for StrongMapTraits is compile-time false. Most compilers can live without them; however the compiler we use from 64-bit Win differs.

TODO(vogelheim): Remove these once they're no longer necessary.

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

References NULL.

Field Documentation

const bool kIsWeak = false
static

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


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