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
StdMapTraits< K, V > Class Template Reference

#include <v8-util.h>

Inheritance diagram for StdMapTraits< K, V >:

Public Types

typedef std::map< K,
PersistentContainerValue
Impl
 
typedef Impl::iterator Iterator
 

Static Public Member Functions

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)
 

Detailed Description

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

A default trait implemenation for PersistentValueMap which uses std::map as a backing map.

Users will have to implement their own weak callbacks & dispose traits.

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

Member Typedef Documentation

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

typedef Impl::iterator Iterator

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

Member Function Documentation

static Iterator Begin ( Impl impl)
inlinestatic

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

static bool Empty ( Impl impl)
inlinestatic

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

static Iterator End ( Impl impl)
inlinestatic

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

static PersistentContainerValue Get ( Impl impl,
key 
)
inlinestatic

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

static K Key ( Iterator  it)
inlinestatic

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

static PersistentContainerValue Remove ( Impl impl,
key 
)
inlinestatic

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

static PersistentContainerValue Set ( Impl impl,
key,
PersistentContainerValue  value 
)
inlinestatic

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

static size_t Size ( Impl impl)
inlinestatic

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

static void Swap ( Impl a,
Impl b 
)
inlinestatic

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

static PersistentContainerValue Value ( Iterator  it)
inlinestatic

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


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