V8 API Reference Guide generated from the header files
|
#include <v8-util.h>
Public Member Functions | |
PersistentValueVector (Isolate *isolate) | |
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.
|
inline |
Append a value to the vector.
|
inline |
Append a persistent's value to the vector.
|
inline |
Remove all elements from the vector.
|
inline |
Retrieve the i-th value in the vector.
|
inline |
Are there any values in the vector?
|
inline |
Reserve capacity in the vector. (Efficiency gains depend on the backing implementation.)
|
inline |
How many elements are in the vector?