Class jac::ValueVectorWeak
ClassList > jac > ValueVectorWeak
A non-owning view over a contiguous sequence of JavaScript values. More...
#include <values.h>
Classes
| Type | Name |
|---|---|
| class | const_iterator |
Public Functions
| Type | Name |
|---|---|
| ValueVectorWeak (ContextRef ctx, const JSValue * data, std::size_t size) |
|
| ValueVectorWeak (ContextRef ctx, const JSValue * data, int size) |
|
| ValueWeak | at (std::size_t index) const |
| const_iterator | begin () noexcept const |
| const JSValue * | data () noexcept const |
| bool | empty () noexcept const |
| const_iterator | end () noexcept const |
| ValueWeak | operator[] (std::size_t index) const |
| std::size_t | size () noexcept const |
| ValueVector | toOwned () const |
Detailed Description
The view and all ValueWeak objects obtained from it are valid only while the underlying sequence remains alive and unmoved. All values must belong to the stored context; violating this precondition is undefined behavior.
Public Functions Documentation
function ValueVectorWeak [1/2]
inline jac::ValueVectorWeak::ValueVectorWeak (
ContextRef ctx,
const JSValue * data,
std::size_t size
)
function ValueVectorWeak [2/2]
function at
function begin
function data
function empty
function end
function operator[]
function size
function toOwned
The documentation for this class was generated from the following file src/jac/machine/values.h