v8  9.0.257(node16.0.0)
V8 is Google's open source JavaScript engine
StdGlobalValueMap< K, V, Traits > Class Template Reference

#include <v8-util.h>

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

Public Member Functions

 StdGlobalValueMap (Isolate *isolate)
 
- Public Member Functions inherited from GlobalValueMap< K, V, DefaultGlobalMapTraits< K, V > >
 GlobalValueMap (Isolate *isolate)
 
 GlobalValueMap (Isolate *isolate, const char *label)
 
Global< VSet (const K &key, Local< V > value)
 
Global< VSet (const K &key, Global< V > value)
 
Global< VSet (const K &key, Global< V > value, PersistentValueReference *reference)
 
Global< VSetUnique (const K &key, Global< V > *persistent)
 
- Public Member Functions inherited from PersistentValueMapBase< K, V, DefaultGlobalMapTraits< K, V > >
IsolateGetIsolate ()
 
size_t Size ()
 
bool IsWeak ()
 
Local< VGet (const K &key)
 
bool Contains (const K &key)
 
bool SetReturnValue (const K &key, ReturnValue< Value > returnValue)
 
Global< VRemove (const K &key)
 
void Clear ()
 
PersistentValueReference GetReference (const K &key)
 

Additional Inherited Members

- Public Types inherited from GlobalValueMap< K, V, DefaultGlobalMapTraits< K, V > >
typedef PersistentValueMapBase< K, V, DefaultGlobalMapTraits< K, V > >::PersistentValueReference PersistentValueReference
 
- Protected Member Functions inherited from PersistentValueMapBase< K, V, DefaultGlobalMapTraits< K, V > >
 PersistentValueMapBase (Isolate *isolate)
 
 PersistentValueMapBase (Isolate *isolate, const char *label)
 
 ~PersistentValueMapBase ()
 
Isolateisolate ()
 
DefaultGlobalMapTraits< K, V > ::Impl * impl ()
 
void RemoveWeak (const K &key)
 
void AnnotateStrongRetainer (Global< V > *persistent)
 
- Static Protected Member Functions inherited from PersistentValueMapBase< K, V, DefaultGlobalMapTraits< K, V > >
static VFromVal (PersistentContainerValue v)
 
static PersistentContainerValue ClearAndLeak (Global< V > *persistent)
 
static PersistentContainerValue Leak (Global< V > *persistent)
 
static Global< VRelease (PersistentContainerValue v)
 

Detailed Description

template<typename K, typename V, typename Traits = DefaultGlobalMapTraits<K, V>>
class v8::StdGlobalValueMap< K, V, Traits >

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

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

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

Constructor & Destructor Documentation

◆ StdGlobalValueMap()

StdGlobalValueMap ( Isolate isolate)
inlineexplicit

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


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