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

Functions

const afw_value_tafw_function_execute_compile_hybrid (afw_function_execute_t *x)
 Adaptive Function compile<hybrid> More...
 
const afw_value_tafw_function_execute_evaluate_hybrid (afw_function_execute_t *x)
 Adaptive Function evaluate<hybrid> More...
 

Variables

 afw_function_definition_bag_hybrid
 Function definition bag<hybrid>
 
 afw_function_definition_bag_size_hybrid
 Adaptive Function bag<hybrid> More...
 
 afw_function_definition_compile_hybrid
 Adaptive Function bag_size<hybrid> More...
 
 afw_function_definition_eq_hybrid
 Function definition eq<hybrid>
 
 afw_function_definition_eqx_hybrid
 Adaptive Function eq<hybrid> More...
 
 afw_function_definition_evaluate_hybrid
 Adaptive Function eqx<hybrid> More...
 
 afw_function_definition_ge_hybrid
 Function definition ge<hybrid>
 
 afw_function_definition_gt_hybrid
 Adaptive Function ge<hybrid> More...
 
 afw_function_definition_hybrid
 Adaptive Function gt<hybrid> More...
 
 afw_function_definition_is_hybrid
 Adaptive Function hybrid More...
 
 afw_function_definition_le_hybrid
 Adaptive Function is<hybrid> More...
 
 afw_function_definition_lt_hybrid
 Adaptive Function le<hybrid> More...
 
 afw_function_definition_ne_hybrid
 Adaptive Function lt<hybrid> More...
 
 afw_function_definition_nex_hybrid
 Adaptive Function ne<hybrid> More...
 
 afw_function_definition_to_string_hybrid
 Adaptive Function nex<hybrid> More...
 

Detailed Description

hybrid adaptive functions.

Function Documentation

◆ afw_function_execute_compile_hybrid()

const afw_value_t* afw_function_execute_compile_hybrid ( afw_function_execute_t x)

Adaptive Function compile<hybrid>

Parameters
xfunction execute parameter.

Compile hybrid 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<hybrid>(
source: hybrid,
listing?: any
): unevaluated;

Parameters:

source - (hybrid) hybrid 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_hybrid.c.

◆ afw_function_execute_evaluate_hybrid()

const afw_value_t* afw_function_execute_evaluate_hybrid ( afw_function_execute_t x)

Adaptive Function evaluate<hybrid>

Parameters
xfunction execute parameter.

Compile and evaluate hybrid value.

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

Declaration:

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

Parameters:

source - (hybrid) hybrid 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_hybrid.c.

Variable Documentation

◆ afw_function_definition_bag_size_hybrid

afw_function_definition_bag_size_hybrid

Adaptive Function bag<hybrid>

Parameters
xfunction execute parameter.

Takes any number of hybrid 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<hybrid>(
...values: (list of (list hybrid))
): (list hybrid);

Parameters:

values - (0 or more list hybrid)

Returns:

(list hybrid)

Implemented by afw_function_execute_bag()


Function definition bag_size<hybrid>

Definition at line 12771 of file afw_function_bindings.h.

◆ afw_function_definition_compile_hybrid

afw_function_definition_compile_hybrid

Adaptive Function bag_size<hybrid>

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<hybrid>(
value: (list hybrid)
): integer;

Parameters:

value - (list hybrid)

Returns:

(integer)

Implemented by afw_function_execute_bag_size()


Function definition compile<hybrid>

Definition at line 12805 of file afw_function_bindings.h.

◆ afw_function_definition_eqx_hybrid

afw_function_definition_eqx_hybrid

Adaptive Function eq<hybrid>

Parameters
xfunction execute parameter.

Determine if hybrid 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<hybrid>(
arg1: hybrid,
arg2: any
): boolean;

Parameters:

arg1 - (hybrid)

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<hybrid>

Definition at line 12891 of file afw_function_bindings.h.

◆ afw_function_definition_evaluate_hybrid

afw_function_definition_evaluate_hybrid

Adaptive Function eqx<hybrid>

Parameters
xfunction execute parameter.

Determine if for hybrid 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<hybrid>(
arg1: hybrid,
arg2: any
): boolean;

Parameters:

arg1 - (hybrid)

