Adaptive Framework
0.9.0
|
Adaptive Function to_string<list>
More...
Functions | |
const afw_value_t * | afw_function_execute_and (afw_function_execute_t *x) |
Adaptive Function and More... | |
const afw_value_t * | afw_function_execute_n_of (afw_function_execute_t *x) |
Adaptive Function n_of More... | |
const afw_value_t * | afw_function_execute_not (afw_function_execute_t *x) |
Adaptive Function not More... | |
const afw_value_t * | afw_function_execute_or (afw_function_execute_t *x) |
Adaptive Function or More... | |
Variables | |
afw_function_definition_and | |
Function definition and. | |
afw_function_definition_n_of | |
Function definition n_of. | |
afw_function_definition_not | |
Function definition not. | |
afw_function_definition_or | |
Function definition or. | |
Adaptive Function to_string<list>
x | function execute parameter. |
Converts list 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 - (list) A list value.
Returns:
(string) The string representation of the value.
Implemented by afw_function_execute_convert()
logical adaptive functions.
const afw_value_t* afw_function_execute_and | ( | afw_function_execute_t * | x | ) |
Adaptive Function and
x | function execute parameter. |
Evaluates 0 or more boolean conditions returning boolean true if there are no conditions and boolean false if any condition evaluate to false. All conditions after the first false remain unevaluated.
This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.
Declaration:
Parameters:
conditions - (0 or more boolean)
Returns:
(boolean)
Definition at line 49 of file afw_function_logical.c.
const afw_value_t* afw_function_execute_n_of | ( | afw_function_execute_t * | x | ) |
Adaptive Function n_of
x | function execute parameter. |
integer n specifies the number of boolean conditions that follow that must evaluate to true for boolean true to be returned. If n is 0, true is returned. Once n conditions evaluate to true, true is returned and the remaining conditions remain unevaluated.
This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.
Declaration:
Parameters:
n - (integer)
conditions - (0 or more boolean)
Returns:
(boolean)
Errors thrown:
arg_error - there are less than n conditions
Definition at line 108 of file afw_function_logical.c.
const afw_value_t* afw_function_execute_not | ( | afw_function_execute_t * | x | ) |
Adaptive Function not
x | function execute parameter. |
Evaluates boolean condition returning boolean true if condition evaluates to false and false if condition evaluates to true.
This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.
Declaration:
Parameters:
condition - (boolean)
Returns:
(boolean)
Definition at line 166 of file afw_function_logical.c.
const afw_value_t* afw_function_execute_or | ( | afw_function_execute_t * | x | ) |
Adaptive Function or
x | function execute parameter. |
Evaluates 0 or more boolean conditions returning boolean false if there are no conditions and boolean true if any condition evaluate to true. All conditions after the first true remain unevaluated.
This function is pure, so it will always return the same result given exactly the same parameters and has no side effects.
Declaration:
Parameters:
conditions - (0 or more boolean)
Returns:
(boolean)
Definition at line 211 of file afw_function_logical.c.