An ECMAScript value.
Synopsis
Declared in <mrdocs/Support/JavaScript.hpp>
class Value;
Member Functions
Name |
Description |
|
Constructor |
|
Destructor |
Assignment operators |
|
Invoke a function with variadic arguments. |
|
Invoke a function. |
|
Invoke a method. |
|
Return if an Array or Object is empty. |
|
Return true if a key exists. |
|
|
|
Return the underlying array. |
|
Return the underlying boolean value. |
|
Return the value as a dom::Value |
|
Return the underlying double value. |
|
Return the underlying array. |
|
Return the underlying integer value. |
|
Return the underlying object. |
|
Return the underlying string |
|
Check if the value is an array. |
|
Check if the value is a boolean. |
|
Check if the value is a floating point number. |
|
Check if the value is a function. |
|
Check if the value is an integer number. |
|
Check if the value is null. |
|
Check if the value is a number. |
|
Check if the value is an object. |
|
Check if the value is a string. |
|
Determine if a value is truthy |
|
Check if the value is undefined. |
|
Lookup a sequence of keys. |
|
Invoke a function. |
|
Set or replace the value for a given key. |
|
Set "log" property |
|
Return if an Array or Object is empty. |
|
Swap two values. |
|
Return the type of the value. |
|
Return the string. |
|
Determine if a value is truthy |
Protected Member Functions
Name |
Description |
|
Constructor |
Protected Data Members
Name |
Friends
Name |
Description |
Return value as a string. |
|
Return the first Value that is not truthy, or the last one. |
|
Return the first Value that is truthy, or the last one. |
|
Compare two values for inequality. |
|
Inequality operator |
|
Compare two values for equality. |
|
Swap two values. |
|
Description
This class represents a value in the JavaScript interpreter.
A value is a variable that is defined in a Scope
. It can be a primitive type or an object.
The user is responsible for ensuring that the lifetime of a Value
does not exceed the lifetime of the Scope
that created it.
A value can be converted to a DOM value using the getDom
function.