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

#include <v8-util.h>

Inheritance diagram for StdPersistentValueMap< K, V, Traits >:
Collaboration diagram for StdPersistentValueMap< K, V, Traits >:

Public Member Functions

 StdPersistentValueMap (Isolate *isolate)
 
- Public Member Functions inherited from PersistentValueMap< K, V, Traits >
V8_INLINE PersistentValueMap (Isolate *isolate)
 
V8_INLINE ~PersistentValueMap ()
 
V8_INLINE IsolateGetIsolate ()
 
V8_INLINE size_t Size ()
 
V8_INLINE bool IsWeak ()
 
V8_INLINE Local< V > Get (const K &key)
 
V8_INLINE bool Contains (const K &key)
 
V8_INLINE bool SetReturnValue (const K &key, ReturnValue< Value > &returnValue)
 
V8_INLINE void SetReference (const K &key, const Persistent< Object > &parent)
 
UniquePersistent< V > Set (const K &key, Local< V > value)
 
UniquePersistent< V > Set (const K &key, UniquePersistent< V > value)
 
V8_INLINE UniquePersistent< V > Remove (const K &key)
 
void Clear ()
 

Detailed Description

template<typename K, typename V, typename Traits = DefaultPersistentValueMapTraits<K, V>>
class v8::StdPersistentValueMap< K, V, Traits >

A map that uses UniquePersistent as value and std::map as the backing implementation. Persistents are held non-weak.

C++11 embedders don't need this class, as they can use UniquePersistent directly in std containers.

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

Constructor & Destructor Documentation

StdPersistentValueMap ( Isolate isolate)
inlineexplicit

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


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