Adaptive Framework
0.9.0
|
Adaptive Function to_string<dnsName>
More...
Adaptive Function to_string<dnsName>
x | function execute parameter. |
Converts dnsName 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 - (dnsName) A dnsName value.
Returns:
(string) The string representation of the value.
Implemented by afw_function_execute_convert()
double adaptive functions.
const afw_value_t* afw_function_execute_abs_double | ( | afw_function_execute_t * | x | ) |
Adaptive Function abs<double>
x | function execute parameter. |
Compute the absolute value of the double value and return the 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 - (double)
Returns:
(double)
Definition at line 51 of file afw_function_double.c.
const afw_value_t* afw_function_execute_add_double | ( | afw_function_execute_t * | x | ) |
Adaptive Function add<double>
x | function execute parameter. |
Add 2 or more double values and return the 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:
values - (2 or more double)
Returns:
(double)
Definition at line 101 of file afw_function_double.c.
const afw_value_t* afw_function_execute_ceil_double | ( | afw_function_execute_t * | x | ) |
Adaptive Function ceil<double>
x | function execute parameter. |
Determine the smallest integer that is greater then or equal to the double value and return the 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 - (double)
Returns:
(double)
Definition at line 149 of file afw_function_double.c.
const afw_value_t* afw_function_execute_divide_double | ( | afw_function_execute_t * | x | ) |
Adaptive Function divide<double>
x | function execute parameter. |
Divide double dividend by double divisor and return the double 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 - (double)
divisor - (double)
Returns:
(double)
Definition at line 193 of file afw_function_double.c.
const afw_value_t* afw_function_execute_floor_double | ( | afw_function_execute_t * | x | ) |
Adaptive Function floor<double>
x | function execute parameter. |
Determine the largest integer that is smaller then or equal to the double value and return the 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:
number - (double)
Returns:
(double)
Definition at line 281 of file afw_function_double.c.
const afw_value_t* afw_function_execute_is_finite | ( | afw_function_execute_t * | x | ) |
Adaptive Function is_finite
x | function execute parameter. |
Checks if the argument 'number' is finite 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:
number - (double) Number to check.
Returns:
(boolean) True if the argument 'number' is finite.
Definition at line 237 of file afw_function_double.c.
const afw_value_t* afw_function_execute_is_NaN | ( | afw_function_execute_t * | x | ) |
Adaptive Function is_NaN
x | function execute parameter. |
Checks if the argument 'number' is not a number(NaN) 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:
number - (double) Number to check.
Returns:
(boolean) True if the argument 'number' is not a number.
Definition at line 372 of file afw_function_double.c.
const afw_value_t* afw_function_execute_multiply_double | ( | afw_function_execute_t * | x | ) |
Adaptive Function multiply<double>
x | function execute parameter. |
Multiply 2 or more double values and return the 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:
values - (2 or more double)
Returns:
(double)
Definition at line 324 of file afw_function_double.c.
const afw_value_t* afw_function_execute_negative_double | ( | afw_function_execute_t * | x | ) |
Adaptive Function negative<double>
x | function execute parameter. |
Return negative of double 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 - (double)
Returns:
(double)
Definition at line 617 of file afw_function_double.c.
const afw_value_t* afw_function_execute_pow_double | ( | afw_function_execute_t * | x | ) |
Adaptive Function pow<double>
x | function execute parameter. |
This returns the value of base raised to a power. Multiple exponents can be specified to raise the previous exponent to the power of the latter exponent.
This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.
Declaration:
Parameters:
base - (double) Base value.
exponent - (1 or more double) Exponent value.
Returns:
(double) Base raised to the power.
Definition at line 421 of file afw_function_double.c.
const afw_value_t* afw_function_execute_round_double | ( | afw_function_execute_t * | x | ) |
Adaptive Function round<double>
x | function execute parameter. |
Determine the integer closest to double value and return the 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:
number - (double)
Returns:
(double)
Definition at line 488 of file afw_function_double.c.
const afw_value_t* afw_function_execute_subtract_double | ( | afw_function_execute_t * | x | ) |
Adaptive Function subtract<double>
x | function execute parameter. |
Subtract double arg2 from double arg1 and return the 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:
arg1 - (double)
arg2 - (double)
Returns:
(double)
Definition at line 533 of file afw_function_double.c.
afw_function_definition_bag_double |
Adaptive Function at_least_one_member_of<double>
x | function execute parameter. |
Returns boolean true if at least one value in double list1 is in double 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 double) The first list.
list2 - (list double) The second list.
Returns:
(boolean)
Implemented by afw_function_execute_at_least_one_member_of()
Function definition bag<double>
Definition at line 9228 of file afw_function_bindings.h.
afw_function_definition_bag_size_double |
Adaptive Function bag<double>
x | function execute parameter. |
Takes any number of double 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 double)
Returns:
(list double)
Implemented by afw_function_execute_bag()
Function definition bag_size<double>
Definition at line 9262 of file afw_function_bindings.h.
afw_function_definition_ceil_double |
Adaptive Function bag_size<double>
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 double)
Returns:
(integer)
Implemented by afw_function_execute_bag_size()
Function definition ceil<double>
Definition at line 9296 of file afw_function_bindings.h.
afw_function_definition_eq_double |
Adaptive Function double
x | function execute parameter. |
Converts value to data type double returning 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 - (any dataType) Value to convert.
Returns:
(double) Converted value.
Errors thrown:
cast_error - value could not be converted
Implemented by afw_function_execute_convert()
Function definition eq<double>
Definition at line 9404 of file afw_function_bindings.h.
afw_function_definition_eqx_double |
Adaptive Function eq<double>
x | function execute parameter. |
Determine if double 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 - (double)
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<double>
Definition at line 9447 of file afw_function_bindings.h.
afw_function_definition_floor_double |
Adaptive Function eqx<double>
x | function execute parameter. |
Determine if for double 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 - (double)
arg2 - (any dataType)
Returns:
(boolean)
Implemented by afw_function_execute_eqx()
Function definition floor<double>
Definition at line 9486 of file afw_function_bindings.h.
afw_function_definition_gt_double |
Adaptive Function ge<double>
x | function execute parameter. |
Checks for double arg1 is greater than or equal to double 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 - (double)
arg2 - (double)
Returns:
(boolean)
Implemented by afw_function_execute_ge()
Function definition gt<double>
Definition at line 9558 of file afw_function_bindings.h.
afw_function_definition_intersection_double |
Adaptive Function gt<double>
x | function execute parameter. |
Checks for double arg1 is greater than double 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 - (double)
arg2 - (double)
Returns:
(boolean)
Implemented by afw_function_execute_gt()
Function definition intersection<double>
Definition at line 9596 of file afw_function_bindings.h.
afw_function_definition_is_finite |
Adaptive Function is<double>
x | function execute parameter. |
Checks whether value is dataType double 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 is_finite
Definition at line 9702 of file afw_function_bindings.h.
afw_function_definition_is_NaN |
Adaptive Function intersection<double>
x | function execute parameter. |
Returns a list of double with the values that are common to both list of double 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 double) The first list.
list2 - (list double) The second list.
Returns:
(list double)
Implemented by afw_function_execute_intersection()
Function definition is_NaN
Definition at line 9634 of file afw_function_bindings.h.
afw_function_definition_le_double |
Adaptive Function is_in<double>
x | function execute parameter. |
Checks whether double value is in list of double 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 - (double)
list - (list double)
Returns:
(boolean)
Implemented by afw_function_execute_is_in()
Function definition le<double>
Definition at line 9773 of file afw_function_bindings.h.
afw_function_definition_lt_double |
Adaptive Function le<double>
x | function execute parameter. |
Checks for double arg1 is less than or equal to double 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 - (double)
arg2 - (any dataType)
Returns:
(boolean)
Implemented by afw_function_execute_le()
Function definition lt<double>
Definition at line 9811 of file afw_function_bindings.h.
afw_function_definition_max_double |
Adaptive Function lt<double>
x | function execute parameter. |
Checks for double arg1 is less that double 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 - (double)
arg2 - (double)
Returns:
(boolean)
Implemented by afw_function_execute_lt()
Function definition max<double>
Definition at line 9849 of file afw_function_bindings.h.
afw_function_definition_min_double |
Adaptive Function max<double>
x | function execute parameter. |
Return the double 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 double)
Returns:
(double)
Implemented by afw_function_execute_max()
Function definition min<double>
Definition at line 9884 of file afw_function_bindings.h.
afw_function_definition_multiply_double |
Adaptive Function min<double>
x | function execute parameter. |
Return the double 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 double)
Returns:
(double)
Implemented by afw_function_execute_min()
Function definition multiply<double>
Definition at line 9919 of file afw_function_bindings.h.
afw_function_definition_negative_double |
Adaptive Function ne<double>
x | function execute parameter. |
Determine if double 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 - (double)
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<double>
Definition at line 9997 of file afw_function_bindings.h.
afw_function_definition_one_and_only_double |
Adaptive Function nex<double>
x | function execute parameter. |
Determine if for double 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 - (double)
arg2 - (any dataType)
Returns:
(boolean)
Implemented by afw_function_execute_nex()
Function definition one_and_only<double>
Definition at line 10069 of file afw_function_bindings.h.
afw_function_definition_pow_double |
Adaptive Function one_and_only<double>
x | function execute parameter. |
This converts a list of double values that contains one value to a single double 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:
(double)
Errors thrown:
arg_error - list does not contain exactly one value
Implemented by afw_function_execute_one_and_only()
Function definition pow<double>
Definition at line 10108 of file afw_function_bindings.h.
afw_function_definition_subset_double |
Adaptive Function set_equals<double>
x | function execute parameter. |
Returns boolean true if double list1 and double 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 double)
list2 - (list double)
Returns:
(boolean)
Implemented by afw_function_execute_set_equals()
Function definition subset<double>
Definition at line 10218 of file afw_function_bindings.h.
afw_function_definition_subtract_double |
Adaptive Function subset<double>
x | function execute parameter. |
Returns boolean true if the unique values in double list1 are all in double 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 double) The first list.
list2 - (list double) The second list.
Returns:
(boolean)
Implemented by afw_function_execute_subset()
Function definition subtract<double>
Definition at line 10256 of file afw_function_bindings.h.
afw_function_definition_to_string_double |
Adaptive Function to_integer<double>
x | function execute parameter. |
Truncate double value to a whole number and returns 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 - (double)
Returns:
(integer)
Implemented by afw_function_execute_to_integer_double()
Function definition to_string<double>
Definition at line 10326 of file afw_function_bindings.h.
afw_function_definition_union_double |
Adaptive Function to_string<double>
x | function execute parameter. |
Converts double 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 - (double) A double value.
Returns:
(string) The string representation of the value.
Implemented by afw_function_execute_convert()
Function definition union<double>
Definition at line 10361 of file afw_function_bindings.h.