arg2 - (any dataType)

Returns:

(boolean)

Implemented by afw_function_execute_eqx()


Function definition evaluate<hybrid>

Definition at line 12930 of file afw_function_bindings.h.

◆ afw_function_definition_gt_hybrid

afw_function_definition_gt_hybrid

Adaptive Function ge<hybrid>

Parameters
xfunction execute parameter.

Checks for hybrid arg1 is greater than or equal to hybrid 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<hybrid>(
arg1: hybrid,
arg2: hybrid
): boolean;

Parameters:

arg1 - (hybrid)

arg2 - (hybrid)

Returns:

(boolean)

Implemented by afw_function_execute_ge()


Function definition gt<hybrid>

Definition at line 13010 of file afw_function_bindings.h.

◆ afw_function_definition_hybrid

afw_function_definition_hybrid

Adaptive Function gt<hybrid>

Parameters
xfunction execute parameter.

Checks for hybrid arg1 is greater than hybrid 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<hybrid>(
arg1: hybrid,
arg2: hybrid
): boolean;

Parameters:

arg1 - (hybrid)

arg2 - (hybrid)

Returns:

(boolean)

Implemented by afw_function_execute_gt()


Function definition hybrid

Definition at line 13048 of file afw_function_bindings.h.

◆ afw_function_definition_is_hybrid

afw_function_definition_is_hybrid

Adaptive Function hybrid

Parameters
xfunction execute parameter.

Converts value to data type hybrid returning hybrid 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 hybrid(
value: any
): hybrid;

Parameters:

value - (any dataType) Value to convert.

Returns:

(hybrid) Converted value.

Errors thrown:

cast_error - value could not be converted

Implemented by afw_function_execute_convert()


Function definition is<hybrid>

Definition at line 13086 of file afw_function_bindings.h.

◆ afw_function_definition_le_hybrid

afw_function_definition_le_hybrid

Adaptive Function is<hybrid>

Parameters
xfunction execute parameter.

Checks whether value is dataType hybrid 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<hybrid>(
value: any
): boolean;

Parameters:

value - (any dataType) Value to check.

Returns:

(boolean)

Implemented by afw_function_execute_is()


Function definition le<hybrid>

Definition at line 13120 of file afw_function_bindings.h.

◆ afw_function_definition_lt_hybrid

afw_function_definition_lt_hybrid

Adaptive Function le<hybrid>

Parameters
xfunction execute parameter.

Checks for hybrid arg1 is less than or equal to hybrid 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<hybrid>(
arg1: hybrid,
arg2: any
): boolean;

Parameters:

arg1 - (hybrid)

arg2 - (any dataType)

Returns:

(boolean)

Implemented by afw_function_execute_le()


Function definition lt<hybrid>

Definition at line 13158 of file afw_function_bindings.h.

◆ afw_function_definition_ne_hybrid

afw_function_definition_ne_hybrid

Adaptive Function lt<hybrid>

Parameters
xfunction execute parameter.

Checks for hybrid arg1 is less that hybrid 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<hybrid>(
arg1: hybrid,
arg2: hybrid
): boolean;

Parameters:

arg1 - (hybrid)

arg2 - (hybrid)

Returns:

(boolean)

Implemented by afw_function_execute_lt()


Function definition ne<hybrid>

Definition at line 13196 of file afw_function_bindings.h.

◆ afw_function_definition_nex_hybrid

afw_function_definition_nex_hybrid

Adaptive Function ne<hybrid>

Parameters
xfunction execute parameter.

Determine if hybrid 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<hybrid>(
arg1: hybrid,
arg2: any
): boolean;

Parameters:

arg1 - (hybrid)

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<hybrid>

Definition at line 13239 of file afw_function_bindings.h.

◆ afw_function_definition_to_string_hybrid

afw_function_definition_to_string_hybrid

Adaptive Function nex<hybrid>

Parameters
xfunction execute parameter.

Determine if for hybrid 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<hybrid>(
arg1: hybrid,
arg2: any
): boolean;

Parameters:

arg1 - (hybrid)

arg2 - (any dataType)

Returns:

(boolean)

Implemented by afw_function_execute_nex()


Function definition to_string<hybrid>

Definition at line 13278 of file afw_function_bindings.h.