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

Adaptive Function to_string<objectPath> More...

Functions

const afw_value_tafw_function_execute_add_properties (afw_function_execute_t *x)
 Adaptive Function add_properties More...
 
const afw_value_tafw_function_execute_apply_object_options (afw_function_execute_t *x)
 Adaptive Function apply_object_options More...
 
const afw_value_tafw_function_execute_local_object_meta_set_ids (afw_function_execute_t *x)
 Adaptive Function local_object_meta_set_ids More...
 
const afw_value_tafw_function_execute_property_exists (afw_function_execute_t *x)
 Adaptive Function property_exists More...
 
const afw_value_tafw_function_execute_property_get (afw_function_execute_t *x)
 Adaptive Function property_get More...
 
const afw_value_tafw_function_execute_property_is_not_null (afw_function_execute_t *x)
 Adaptive Function property_is_not_null More...
 

Variables

 afw_function_definition_add_properties
 Function definition add_properties.
 
 afw_function_definition_apply_object_options
 Function definition apply_object_options.
 
 afw_function_definition_bag_object
 Function definition bag<object>
 
 afw_function_definition_bag_size_object
 Adaptive Function bag<object> More...
 
 afw_function_definition_clone_object
 Adaptive Function bag_size<object> More...
 
 afw_function_definition_eq_object
 Adaptive Function clone<object> More...
 
 afw_function_definition_eqx_object
 Adaptive Function eq<object> More...
 
 afw_function_definition_ge_object
 Adaptive Function eqx<object> More...
 
 afw_function_definition_gt_object
 Adaptive Function ge<object> More...
 
 afw_function_definition_is_object
 Adaptive Function gt<object> More...
 
 afw_function_definition_le_object
 Adaptive Function is<object> More...
 
 afw_function_definition_local_object_meta_set_ids
 Adaptive Function le<object> More...
 
 afw_function_definition_lt_object
 Function definition lt<object>
 
 afw_function_definition_ne_object
 Adaptive Function lt<object> More...
 
 afw_function_definition_nex_object
 Adaptive Function ne<object> More...
 
 afw_function_definition_object
 Adaptive Function nex<object> More...
 
 afw_function_definition_property_exists
 Adaptive Function object More...
 
 afw_function_definition_property_get
 Function definition property_get.
 
 afw_function_definition_property_is_not_null
 Function definition property_is_not_null.
 
 afw_function_definition_to_string_object
 Function definition to_string<object>
 

Detailed Description

Adaptive Function to_string<objectPath>

Parameters
xfunction execute parameter.

Converts objectPath 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<objectPath>(
value: objectPath
): string;

Parameters:

value - (objectPath) A objectPath value.

Returns:

(string) The string representation of the value.

Implemented by afw_function_execute_convert()


object adaptive functions.

Function Documentation

◆ afw_function_execute_add_properties()

const afw_value_t* afw_function_execute_add_properties ( afw_function_execute_t x)

Adaptive Function add_properties

Parameters
xfunction execute parameter.

Add the properties of one object to another replacing existing properties by the same name.

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

Declaration:

function add_properties(
target: object,
source_1: object,
...source_rest: (list of object)
): object;

Parameters:

target - (object) Target object. This object must not be immutable.

source - (1 or more object) Source object(s).

Returns:

(object) The modified target object.

Definition at line 52 of file afw_function_object.c.

◆ afw_function_execute_apply_object_options()

const afw_value_t* afw_function_execute_apply_object_options ( afw_function_execute_t x)

Adaptive Function apply_object_options

Parameters
xfunction execute parameter.

This will return an object with the specified object options applied.

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

Declaration:

function apply_object_options(
object: object,
options?: (object _AdaptiveObjectOptions_)
): object;

Parameters:

object - (object) Object used to produce result.

options - (optional object AdaptiveObjectOptions) Object options. See /afw/_AdaptiveObjectType_/_AdaptiveObjectOptions_ for more information.

Returns:

(object) This is an object with object options applied.

Definition at line 116 of file afw_function_object.c.

◆ afw_function_execute_local_object_meta_set_ids()

const afw_value_t* afw_function_execute_local_object_meta_set_ids ( afw_function_execute_t x)

Adaptive Function local_object_meta_set_ids

Parameters
xfunction execute parameter.

This is used to set the ids in a local mutable object. The ids are used to construct a local path.

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

Declaration:

function local_object_meta_set_ids(
object: object,
adaptorId: string,
objectType: string,
objectId: string
): null;

Parameters:

object - (object) Object to set ids in.

adaptorId - (string) Adaptor id for object.

objectType - (string) Object type id for object.

objectId - (string) Object id for object.

Returns:

(null)

Definition at line 177 of file afw_function_object.c.

◆ afw_function_execute_property_exists()

const afw_value_t* afw_function_execute_property_exists ( afw_function_execute_t x)

Adaptive Function property_exists

Parameters
xfunction execute parameter.

Return true if the named property exists in an object.

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

Declaration:

function property_exists(
object: object,
name: string
): boolean;

Parameters:

object - (object) Object to get property from.

name - (string) Name of property to check.

Returns:

(boolean) True if object has named property.

Definition at line 231 of file afw_function_object.c.

◆ afw_function_execute_property_get()

const afw_value_t* afw_function_execute_property_get ( afw_function_execute_t x)

Adaptive Function property_get

Parameters
xfunction execute parameter.

Return the value of a property of an object. If property is not available, return a default or null value.

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

Declaration:

