Daedalus Dock - Modules - TypesVar Details - Proc Details

circuit_composite_template

A template used to make composite datatypes for circuits. Used so that we don't have to generate every single possible combination of types

Vars

composite_datatype_pathThe path to the composite type
datatypeThe datatype this composite template is of.
expected_typesThe amount of composite datatypes needed to generate a datatype from this template
types_to_generateTypes to generate during initialization

Procs

InitializeUsed to generate composite types from anything that was generated before global variables were all initialized. Used for when composite datatypes are used in globally defined lists, before GLOB.circuit_datatypes is available.
generate_composite_typeGenerates a composite type using this template. Not recommended to use directly, use a define instead.
generate_nameGenerates a name for the datatype using the unique list of composite datatypes. This should always generate a constant value for the input given as it is used as the unique identifier

Var Details

composite_datatype_path

The path to the composite type

datatype

The datatype this composite template is of.

expected_types

The amount of composite datatypes needed to generate a datatype from this template

types_to_generate

Types to generate during initialization

Proc Details

Initialize

Used to generate composite types from anything that was generated before global variables were all initialized. Used for when composite datatypes are used in globally defined lists, before GLOB.circuit_datatypes is available.

generate_composite_type

Generates a composite type using this template. Not recommended to use directly, use a define instead.

Arguments:

generate_name

Generates a name for the datatype using the unique list of composite datatypes. This should always generate a constant value for the input given as it is used as the unique identifier