v8
4.5.103 (node 4.8.7)
V8 is Google's open source JavaScript engine
|
#include <v8-util.h>
Public Member Functions | |
PersistentValueVector (Isolate *isolate) | |
~PersistentValueVector () | |
void | Append (Local< V > value) |
void | Append (Global< V > persistent) |
bool | IsEmpty () const |
size_t | Size () const |
Local< V > | Get (size_t index) const |
void | Clear () |
void | ReserveCapacity (size_t capacity) |
A vector wrapper that safely stores Global values. C++11 embedders don't need this class, as they can use Global directly in std containers.
This class relies on a backing vector implementation, whose type and methods are described by the Traits class. The backing map will handle values of type PersistentContainerValue, with all conversion into and out of V8 handles being transparently handled by this class.
|
inlineexplicit |
|
inline |
Definition at line 563 of file v8-util.h.
References PersistentValueVector< V, Traits >::Clear().
|
inline |
|
inline |
Append a value to the vector.
Definition at line 570 of file v8-util.h.
References PersistentBase< T >::Global.
|
inline |
Remove all elements from the vector.
Definition at line 606 of file v8-util.h.
References PersistentBase< T >::Global.
Referenced by PersistentValueVector< V, Traits >::~PersistentValueVector().
|
inline |
Retrieve the i-th value in the vector.
Definition at line 599 of file v8-util.h.
References Local< T >::Local.
|
inline |
|
inline |
|
inline |