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

#include <v8-util.h>

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

Public Types

typedef std::map< K, PersistentContainerValueImpl
 
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 implementation for PersistentValueMap which uses std::map as a backing map.

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

Member Typedef Documentation

◆ Impl

template<typename K , typename V >
typedef std::map<K, PersistentContainerValue> v8::StdMapTraits< K, V >::Impl

◆ Iterator

template<typename K , typename V >
typedef Impl::iterator v8::StdMapTraits< K, V >::Iterator

Member Function Documentation

◆ Begin()

template<typename K , typename V >
static Iterator v8::StdMapTraits< K, V >::Begin ( Impl impl)
inlinestatic

◆ Empty()

template<typename K , typename V >
static bool v8::StdMapTraits< K, V >::Empty ( Impl impl)
inlinestatic

◆ End()

template<typename K , typename V >
static Iterator v8::StdMapTraits< K, V >::End ( Impl impl)
inlinestatic

◆ Get()

template<typename K , typename V >
static PersistentContainerValue v8::StdMapTraits< K, V >::Get ( Impl impl,
key 
)
inlinestatic

◆ Key()

template<typename K , typename V >
static K v8::StdMapTraits< K, V >::Key ( Iterator  it)
inlinestatic

◆ Remove()

template<typename K , typename V >
static PersistentContainerValue v8::StdMapTraits< K, V >::Remove ( Impl impl,
key 
)
inlinestatic

◆ Set()

template<typename K , typename V >
static PersistentContainerValue v8::StdMapTraits< K, V >::Set ( Impl impl,
key,
PersistentContainerValue  value 
)
inlinestatic

◆ Size()

template<typename K , typename V >
static size_t v8::StdMapTraits< K, V >::Size ( Impl impl)
inlinestatic

◆ Swap()

template<typename K , typename V >
static void v8::StdMapTraits< K, V >::Swap ( Impl a,
Impl b 
)
inlinestatic

◆ Value()

template<typename K , typename V >
static PersistentContainerValue v8::StdMapTraits< K, V >::Value ( Iterator  it)
inlinestatic

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