Adaptive Framework
0.9.0
|
Functions | |
const afw_value_t * | afw_function_execute_abs_integer (afw_function_execute_t *x) |
Adaptive Function abs<integer> More... | |
const afw_value_t * | afw_function_execute_add_integer (afw_function_execute_t *x) |
Adaptive Function add<integer> More... | |
const afw_value_t * | afw_function_execute_divide_integer (afw_function_execute_t *x) |
Adaptive Function divide<integer> More... | |
const afw_value_t * | afw_function_execute_mod_integer (afw_function_execute_t *x) |
Adaptive Function mod<integer> More... | |
const afw_value_t * | afw_function_execute_multiply_integer (afw_function_execute_t *x) |
Adaptive Function multiply<integer> More... | |
const afw_value_t * | afw_function_execute_negative_integer (afw_function_execute_t *x) |
Adaptive Function negative<integer> More... | |
const afw_value_t * | afw_function_execute_subtract_integer (afw_function_execute_t *x) |
Adaptive Function subtract<integer> More... | |
integer adaptive functions.
const afw_value_t* afw_function_execute_abs_integer | ( | afw_function_execute_t * | x | ) |
Adaptive Function abs<integer>
x | function execute parameter. |
Compute the absolute value of the integer value and return the integer result.
This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.
Declaration:
Parameters:
value - (integer)
Returns:
(integer)
Definition at line 48 of file afw_function_integer.c.
const afw_value_t* afw_function_execute_add_integer | ( | afw_function_execute_t * | x | ) |
Adaptive Function add<integer>
x | function execute parameter. |
Add 2 or more integer values and return the integer result.
This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.
Declaration:
Parameters:
values - (2 or more integer)
Returns:
(integer)
Definition at line 93 of file afw_function_integer.c.
const afw_value_t* afw_function_execute_divide_integer | ( | afw_function_execute_t * | x | ) |
Adaptive Function divide<integer>
x | function execute parameter. |
Divide integer dividend by integer divisor and return the integer quotient.
This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.
Declaration:
Parameters:
dividend - (integer)
divisor - (integer)
Returns:
(integer)
Definition at line 147 of file afw_function_integer.c.
const afw_value_t* afw_function_execute_mod_integer | ( | afw_function_execute_t * | x | ) |
Adaptive Function mod<integer>
x | function execute parameter. |
Divide integer dividend by integer divisor and return the integer remainder.
This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.
Declaration:
Parameters:
dividend - (integer)
divisor - (integer)
Returns:
(integer)
Definition at line 199 of file afw_function_integer.c.
const afw_value_t* afw_function_execute_multiply_integer | ( | afw_function_execute_t * | x | ) |
Adaptive Function multiply<integer>
x | function execute parameter. |
Multiply 2 or more integer values and return the integer result.
This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.
Declaration:
Parameters:
values - (2 or more integer)
Returns:
(integer)
Definition at line 250 of file afw_function_integer.c.
const afw_value_t* afw_function_execute_negative_integer | ( | afw_function_execute_t * | x | ) |
Adaptive Function negative<integer>
x | function execute parameter. |
Return negative of integer value.
This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.
Declaration:
Parameters:
value - (integer)
Returns:
(integer)
Definition at line 388 of file afw_function_integer.c.
const afw_value_t* afw_function_execute_subtract_integer | ( | afw_function_execute_t * | x | ) |
Adaptive Function subtract<integer>
x | function execute parameter. |
Subtract integer arg2 from integer arg1 and return the integer result.
This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.
Declaration:
Parameters:
arg1 - (integer)
arg2 - (integer)
Returns:
(integer)
Definition at line 303 of file afw_function_integer.c.
afw_function_definition_bag_integer |
Adaptive Function at_least_one_member_of<integer>
x | function execute parameter. |
Returns boolean true if at least one value in integer list1 is in integer list2.
This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.
Declaration:
Parameters:
list1 - (list integer) The first list.
list2 - (list integer) The second list.
Returns:
(boolean)
Implemented by afw_function_execute_at_least_one_member_of()
Function definition bag<integer>
Definition at line 14070 of file afw_function_bindings.h.
afw_function_definition_bag_size_integer |
Adaptive Function bag<integer>
x | function execute parameter. |
Takes any number of integer 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:
Parameters:
values - (0 or more list integer)
Returns:
(list integer)
Implemented by afw_function_execute_bag()
Function definition bag_size<integer>
Definition at line 14104 of file afw_function_bindings.h.
afw_function_definition_divide_integer |
Adaptive Function bag_size<integer>
x | function 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:
Parameters:
value - (list integer)
Returns:
(integer)
Implemented by afw_function_execute_bag_size()
Function definition divide<integer>
Definition at line 14138 of file afw_function_bindings.h.
afw_function_definition_eqx_integer |
Adaptive Function eq<integer>
x | function execute parameter. |
Determine if integer 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:
Parameters:
arg1 - (integer)
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<integer>
Definition at line 14217 of file afw_function_bindings.h.
afw_function_definition_ge_integer |
Adaptive Function eqx<integer>
x | function execute parameter. |
Determine if for integer 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:
Parameters:
arg1 - (integer)
arg2 - (any dataType)
Returns:
(boolean)
Implemented by afw_function_execute_eqx()
Function definition ge<integer>
Definition at line 14256 of file afw_function_bindings.h.
afw_function_definition_gt_integer |
Adaptive Function ge<integer>
x | function execute parameter. |
Checks for integer arg1 is greater than or equal to integer 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:
Parameters:
arg1 - (integer)
arg2 - (integer)
Returns:
(boolean)
Implemented by afw_function_execute_ge()
Function definition gt<integer>
Definition at line 14294 of file afw_function_bindings.h.
afw_function_definition_integer |
Adaptive Function gt<integer>
x | function execute parameter. |
Checks for integer arg1 is greater than integer 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:
Parameters:
arg1 - (integer)
arg2 - (integer)
Returns:
(boolean)
Implemented by afw_function_execute_gt()
Function definition integer
Definition at line 14332 of file afw_function_bindings.h.
afw_function_definition_intersection_integer |
Adaptive Function integer
x | function execute parameter. |
Converts value to data type integer returning integer result.
This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.
Declaration:
Parameters:
value - (any dataType) Value to convert.
Returns:
(integer) Converted value.
Errors thrown:
cast_error - value could not be converted
Implemented by afw_function_execute_convert()
Function definition intersection<integer>
Definition at line 14370 of file afw_function_bindings.h.
afw_function_definition_is_in_integer |
Adaptive Function intersection<integer>
x | function execute parameter. |
Returns a list of integer with the values that are common to both list of integer list1 and list2.
This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.
Declaration:
Parameters:
list1 - (list integer) The first list.
list2 - (list integer) The second list.
Returns:
(list integer)
Implemented by afw_function_execute_intersection()
Function definition is_in<integer>
Definition at line 14408 of file afw_function_bindings.h.
afw_function_definition_is_integer |
Adaptive Function is_in<integer>
x | function execute parameter. |
Checks whether integer value is in list of integer list and returns 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:
Parameters:
value - (integer)
list - (list integer)
Returns:
(boolean)
Implemented by afw_function_execute_is_in()
Function definition is<integer>
Definition at line 14446 of file afw_function_bindings.h.
afw_function_definition_le_integer |
Adaptive Function is<integer>
x | function execute parameter. |
Checks whether value is dataType integer 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:
Parameters:
value - (any dataType) Value to check.
Returns:
(boolean)
Implemented by afw_function_execute_is()
Function definition le<integer>
Definition at line 14480 of file afw_function_bindings.h.
afw_function_definition_lt_integer |
Adaptive Function le<integer>
x | function execute parameter. |
Checks for integer arg1 is less than or equal to integer 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:
Parameters:
arg1 - (integer)
arg2 - (any dataType)
Returns:
(boolean)
Implemented by afw_function_execute_le()
Function definition lt<integer>
Definition at line 14518 of file afw_function_bindings.h.
afw_function_definition_max_integer |
Adaptive Function lt<integer>
x | function execute parameter. |
Checks for integer arg1 is less that integer 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:
Parameters:
arg1 - (integer)
arg2 - (integer)
Returns:
(boolean)
Implemented by afw_function_execute_lt()
Function definition max<integer>
Definition at line 14556 of file afw_function_bindings.h.
afw_function_definition_min_integer |
Adaptive Function max<integer>
x | function execute parameter. |
Return the integer value that is greater than or equal to the others.
This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.
Declaration:
Parameters:
values - (1 or more integer)
Returns:
(integer)
Implemented by afw_function_execute_max()
Function definition min<integer>
Definition at line 14591 of file afw_function_bindings.h.
afw_function_definition_mod_integer |
Adaptive Function min<integer>
x | function execute parameter. |
Return the integer value that is less than or equal to the others.
This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.
Declaration:
Parameters:
values - (1 or more integer)
Returns:
(integer)
Implemented by afw_function_execute_min()
Function definition mod<integer>
Definition at line 14626 of file afw_function_bindings.h.
afw_function_definition_negative_integer |
Adaptive Function ne<integer>
x | function execute parameter. |
Determine if integer 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:
Parameters:
arg1 - (integer)
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 negative<integer>
Definition at line 14740 of file afw_function_bindings.h.
afw_function_definition_one_and_only_integer |
Adaptive Function nex<integer>
x | function execute parameter. |
Determine if for integer 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:
Parameters:
arg1 - (integer)
arg2 - (any dataType)
Returns:
(boolean)
Implemented by afw_function_execute_nex()
Function definition one_and_only<integer>
Definition at line 14812 of file afw_function_bindings.h.
afw_function_definition_set_equals_integer |
Adaptive Function one_and_only<integer>
x | function execute parameter. |
This converts a list of integer values that contains one value to a single integer value.
This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.
Declaration:
Parameters:
list - (list list)
Returns:
(integer)
Errors thrown:
arg_error - list does not contain exactly one value
Implemented by afw_function_execute_one_and_only()
Function definition set_equals<integer>
Definition at line 14851 of file afw_function_bindings.h.
afw_function_definition_subset_integer |
Adaptive Function set_equals<integer>
x | function execute parameter. |
Returns boolean true if integer list1 and integer list2 are subsets of each other 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:
Parameters:
list1 - (list integer)
list2 - (list integer)
Returns:
(boolean)
Implemented by afw_function_execute_set_equals()
Function definition subset<integer>
Definition at line 14889 of file afw_function_bindings.h.
afw_function_definition_subtract_integer |
Adaptive Function subset<integer>
x | function execute parameter. |
Returns boolean true if the unique values in integer list1 are all in integer list2.
This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.
Declaration:
Parameters:
list1 - (list integer) The first list.
list2 - (list integer) The second list.
Returns:
(boolean)
Implemented by afw_function_execute_subset()
Function definition subtract<integer>
Definition at line 14927 of file afw_function_bindings.h.
afw_function_definition_to_string_integer |
Adaptive Function to_double<integer>
x | function execute parameter. |
Converts integer value to double and returns double result.
This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.
Declaration:
Parameters:
value - (integer)
Returns:
(double)
Errors thrown:
cast_error - value could not be converted
Implemented by afw_function_execute_to_double_integer()
Function definition to_string<integer>
Definition at line 15001 of file afw_function_bindings.h.
afw_function_definition_union_integer |
Adaptive Function to_string<integer>
x | function execute parameter. |
Converts integer value to string. For list values, the to_string() value for each entry is returned separated with commas.
This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.
Declaration:
Parameters:
value - (integer) A integer value.
Returns:
(string) The string representation of the value.
Implemented by afw_function_execute_convert()
Function definition union<integer>
Definition at line 15036 of file afw_function_bindings.h.