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

Adaptive Function to_string<dnsName> More...

Functions

const afw_value_tafw_function_execute_abs_double (afw_function_execute_t *x)
 Adaptive Function abs<double> More...
 
const afw_value_tafw_function_execute_add_double (afw_function_execute_t *x)
 Adaptive Function add<double> More...
 
const afw_value_tafw_function_execute_ceil_double (afw_function_execute_t *x)
 Adaptive Function ceil<double> More...
 
const afw_value_tafw_function_execute_divide_double (afw_function_execute_t *x)
 Adaptive Function divide<double> More...
 
const afw_value_tafw_function_execute_floor_double (afw_function_execute_t *x)
 Adaptive Function floor<double> More...
 
const afw_value_tafw_function_execute_is_NaN (afw_function_execute_t *x)
 Adaptive Function is_NaN More...
 
const afw_value_tafw_function_execute_is_finite (afw_function_execute_t *x)
 Adaptive Function is_finite More...
 
const afw_value_tafw_function_execute_multiply_double (afw_function_execute_t *x)
 Adaptive Function multiply<double> More...
 
const afw_value_tafw_function_execute_negative_double (afw_function_execute_t *x)
 Adaptive Function negative<double> More...
 
const afw_value_tafw_function_execute_pow_double (afw_function_execute_t *x)
 Adaptive Function pow<double> More...
 
const afw_value_tafw_function_execute_round_double (afw_function_execute_t *x)
 Adaptive Function round<double> More...
 
const afw_value_tafw_function_execute_subtract_double (afw_function_execute_t *x)
 Adaptive Function subtract<double> More...
 

Variables

 afw_function_definition_abs_double
 Function definition abs<double>
 
 afw_function_definition_add_double
 Function definition add<double>
 
 afw_function_definition_at_least_one_member_of_double
 Function definition at_least_one_member_of<double>
 
 afw_function_definition_bag_double
 Adaptive Function at_least_one_member_of<double> More...
 
 afw_function_definition_bag_size_double
 Adaptive Function bag<double> More...
 
 afw_function_definition_ceil_double
 Adaptive Function bag_size<double> More...
 
 afw_function_definition_divide_double
 Function definition divide<double>
 
 afw_function_definition_double
 Function definition double.
 
 afw_function_definition_eq_double
 Adaptive Function double More...
 
 afw_function_definition_eqx_double
 Adaptive Function eq<double> More...
 
 afw_function_definition_floor_double
 Adaptive Function eqx<double> More...
 
 afw_function_definition_ge_double
 Function definition ge<double>
 
 afw_function_definition_gt_double
 Adaptive Function ge<double> More...
 
 afw_function_definition_intersection_double
 Adaptive Function gt<double> More...
 
 afw_function_definition_is_NaN
 Adaptive Function intersection<double> More...
 
 afw_function_definition_is_double
 Function definition is<double>
 
 afw_function_definition_is_finite
 Adaptive Function is<double> More...
 
 afw_function_definition_is_in_double
 Function definition is_in<double>
 
 afw_function_definition_le_double
 Adaptive Function is_in<double> More...
 
 afw_function_definition_lt_double
 Adaptive Function le<double> More...
 
 afw_function_definition_max_double
 Adaptive Function lt<double> More...
 
 afw_function_definition_min_double
 Adaptive Function max<double> More...
 
 afw_function_definition_multiply_double
 Adaptive Function min<double> More...
 
 afw_function_definition_ne_double
 Function definition ne<double>
 
 afw_function_definition_negative_double
 Adaptive Function ne<double> More...
 
 afw_function_definition_nex_double
 Function definition nex<double>
 
 afw_function_definition_one_and_only_double
 Adaptive Function nex<double> More...
 
 afw_function_definition_pow_double
 Adaptive Function one_and_only<double> More...
 
 afw_function_definition_round_double
 Function definition round<double>
 
 afw_function_definition_set_equals_double
 Function definition set_equals<double>
 
 afw_function_definition_subset_double
 Adaptive Function set_equals<double> More...
 
 afw_function_definition_subtract_double
 Adaptive Function subset<double> More...
 
 afw_function_definition_to_integer_double
 Function definition to_integer<double>
 
 afw_function_definition_to_string_double
 Adaptive Function to_integer<double> More...
 
 afw_function_definition_union_double
 Adaptive Function to_string<double> More...
 

