Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Fields
afw_runtime_object_map_property_s Struct Reference

Struct for runtime object map property. More...

#include <afw_runtime.h>

Data Fields

const afw_utf8_tname
 Property name.
 
afw_size_t offset
 Offset of internal property value in internal object struct. More...
 
afw_size_t count_offset
 Offset of bag value count afw_size_t for bag values or -1. More...
 
union {
   const afw_data_type_t *   data_type
 
   const afw_utf8_t *   unresolved_data_type_id
 
}; 
 
afw_utf8_t data_type_parameter
 
union {
   const afw_data_type_t *   data_type_parameter_data_type
 
   const afw_utf8_t *   unresolved_data_type_parameter_data_type_id
 
}; 
 
const afw_utf8_taccessor_name
 Name of registered runtime value accessor function. More...
 
afw_runtime_value_accessor_t accessor
 Accessor function or NULL. More...
 

Detailed Description

Struct for runtime object map property.

Members dataType and accessor will be resolved when registered if NULL.

Definition at line 99 of file afw_runtime.h.

Field Documentation

◆ 

union { ... }

Member data_type is always used except for the struct passed to afw_runtime_resolve_and_register_object_map_infs(), which will create a new struct and set its data_type to the data type named by member unresolved_data_type_id. Member unresolved_data_type_id should only be accessed by afw_runtime_resolve_and_register_object_map_infs().

◆ 

union { ... }

If data_type_parameter is a single data type, this is its pointer. If not core, this is resolved at register time.

◆ accessor

afw_runtime_value_accessor_t accessor

Accessor function or NULL.

If accessor_name is not zero length and this is NULL, it will be resolved by afw_environment_get_runtime_value_accessor() at register time.

Definition at line 160 of file afw_runtime.h.

◆ accessor_name

const afw_utf8_t* accessor_name

Name of registered runtime value accessor function.

If this is zero length, the default accessor is used. If offset is -1 (onGetValueCFunctionName was specified), this will always be NULL.

Definition at line 151 of file afw_runtime.h.

◆ count_offset

afw_size_t count_offset

Offset of bag value count afw_size_t for bag values or -1.

Can be -1 for bag values as well if values are pointers and list of pointers in NULL terminated.

Definition at line 116 of file afw_runtime.h.

◆ data_type_parameter

afw_utf8_t data_type_parameter

This is the dataTypeParameter. If dataType is list, 'object ' is stripped off since that can be determined by data_type_parameter_data_type.

Definition at line 134 of file afw_runtime.h.

◆ offset

afw_size_t offset

Offset of internal property value in internal object struct.

If onGetValueCFunctionName is specified, this will be -1.

Definition at line 108 of file afw_runtime.h.


The documentation for this struct was generated from the following file: