|
HAL
v4.5.0-83-g30c8f0afc
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
|


Public Types | |
| enum | Type { None , Pin , Group } |
Public Member Functions | |
| GatePinsTreeItem (const std::string &pinName, PinDirection pinDirection, PinType pinTypee, QString netName, int inx) | |
| GatePinsTreeItem () | |
| QVariant | getData (int column) const override |
| void | setData (QList< QVariant > data) override |
| void | setDataAtColumn (int column, QVariant &data) override |
| void | appendData (QVariant data) override |
| int | getColumnCount () const override |
| void | setType (Type tp) |
| Type | type () const |
| std::string | pinName () const |
| PinDirection | direction () const |
| void | setNetIds (const QList< u32 > &nids) |
| QList< u32 > | netIds () const |
Public Member Functions inherited from hal::BaseTreeItem | |
| BaseTreeItem () | |
| BaseTreeItem (QList< QVariant > columnData) | |
| virtual | ~BaseTreeItem () |
| virtual BaseTreeItem * | getParent () const |
| virtual void | setParent (BaseTreeItem *parent) |
| virtual BaseTreeItem * | getChild (int row) const |
| virtual QList< BaseTreeItem * > | getChildren () const |
| virtual void | appendChild (BaseTreeItem *child) |
| virtual void | insertChild (int index, BaseTreeItem *child) |
| virtual BaseTreeItem * | removeChildAtPos (int row) |
| virtual bool | removeChild (BaseTreeItem *child) |
| virtual int | getChildCount () const |
| virtual int | getRowForChild (const BaseTreeItem *child) const |
| virtual int | getOwnRow () |
Additional Inherited Members | |
Protected Attributes inherited from hal::BaseTreeItem | |
| BaseTreeItem * | mParent |
| QList< BaseTreeItem * > | mChildren |
One entry of the gate pin tree, i.e., a pin or a pin group of the selected gate.
Definition at line 44 of file gate_pins_tree_model.h.
| Enumerator | |
|---|---|
| None | |
| Pin | |
| Group | |
Definition at line 47 of file gate_pins_tree_model.h.
| hal::GatePinsTreeItem::GatePinsTreeItem | ( | const std::string & | pinName, |
| PinDirection | pinDirection, | ||
| PinType | pinTypee, | ||
| QString | netName, | ||
| int | inx | ||
| ) |
Definition at line 14 of file gate_pins_tree_model.cpp.
| hal::GatePinsTreeItem::GatePinsTreeItem | ( | ) |
Definition at line 18 of file gate_pins_tree_model.cpp.
|
overridevirtual |
Appends a new column to the item.
| data | - The data of the new column. |
Implements hal::BaseTreeItem.
Definition at line 75 of file gate_pins_tree_model.cpp.
|
inline |
Definition at line 75 of file gate_pins_tree_model.h.
Referenced by hal::GatePinTree::handleContextMenuRequested().
|
overridevirtual |
Get the number of currently stored column data.
Implements hal::BaseTreeItem.
Definition at line 77 of file gate_pins_tree_model.cpp.
|
overridevirtual |
Get the data of a specific column (most in the form of a string).
| column | - The requested column. |
Implements hal::BaseTreeItem.
Definition at line 21 of file gate_pins_tree_model.cpp.
References hal::enum_to_string(), QString::fromStdString(), hal::BaseTreeItem::getChildCount(), Group, and index.
Referenced by hal::GatePinTree::handleContextMenuRequested(), and hal::GatePinTree::mouseDoubleClickEvent().
Get the connected nets for a given treeitem (represents a pin). If the item is grouping type or the pin has no connected net, an empty list is returned. In case of an inout pin, even multiple connected nets are possible.
Definition at line 85 of file gate_pins_tree_model.h.
Referenced by hal::GatePinTree::handleContextMenuRequested(), and hal::GatePinTree::mouseDoubleClickEvent().
|
inline |
Definition at line 74 of file gate_pins_tree_model.h.
Referenced by hal::GatePinTree::handleContextMenuRequested().
Sets the data for all columns.
| data | - Each entry in the list represents one column. |
Implements hal::BaseTreeItem.
Definition at line 41 of file gate_pins_tree_model.cpp.
References hal::data.
Referenced by hal::GatePinsTreeModel::setGate().
|
overridevirtual |
Sets the data for a specified column. The index must be within already existing boundaries (for example, add dummy data beforehand).
| column | - The column to set the new data. |
| data | - The new column data. |
Implements hal::BaseTreeItem.
Definition at line 51 of file gate_pins_tree_model.cpp.
References hal::data.
Definition at line 76 of file gate_pins_tree_model.h.
Referenced by hal::GatePinsTreeModel::setGate().
|
inline |
Definition at line 66 of file gate_pins_tree_model.h.
Referenced by hal::GatePinsTreeModel::setGate().
|
inline |
Get the type (enum) of a given item.
Definition at line 73 of file gate_pins_tree_model.h.
Referenced by hal::GatePinTree::handleContextMenuRequested(), and hal::GatePinTree::mouseDoubleClickEvent().