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

Struct for compiled value value. More...

#include <afw_value_internal.h>

Data Fields

const afw_value_inf_tinf
 
const afw_pool_tp
 Pool containing value.
 
const afw_value_compiled_value_tparent
 The parent compiled value or NULL.
 
const afw_value_troot_value
 The root value.
 
const afw_compile_value_contextual_tcontextual
 Contextual Info.
 
const afw_utf8_tsource_location
 Source location provided to compiler.
 
const afw_utf8_treference_id
 A uuid for this compiled value.
 
const afw_utf8_tfull_source
 The full source that was compiled.
 
const afw_utf8_tfull_source_type
 The type of the full source.
 
afw_size_t line_count
 The total number of lines in source. More...
 
afw_size_t longest_line
 The longest line excluding
. More...
 
afw_value_block_ttop_block
 
afw_value_block_tcurrent_block
 
const afw_object_tliterals
 Literal values. More...
 
const afw_object_tstrings
 Shared strings. More...
 

Detailed Description

Struct for compiled value value.

This is the top level value return from the adaptive compiler when the result is more than a literal. It contains the full source that is used by all children values, the symbol table, the literal value table shared strings.

The compiled value can also have a parent where literal values, etc are shared. This parent also contributes to the source location.

Methods of a compiled value value calls the root value's corresponding methods for optional_evaluate(), get_data_type(), get_evaluated_data_type() and get_evaluated_data_type_parameter().

Definition at line 260 of file afw_value_internal.h.

Field Documentation

◆ line_count

afw_size_t line_count

The total number of lines in source.

This will be 0 if the source does not have any newlines.

Definition at line 292 of file afw_value_internal.h.

◆ literals

const afw_object_t* literals

Literal values.

The property name is formed by concatenating the data type, a ':' and the string_value of the literal.

The value is an evaluated value of the data type.

Definition at line 315 of file afw_value_internal.h.

◆ longest_line

afw_size_t longest_line

The longest line excluding
.

This will be 0 if the source does not have any newlines.

Definition at line 299 of file afw_value_internal.h.

◆ strings

const afw_object_t* strings

Shared strings.

The property name is the string and value is an evaluated string.

Definition at line 322 of file afw_value_internal.h.


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