28 #include <QAbstractTableModel>
31 #include <QSharedPointer>
180 QString behaviorToString(std::pair<hal::AsyncSetResetBehavior, hal::AsyncSetResetBehavior> behav);
216 QString behaviorToString(std::pair<hal::AsyncSetResetBehavior, hal::AsyncSetResetBehavior> behav);
236 CPBehaviorEntry(
u32 gateId, std::pair<hal::AsyncSetResetBehavior, hal::AsyncSetResetBehavior> cPBehavior);
244 std::pair<hal::AsyncSetResetBehavior, hal::AsyncSetResetBehavior>
getCPBehavior()
const;
250 QString cPBehaviourToString (std::pair<hal::AsyncSetResetBehavior, hal::AsyncSetResetBehavior> cPBehaviour);
251 std::pair<hal::AsyncSetResetBehavior, hal::AsyncSetResetBehavior> mCPBehavior;
A BooleanFunctionTableEntry that represents a boolean function.
QString getPythonCode() override
BooleanFunction getBooleanFunction() const
BooleanFunctionEntry(u32 gateId, QString functionName, BooleanFunction bf)
An entry in the boolean function table model.
@ BooleanFunctionStandard
EntryType getEntryType() const
QString getEntryValueString() const
BooleanFunctionTableEntry(u32 gateId)
virtual QString getPythonCode()
QString getEntryIdentifier() const
A model that holds BooleanFunctions and clear-preset behaviors.
QSharedPointer< BooleanFunctionTableEntry > getEntryAtRow(int row) const
BooleanFunctionTableModel(QObject *parent=nullptr)
void setEntries(QVector< QSharedPointer< BooleanFunctionTableEntry >> entries)
bool setData(const QModelIndex &index, const QVariant &value, int role) override
QVariant data(const QModelIndex &index, int role) const override
int rowCount(const QModelIndex &parent=QModelIndex()) const override
QVariant headerData(int section, Qt::Orientation orientation, int role) const override
int columnCount(const QModelIndex &parent=QModelIndex()) const override
A BooleanFunctionTableEntry that represents a clear-preset behavior.
std::pair< hal::AsyncSetResetBehavior, hal::AsyncSetResetBehavior > getCPBehavior() const
CPBehaviorEntry(u32 gateId, std::pair< hal::AsyncSetResetBehavior, hal::AsyncSetResetBehavior > cPBehavior)
A entry type that represents properties (functions and behaviors) of an FFCompont.
QString getPythonCode() override
FFComponentEntry(u32 gateId, FFCompFunc type, BooleanFunction func)
FFComponentEntry(u32 gateId, std::pair< hal::AsyncSetResetBehavior, hal::AsyncSetResetBehavior > behav)
An entry type that represents properties (functions or behaviors) of a LatchComponent.
LatchComponentEntry(u32 gateId, std::pair< hal::AsyncSetResetBehavior, hal::AsyncSetResetBehavior > behav)
QString getPythonCode() override
LatchComponentEntry(u32 gateId, LatchCompFunc type, BooleanFunction func)
Utility class that represents a state of the StateComponent.
StateCompType getStateCompType()
StateComponentEntry(u32 gateId, StateCompType type, QString stateVal)
QString getPythonCode() override
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
QObject * parent() const const