Detailed Description

Adaptive Function to_string<dnsName>

Parameters
xfunction 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:

function to_string<dnsName>(
value: dnsName
): string;

Parameters:

value - (dnsName) A dnsName value.

Returns:

(string) The string representation of the value.

Implemented by afw_function_execute_convert()


double adaptive functions.

Function Documentation

◆ afw_function_execute_abs_double()

const afw_value_t* afw_function_execute_abs_double ( afw_function_execute_t x)

Adaptive Function abs<double>

Parameters
xfunction 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:

function abs<double>(
value: double
): double;

Parameters:

value - (double)

Returns:

(double)

Todo:
FIXME: A lot of the argument check may be able to be replaced by signals.

Definition at line 51 of file afw_function_double.c.

◆ afw_function_execute_add_double()

const afw_value_t* afw_function_execute_add_double ( afw_function_execute_t x)

Adaptive Function add<double>

Parameters
xfunction 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:

function add<double>(
values_1: double,
values_2: double,
...values_rest: (list of double)
): double;

Parameters:

values - (2 or more double)

Returns:

(double)

Definition at line 101 of file afw_function_double.c.

◆ afw_function_execute_ceil_double()

const afw_value_t* afw_function_execute_ceil_double ( afw_function_execute_t x)

Adaptive Function ceil<double>

Parameters
xfunction 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:

function ceil<double>(
value: double
): double;

Parameters:

value - (double)

Returns:

(double)

Definition at line 149 of file afw_function_double.c.

◆ afw_function_execute_divide_double()

const afw_value_t* afw_function_execute_divide_double ( afw_function_execute_t x)

Adaptive Function divide<double>

Parameters
xfunction 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:

function divide<double>(
dividend: double,
divisor: double
): double;

Parameters:

dividend - (double)

divisor - (double)

Returns:

(double)

Definition at line 193 of file afw_function_double.c.

◆ afw_function_execute_floor_double()

const afw_value_t* afw_function_execute_floor_double ( afw_function_execute_t x)

Adaptive Function floor<double>

Parameters
xfunction 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:

function floor<double>(
number: double
): double;

Parameters:

number - (double)

Returns:

(double)

Definition at line 281 of file afw_function_double.c.

◆ afw_function_execute_is_finite()

const afw_value_t* afw_function_execute_is_finite ( afw_function_execute_t x)

Adaptive Function is_finite

Parameters
xfunction 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:

function is_finite(
number: double
): boolean;

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.

◆ afw_function_execute_is_NaN()

const afw_value_t* afw_function_execute_is_NaN ( afw_function_execute_t x)

Adaptive Function is_NaN

Parameters
xfunction 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:

function is_NaN(
number: double
): boolean;

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.

◆ afw_function_execute_multiply_double()

const afw_value_t* afw_function_execute_multiply_double ( afw_function_execute_t x)

Adaptive Function multiply<double>

Parameters
xfunction 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:

function multiply<double>(
values_1: double,
values_2: double,
...values_rest: (list of double)
): double;

Parameters:

values - (2 or more double)

Returns:

(double)

Definition at line 324 of file afw_function_double.c.

◆ afw_function_execute_negative_double()

const afw_value_t* afw_function_execute_negative_double ( afw_function_execute_t x)

Adaptive Function negative<double>

Parameters
xfunction 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:

function negative<double>(
value: double
): double;

Parameters:

value - (double)

Returns:

(double)

Definition at line 617 of file afw_function_double.c.

◆ afw_function_execute_pow_double()

const afw_value_t* afw_function_execute_pow_double ( afw_function_execute_t x)

Adaptive Function pow<double>

