v8  3.28.71 (node 0.12.18)
V8 is Google's open source JavaScript engine
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, DefaultPersistentValueMapTraits< K, V > >
 PersistentValueMap (Isolate *isolate)
 
 ~PersistentValueMap ()
 
IsolateGetIsolate ()
 
size_t Size ()
 
bool IsWeak ()
 
Local< V > Get (const K &key)
 
bool Contains (const K &key)
 
bool SetReturnValue (const K &key, ReturnValue< Value > returnValue)
 
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)
 
UniquePersistent< V > Set (const K &key, UniquePersistent< V > value, PersistentValueReference *reference)
 
UniquePersistent< V > Remove (const K &key)
 
void Clear ()
 
PersistentValueReference GetReference (const K &key)
 

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 362 of file v8-util.h.

Constructor & Destructor Documentation

◆ StdPersistentValueMap()

StdPersistentValueMap ( Isolate isolate)
inlineexplicit

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


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