Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Functions | Variables

Adaptive Function union<double> More...

Functions

const afw_value_tafw_function_execute_compile_expression (afw_function_execute_t *x)
 Adaptive Function compile<expression> More...
 
const afw_value_tafw_function_execute_evaluate_expression (afw_function_execute_t *x)
 Adaptive Function evaluate<expression> More...
 

Variables

 afw_function_definition_bag_expression
 Function definition bag<expression>
 
 afw_function_definition_bag_size_expression
 Adaptive Function bag<expression> More...
 
 afw_function_definition_compile_expression
 Adaptive Function bag_size<expression> More...
 
 afw_function_definition_eq_expression
 Function definition eq<expression>
 
 afw_function_definition_eqx_expression
 Adaptive Function eq<expression> More...
 
 afw_function_definition_evaluate_expression
 Adaptive Function eqx<expression> More...
 
 afw_function_definition_expression
 Function definition expression.
 
 afw_function_definition_ge_expression
 Adaptive Function expression More...
 
 afw_function_definition_gt_expression
 Adaptive Function ge<expression> More...
 
 afw_function_definition_is_expression
 Adaptive Function gt<expression> More...
 
 afw_function_definition_le_expression
 Adaptive Function is<expression> More...
 
 afw_function_definition_lt_expression
 Adaptive Function le<expression> More...
 
 afw_function_definition_ne_expression
 Adaptive Function lt<expression> More...
 
 afw_function_definition_nex_expression
 Adaptive Function ne<expression> More...
 
 afw_function_definition_to_string_expression
 Adaptive Function nex<expression> More...
 

Detailed Description

Adaptive Function union<double>

Parameters
xfunction execute parameter.

Returns a list of double contains all of the unique values in two or more list of double values.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function union<double>(
lists_1: (list double),
lists_2: (list double),
...lists_rest: (list of (list double))
): (list double);

Parameters:

lists - (2 or more list double) Two or more lists.

Returns:

(list double)

Implemented by afw_function_execute_union()


expression adaptive functions.

Function Documentation

◆ afw_function_execute_compile_expression()

const afw_value_t* afw_function_execute_compile_expression ( afw_function_execute_t x)

Adaptive Function compile<expression>

Parameters
xfunction execute parameter.

Compile expression value and return either an unevaluated adaptive value or a string containing the compiler listing.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function compile<expression>(
source: expression,
listing?: any
): unevaluated;

Parameters:

source - (expression) expression string to compile.

listing - (optional any dataType) If specified, a compiler listing is produced instead of an unevaluated expression value.

This parameter can be an integer between 0 and 10 of a string that is used for indentation. If 0 is specified, no whitespace is added to the resulting string. If 1 through 10 is specified, that number of spaces is used.

Returns:

(unevaluated)

Definition at line 57 of file afw_function_expression.c.

◆ afw_function_execute_evaluate_expression()

const afw_value_t* afw_function_execute_evaluate_expression ( afw_function_execute_t x)

Adaptive Function evaluate<expression>

Parameters
xfunction execute parameter.

Compile and evaluate expression value.

This function is not pure, so it may return a different result given exactly the same parameters.

Declaration:

function evaluate<expression>(
source: expression,
additionalUntrustedQualifiedVariables?: (object _AdaptiveHybridPropertiesObjects_)
): unevaluated;

Parameters:

source - (expression) expression string to compile and evaluate.

additionalUntrustedQualifiedVariables - (optional object AdaptiveHybridPropertiesObjects) This parameter supplies additional qualified variables that can be accessed during evaluation. These variables will not be used by anything that needs to ensure its qualified variables must come from a trusted source, such as authorization. This parameter is intended to be used for testing only and should not be used for anything running in production.

Returns:

(unevaluated)

Definition at line 122 of file afw_function_expression.c.

Variable Documentation

◆ afw_function_definition_bag_size_expression

afw_function_definition_bag_size_expression

Adaptive Function bag<expression>

Parameters
xfunction execute parameter.

Takes any number of expression values and returns a list of list.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function bag<expression>(
...values: (list of (list expression))
): (list expression);

Parameters:

values - (0 or more list expression)

Returns:

(list expression)

Implemented by afw_function_execute_bag()


Function definition bag_size<expression>

Definition at line 10442 of file afw_function_bindings.h.

◆ afw_function_definition_compile_expression

afw_function_definition_compile_expression

Adaptive Function bag_size<expression>

Parameters
xfunction execute parameter.

This returns the integer number of values in list.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function bag_size<expression>(
value: (list expression)
): integer;

Parameters:

value - (list expression)

Returns:

(integer)

Implemented by afw_function_execute_bag_size()


Function definition compile<expression>

Definition at line 10476 of file afw_function_bindings.h.

◆ afw_function_definition_eqx_expression

afw_function_definition_eqx_expression

Adaptive Function eq<expression>

Parameters
xfunction execute parameter.

Determine if expression arg1 is equal to the value of arg2 converted to the data type of arg1 then return the boolean result. Use "eqx" ("===") instead if you want false to be returned if arg1 and arg2's data type don't match.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function eq<expression>(
arg1: expression,
arg2: any
): boolean;

Parameters:

arg1 - (expression)

arg2 - (any dataType)

Returns:

(boolean)

Errors thrown:

