Class jac::ValueVector
ClassList > jac > ValueVector
An owning contiguous sequence of JavaScript values. More...
#include <values.h>
Public Types
| Type | Name |
|---|---|
| typedef ValueVectorWeak::const_iterator | const_iterator |
Public Functions
| Type | Name |
|---|---|
| ValueVector (ContextRef ctx) |
|
| ValueVector (const ValueVector & other) |
|
| ValueVector (ValueVector && other) noexcept |
|
| ValueWeak | at (std::size_t index) const |
| const_iterator | begin () noexcept const |
| std::size_t | capacity () noexcept const |
| void | clear () noexcept |
| JSValue * | data () noexcept |
| const JSValue * | data () noexcept const |
| bool | empty () noexcept const |
| const_iterator | end () noexcept const |
| operator ValueVectorWeak () noexcept const |
|
| ValueVector & | operator= (const ValueVector & other) |
| ValueVector & | operator= (ValueVector && other) noexcept |
| ValueWeak | operator[] (std::size_t index) const |
| void | pop_back () noexcept |
| void | push_back (ValueWeak value) |
| void | push_back (Value && value) |
| void | reserve (std::size_t capacity) |
| std::size_t | size () noexcept const |
| void | swap (ValueVector & other) noexcept |
| ~ValueVector () |
Detailed Description
Copies retain every contained JavaScript value. Moves transfer ownership. Values inserted into the vector must belong to its context; violating this precondition is undefined behavior. Mutating raw data must preserve the same retain/free ownership invariant.
Public Types Documentation
typedef const_iterator
Public Functions Documentation
function ValueVector [1/3]
function ValueVector [2/3]
function ValueVector [3/3]
function at
function begin
function capacity
function clear
function data [1/2]
function data [2/2]
function empty
function end
function operator ValueVectorWeak
function operator=
function operator=
function operator[]
function pop_back
function push_back [1/2]
function push_back [2/2]
function reserve
function size
function swap
function ~ValueVector
The documentation for this class was generated from the following file src/jac/machine/values.h