function property_get(
object: object,
name: string,
defaultValue?: any
): any;

Parameters:

object - (object) Object to get property from.

name - (string) Name of property to get.

defaultValue - (optional any dataType) The default value of property if it does not exist in object. If not specified, null value is the default.

Returns:

(any dataType) Evaluated property value or default.

Definition at line 285 of file afw_function_object.c.

◆ afw_function_execute_property_is_not_null()

const afw_value_t* afw_function_execute_property_is_not_null ( afw_function_execute_t x)

Adaptive Function property_is_not_null

Parameters
xfunction execute parameter.

Return true if the named property exists in an object and is not null.

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

Declaration:

function property_is_not_null(
object: object,
name: string
): boolean;

Parameters:

object - (object) Object to get property from.

name - (string) Name of property to check.

Returns:

(boolean) True if object has named property that is not null.

Definition at line 344 of file afw_function_object.c.

Variable Documentation

◆ afw_function_definition_bag_size_object

afw_function_definition_bag_size_object

Adaptive Function bag<object>

Parameters
xfunction execute parameter.

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

Parameters:

values - (0 or more list object)

Returns:

(list object)

Implemented by afw_function_execute_bag()


Function definition bag_size<object>

Definition at line 19371 of file afw_function_bindings.h.

◆ afw_function_definition_clone_object

afw_function_definition_clone_object

Adaptive Function bag_size<object>

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

Parameters:

value - (list object)

Returns:

(integer)

Implemented by afw_function_execute_bag_size()


Function definition clone<object>

Definition at line 19405 of file afw_function_bindings.h.

◆ afw_function_definition_eq_object

afw_function_definition_eq_object

Adaptive Function clone<object>

Parameters
xfunction execute parameter.

Deep clone a object 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 clone<object>(
value: object
): object;

Parameters:

value - (object) The object value to clone.

Returns:

(object) The cloned object value.

Implemented by afw_function_execute_clone()


Function definition eq<object>

Definition at line 19439 of file afw_function_bindings.h.

◆ afw_function_definition_eqx_object

afw_function_definition_eqx_object

Adaptive Function eq<object>

Parameters
xfunction execute parameter.

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

Parameters:

arg1 - (object)

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

Definition at line 19482 of file afw_function_bindings.h.

◆ afw_function_definition_ge_object

afw_function_definition_ge_object

Adaptive Function eqx<object>

Parameters
xfunction execute parameter.

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

Parameters:

arg1 - (object)

arg2 - (any dataType)

Returns:

(boolean)

Implemented by afw_function_execute_eqx()


Function definition ge<object>

Definition at line 19521 of file afw_function_bindings.h.

◆ afw_function_definition_gt_object

afw_function_definition_gt_object

Adaptive Function ge<object>

Parameters
xfunction execute parameter.

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

Parameters:

arg1 - (object)

arg2 - (object)

Returns:

(boolean)

Implemented by afw_function_execute_ge()


Function definition gt<object>

Definition at line 19559 of file afw_function_bindings.h.

◆ afw_function_definition_is_object

afw_function_definition_is_object

Adaptive Function gt<object>

Parameters
xfunction execute parameter.

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

Parameters:

arg1 - (object)

arg2 - (object)

Returns:

(boolean)

Implemented by afw_function_execute_gt()


Function definition is<object>

Definition at line 19597 of file afw_function_bindings.h.

◆ afw_function_definition_le_object

afw_function_definition_le_object

Adaptive Function is<object>

Parameters
xfunction execute parameter.

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

Parameters:

value - (any dataType) Value to check.

Returns:

(boolean)

Implemented by afw_function_execute_is()


Function definition le<object>

Definition at line 19631 of file afw_function_bindings.h.

◆ afw_function_definition_local_object_meta_set_ids

afw_function_definition_local_object_meta_set_ids

Adaptive Function le<object>

Parameters
xfunction execute parameter.

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

Parameters:

arg1 - (object)

arg2 - (any dataType)

Returns:

(boolean)

Implemented by afw_function_execute_le()


Function definition local_object_meta_set_ids

Definition at line 19669 of file afw_function_bindings.h.

◆ afw_function_definition_ne_object

afw_function_definition_ne_object

Adaptive Function lt<object>

Parameters
xfunction execute parameter.

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

Parameters:

arg1 - (object)

arg2 - (object)

Returns:

(boolean)

Implemented by afw_function_execute_lt()


Function definition ne<object>

Definition at line 19750 of file afw_function_bindings.h.

◆ afw_function_definition_nex_object

afw_function_definition_nex_object

Adaptive Function ne<object>

Parameters
xfunction execute parameter.

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

Parameters:

arg1 - (object)

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

Definition at line 19793 of file afw_function_bindings.h.

◆ afw_function_definition_object

afw_function_definition_object

Adaptive Function nex<object>

Parameters
xfunction execute parameter.

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

Parameters:

arg1 - (object)

arg2 - (any dataType)

Returns:

(boolean)

Implemented by afw_function_execute_nex()


Function definition object

Definition at line 19832 of file afw_function_bindings.h.

◆ afw_function_definition_property_exists

afw_function_definition_property_exists

Adaptive Function object

Parameters
xfunction execute parameter.

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

Parameters:

value - (any dataType) Value to convert.

Returns:

(object) Converted value.

Errors thrown:

cast_error - value could not be converted

Implemented by afw_function_execute_convert()


Function definition property_exists

Definition at line 19870 of file afw_function_bindings.h.