conversion - arg2 cannot be converted to the data type of arg1.

Implemented by afw_function_execute_eq()


Function definition eqx<expression>

Definition at line 10562 of file afw_function_bindings.h.

◆ afw_function_definition_evaluate_expression

afw_function_definition_evaluate_expression

Adaptive Function eqx<expression>

Parameters
xfunction execute parameter.

Determine if for expression arg1 is equal to the value and data type of arg2 then return the boolean result. Use "eq" ("==") instead if you want arg2 to be converted to the data type of arg1 before comparison.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function eqx<expression>(
arg1: expression,
arg2: any
): boolean;

Parameters:

arg1 - (expression)

arg2 - (any dataType)

Returns:

(boolean)

Implemented by afw_function_execute_eqx()


Function definition evaluate<expression>

Definition at line 10601 of file afw_function_bindings.h.

◆ afw_function_definition_ge_expression

afw_function_definition_ge_expression

Adaptive Function expression

Parameters
xfunction execute parameter.

Converts value to data type expression returning expression result.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function expression(
value: any
): expression;

Parameters:

value - (any dataType) Value to convert.

Returns:

(expression) Converted value.

Errors thrown:

cast_error - value could not be converted

Implemented by afw_function_execute_convert()


Function definition ge<expression>

Definition at line 10681 of file afw_function_bindings.h.

◆ afw_function_definition_gt_expression

afw_function_definition_gt_expression

Adaptive Function ge<expression>

Parameters
xfunction execute parameter.

Checks for expression arg1 is greater than or equal to expression arg2 and return the boolean result.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function ge<expression>(
arg1: expression,
arg2: expression
): boolean;

Parameters:

arg1 - (expression)

arg2 - (expression)

Returns:

(boolean)

Implemented by afw_function_execute_ge()


Function definition gt<expression>

Definition at line 10719 of file afw_function_bindings.h.

◆ afw_function_definition_is_expression

afw_function_definition_is_expression

Adaptive Function gt<expression>

Parameters
xfunction execute parameter.

Checks for expression arg1 is greater than expression arg2 and return the boolean result.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function gt<expression>(
arg1: expression,
arg2: expression
): boolean;

Parameters:

arg1 - (expression)

arg2 - (expression)

Returns:

(boolean)

Implemented by afw_function_execute_gt()


Function definition is<expression>

Definition at line 10757 of file afw_function_bindings.h.

◆ afw_function_definition_le_expression

afw_function_definition_le_expression

Adaptive Function is<expression>

Parameters
xfunction execute parameter.

Checks whether value is dataType expression and return the boolean result.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function is<expression>(
value: any
): boolean;

Parameters:

value - (any dataType) Value to check.

Returns:

(boolean)

Implemented by afw_function_execute_is()


Function definition le<expression>

Definition at line 10791 of file afw_function_bindings.h.

◆ afw_function_definition_lt_expression

afw_function_definition_lt_expression

Adaptive Function le<expression>

Parameters
xfunction execute parameter.

Checks for expression arg1 is less than or equal to expression arg2 and return the boolean result.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function le<expression>(
arg1: expression,
arg2: any
): boolean;

Parameters:

arg1 - (expression)

arg2 - (any dataType)

Returns:

(boolean)

Implemented by afw_function_execute_le()


Function definition lt<expression>

Definition at line 10829 of file afw_function_bindings.h.

◆ afw_function_definition_ne_expression

afw_function_definition_ne_expression

Adaptive Function lt<expression>

Parameters
xfunction execute parameter.

Checks for expression arg1 is less that expression arg2 and return the boolean result.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function lt<expression>(
arg1: expression,
arg2: expression
): boolean;

Parameters:

arg1 - (expression)

arg2 - (expression)

Returns:

(boolean)

Implemented by afw_function_execute_lt()


Function definition ne<expression>

Definition at line 10867 of file afw_function_bindings.h.

◆ afw_function_definition_nex_expression

afw_function_definition_nex_expression

Adaptive Function ne<expression>

Parameters
xfunction execute parameter.

Determine if expression arg1 is not equal to the value of arg2 converted to the data type of arg1 then return the boolean result. Use "nex" ("!==") instead if you want true to be returned if arg1 and arg2's data type don't match.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function ne<expression>(
arg1: expression,
arg2: any
): boolean;

Parameters:

arg1 - (expression)

arg2 - (any dataType)

Returns:

(boolean)

Errors thrown:

conversion - arg2 cannot be converted to the data type of arg1.

Implemented by afw_function_execute_ne()


Function definition nex<expression>

Definition at line 10911 of file afw_function_bindings.h.

◆ afw_function_definition_to_string_expression

afw_function_definition_to_string_expression

Adaptive Function nex<expression>

Parameters
xfunction execute parameter.

Determine if for expression arg1 is not equal to the value or data type of arg2 then return the boolean result. Use "ne" ("!=") instead if you want arg2 to be converted to the data type of arg1 before comparison.

This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.

Declaration:

function nex<expression>(
arg1: expression,
arg2: any
): boolean;

Parameters:

arg1 - (expression)

arg2 - (any dataType)

Returns:

(boolean)

Implemented by afw_function_execute_nex()


Function definition to_string<expression>

Definition at line 10950 of file afw_function_bindings.h.