Struct llhd::entity::Entity [] [src]

pub struct Entity { /* fields omitted */ }

An entity. Describes through its instructions the data dependencies in order to react to changes in input signals. Implements data flow and timed execution.

Methods

impl Entity
[src]

[src]

Create a new entity with the given name and type signature. Anonymous arguments are created for each input and output in the type signature. Use the inputs_mut and outputs_mut functions get a hold of these arguments and assign names and additional data to them.

[src]

Obtain a reference to this entity.

[src]

Get the name of the entity.

[src]

Get a graph reference to one of the inputs of the entity.

[src]

Get a reference to the input arguments of the entity.

[src]

Get a mutable reference to the input arguments of the entity.

[src]

Get a graph reference to one of the outputs of the entity.

[src]

Get a reference to the output arguments of the entity.

[src]

Get a mutable reference to the output arguments of the entity.

[src]

Add an instruction to the body.

[src]

Move an instruction around within the body.

[src]

Remove an instruction from the body.

[src]

Get a reference to an instruction in the body. Panics if the instruction does not exist.

[src]

Get a mutable reference to an instruction in the body. Panics if the instruction does not exist.

[src]

Obtain an iterator over the instructions in this entity.

[src]

Obtain an iterator over references to the instructions in this entity.

Trait Implementations

impl Value for Entity
[src]

[src]

Get the unique ID of the value.

[src]

Get the type of the value.

[src]

Get the optional name of the value.

[src]

Whether this value is global or not. Global values are considered during linking, and are visible in a module's symbol table. Local values are not, and are only visible within the surrounding context (module or unit). Read more