|
HAL
|
An entry in the boolean function table model. More...
#include <boolean_function_table_model.h>


Public Types | |
| enum class | EntryType { BooleanFunctionStandard , CPBehavior , StateComp , FFComp , LatchComp } |
Public Member Functions | |
| BooleanFunctionTableEntry (u32 gateId) | |
| QString | getEntryIdentifier () const |
| QString | getEntryValueString () const |
| u32 | getGateId () const |
| EntryType | getEntryType () const |
| virtual QString | getPythonCode () |
Protected Attributes | |
| QString | mLeft |
| QString | mRight |
| u32 | mGateId |
| EntryType | mType |
An entry in the boolean function table model.
The boolean function table consists of boolean functions and clear-preset behaviors. Therefore the subclasses BooleanFunctionEntry and CPBehaviorEntry are used. However both entry types have an entry left and right so that the table looks like "left=right". These value can be accessed via getEntryIdentifier (left) and getEntryValueString (right).
Definition at line 50 of file boolean_function_table_model.h.
|
strong |
| Enumerator | |
|---|---|
| BooleanFunctionStandard | |
| CPBehavior | |
| StateComp | |
| FFComp | |
| LatchComp | |
Definition at line 54 of file boolean_function_table_model.h.
| hal::BooleanFunctionTableEntry::BooleanFunctionTableEntry | ( | u32 | gateId | ) |
Constructor.
| gateId | - The id of the gate the boolean function/clear-preset behavior belongs to. If it belongs to no gate, an invalid id can be passed (i.e. gateId=0). |
Definition at line 14 of file boolean_function_table_model.cpp.
References BooleanFunctionStandard, mGateId, and mType.
| QString hal::BooleanFunctionTableEntry::getEntryIdentifier | ( | ) | const |
Gets the left side of the equation.
Definition at line 20 of file boolean_function_table_model.cpp.
References mLeft.
| BooleanFunctionTableEntry::EntryType hal::BooleanFunctionTableEntry::getEntryType | ( | ) | const |
Returns the entry's type.
Definition at line 34 of file boolean_function_table_model.cpp.
References mType.
| QString hal::BooleanFunctionTableEntry::getEntryValueString | ( | ) | const |
Gets the right side of the equation.
Definition at line 25 of file boolean_function_table_model.cpp.
References mRight.
| u32 hal::BooleanFunctionTableEntry::getGateId | ( | ) | const |
Returns the gate id the represented entry is associated with. The gate id may be invalid.
Definition at line 30 of file boolean_function_table_model.cpp.
References mGateId.
|
inlinevirtual |
Returns the python code necessary to access the entry's value through a gate. This function should return an empty string if no python code is available. (E.g. when a "random" boolean function is displayed that belongs to no gate or component)
Reimplemented in hal::StateComponentEntry, hal::LatchComponentEntry, hal::FFComponentEntry, and hal::BooleanFunctionEntry.
Definition at line 98 of file boolean_function_table_model.h.
|
protected |
Definition at line 103 of file boolean_function_table_model.h.
Referenced by BooleanFunctionTableEntry(), getGateId(), hal::BooleanFunctionEntry::getPythonCode(), hal::FFComponentEntry::getPythonCode(), hal::LatchComponentEntry::getPythonCode(), and hal::StateComponentEntry::getPythonCode().
|
protected |
Definition at line 101 of file boolean_function_table_model.h.
Referenced by hal::BooleanFunctionEntry::BooleanFunctionEntry(), hal::CPBehaviorEntry::CPBehaviorEntry(), hal::FFComponentEntry::FFComponentEntry(), getEntryIdentifier(), hal::BooleanFunctionEntry::getPythonCode(), hal::LatchComponentEntry::LatchComponentEntry(), and hal::StateComponentEntry::StateComponentEntry().
|
protected |
Definition at line 102 of file boolean_function_table_model.h.
Referenced by hal::BooleanFunctionEntry::BooleanFunctionEntry(), hal::CPBehaviorEntry::CPBehaviorEntry(), hal::FFComponentEntry::FFComponentEntry(), getEntryValueString(), hal::LatchComponentEntry::LatchComponentEntry(), and hal::StateComponentEntry::StateComponentEntry().
|
protected |
Definition at line 104 of file boolean_function_table_model.h.
Referenced by hal::BooleanFunctionEntry::BooleanFunctionEntry(), BooleanFunctionTableEntry(), hal::CPBehaviorEntry::CPBehaviorEntry(), hal::FFComponentEntry::FFComponentEntry(), getEntryType(), hal::LatchComponentEntry::LatchComponentEntry(), and hal::StateComponentEntry::StateComponentEntry().