Parameters
xfunction 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:

function pow<double>(
base: double,
exponent_1: double,
...exponent_rest: (list of double)
): double;

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.

◆ afw_function_execute_round_double()

const afw_value_t* afw_function_execute_round_double ( afw_function_execute_t x)

Adaptive Function round<double>

Parameters
xfunction 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:

function round<double>(
number: double
): double;

Parameters:

number - (double)

Returns:

(double)

Definition at line 488 of file afw_function_double.c.

◆ afw_function_execute_subtract_double()

const afw_value_t* afw_function_execute_subtract_double ( afw_function_execute_t x)

Adaptive Function subtract<double>

Parameters
xfunction 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:

function subtract<double>(
arg1: double,
arg2: double
): double;

Parameters:

arg1 - (double)

arg2 - (double)

Returns:

(double)

Definition at line 533 of file afw_function_double.c.

Variable Documentation

◆ afw_function_definition_bag_double

afw_function_definition_bag_double

Adaptive Function at_least_one_member_of<double>

Parameters
xfunction 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:

function at_least_one_member_of<double>(
list1: (list double),
list2: (list double)
): boolean;

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

afw_function_definition_bag_size_double

Adaptive Function bag<double>

Parameters
xfunction 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:

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

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

afw_function_definition_ceil_double

Adaptive Function bag_size<double>

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

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

afw_function_definition_eq_double

Adaptive Function double

Parameters
xfunction 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:

function double(
value: any
): double;

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

afw_function_definition_eqx_double

Adaptive Function eq<double>

Parameters
xfunction 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:

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

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

afw_function_definition_floor_double

Adaptive Function eqx<double>

Parameters
xfunction 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:

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

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

afw_function_definition_gt_double

Adaptive Function ge<double>

Parameters
xfunction 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:

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

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

afw_function_definition_intersection_double

Adaptive Function gt<double>

Parameters
xfunction 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:

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

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

afw_function_definition_is_finite

Adaptive Function is<double>

Parameters
xfunction 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:

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

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

afw_function_definition_is_NaN

Adaptive Function intersection<double>

Parameters
xfunction 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:

function intersection<double>(
list1: (list double),
list2: (list double)
): (list double);

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

afw_function_definition_le_double

Adaptive Function is_in<double>

Parameters
xfunction 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:

function is_in<double>(
value: double,
list: (list double)
): boolean;

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

afw_function_definition_lt_double

Adaptive Function le<double>

Parameters
xfunction 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:

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

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

afw_function_definition_max_double

Adaptive Function lt<double>

Parameters
xfunction 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:

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

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

afw_function_definition_min_double

Adaptive Function max<double>

Parameters
xfunction 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:

function max<double>(
values_1: double,
...values_rest: (list of double)
): double;

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

afw_function_definition_multiply_double

Adaptive Function min<double>

Parameters
xfunction 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:

function min<double>(
values_1: double,
...values_rest: (list of double)
): double;

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

afw_function_definition_negative_double

Adaptive Function ne<double>

Parameters
xfunction 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:

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

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

afw_function_definition_one_and_only_double

Adaptive Function nex<double>

Parameters
xfunction 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:

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

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

afw_function_definition_pow_double

Adaptive Function one_and_only<double>

Parameters
xfunction 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:

function one_and_only<double>(
list: (list list)
): double;

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

afw_function_definition_subset_double

Adaptive Function set_equals<double>

Parameters
xfunction 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:

function set_equals<double>(
list1: (list double),
list2: (list double)
): boolean;

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

afw_function_definition_subtract_double

Adaptive Function subset<double>

Parameters
xfunction 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:

function subset<double>(
list1: (list double),
list2: (list double)
): boolean;

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

afw_function_definition_to_string_double

Adaptive Function to_integer<double>

Parameters
xfunction 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:

function to_integer<double>(
value: double
): integer;

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

afw_function_definition_union_double

Adaptive Function to_string<double>

Parameters
xfunction 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:

function to_string<double>(
value: double
): string;

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.