wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
DolphinModelBuilder::Row Struct Reference

One waveform table row: exactly one PORT of one element. More...

#include <DolphinModelBuilder.h>

Public Attributes

GraphicElementelement = nullptr
 The element this row reads or drives.
RowKind kind = RowKind::Input
QString label
int port = 0

Detailed Description

One waveform table row: exactly one PORT of one element.

The table is laid out per port – a 2-bit rotary input occupies two rows, a Display7 occupies eight – so an element index is never a row index. This descriptor is the single source of truth for that layout: the label builder, the sweep and the snapshot API all consume it rather than deriving it independently, which is what keeps them from disagreeing about which row belongs to which port.

Definition at line 39 of file DolphinModelBuilder.h.

Member Data Documentation

◆ element

GraphicElement* DolphinModelBuilder::Row::element = nullptr

The element this row reads or drives.

Definition at line 40 of file DolphinModelBuilder.h.

◆ kind

RowKind DolphinModelBuilder::Row::kind = RowKind::Input

Definition at line 43 of file DolphinModelBuilder.h.

◆ label

QString DolphinModelBuilder::Row::label

Per-PORT label ("Bus[0]"), never the bare element label – eight Display7 rows must not share one.

Definition at line 44 of file DolphinModelBuilder.h.

◆ port

int DolphinModelBuilder::Row::port = 0

Port index on element (output port for an input row, input port for an output row).

Definition at line 41 of file DolphinModelBuilder.h.


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