|
HAL
v4.5.0-83-g30c8f0afc
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
|
The Node class object represents a module or a gate. More...
#include </home/runner/work/hal/hal/plugins/gui/include/gui/gui_def.h>

Public Types | |
| enum | NodeType { None , Module , Gate } |
Public Member Functions | |
| Node (u32 i=0, NodeType t=None) | |
| NodeType | type () const |
| type getter for type information More... | |
| u32 | id () const |
| id getter for ID information More... | |
| bool | isNull () const |
| isNull test for null-Node object typically returned from functions More... | |
| bool | isGate () const |
| isGate test whether node is a gate More... | |
| bool | isModule () const |
| isModule test wheter node is a module More... | |
| bool | operator< (const Node &rhs) const |
| operator < to provide an ordering scheme for maps and ordered lists More... | |
| bool | operator== (const Node &rhs) const |
| operator == to test whether two nodes are equal More... | |
| bool | operator!= (const Node &rhs) const |
| operator != to test whether two nodes are not equal More... | |
The Node class object represents a module or a gate.
The Node class has two private members, the Id and the type which is of type Module or Gate. Node objects can be compared, used as Hash keys or returned by functions. For the latter case there is a null-Node object (type==None) to be returned if the function failed to find an appropriate node.
| enum hal::Node::NodeType |
|
inline |
id getter for ID information
Definition at line 77 of file gui_def.h.
Referenced by hal::StandardGraphLayouter::add(), hal::NetlistRelay::addToModuleDialog(), hal::CommentEntry::dump(), hal::CoordinateFromData::fromNode(), hal::WaitToBeSeatedEntry::getId(), hal::GraphGraphicsView::handleShortestPathToGrouping(), hal::NodeBox::id(), hal::WaitToBeSeatedEntry::isModule(), hal::GraphContext::isScheduledRemove(), hal::qHash(), hal::GridPlacement::setGatePosition(), hal::GridPlacement::setModulePosition(), hal::CommentEntry::toJson(), and hal::ActionAddItemsToObject::writeToXml().
|
inline |
isGate test whether node is a gate
true if node is a gate, false otherwise. Definition at line 89 of file gui_def.h.
References Gate.
Referenced by hal::NodeBoxes::addBox(), hal::CommentEntry::dump(), hal::GraphGraphicsView::handleShortestPathToGrouping(), hal::GridPlacement::setGatePosition(), and hal::GridPlacement::setModulePosition().
|
inline |
isModule test wheter node is a module
true if node is a module, false otherwise. Definition at line 95 of file gui_def.h.
References Module.
Referenced by hal::NodeBoxes::addBox(), hal::NetlistRelay::addToModuleDialog(), and hal::WaitToBeSeatedEntry::isModule().
|
inline |
isNull test for null-Node object typically returned from functions
true if node is null, false otherwise. Definition at line 83 of file gui_def.h.
References None.
Referenced by hal::NetlistRelay::addToModuleDialog(), hal::ActionMoveNode::exec(), hal::DragController::finalGridPlacement(), hal::GraphGraphicsView::handleShortestPathToGrouping(), hal::CommentEntry::isInvalid(), hal::GraphLayouter::positonForNode(), hal::GridPlacement::setGatePosition(), and hal::GridPlacement::setModulePosition().
|
inline |
|
inline |
|
inline |
|
inline |
type getter for type information
Definition at line 71 of file gui_def.h.
Referenced by hal::StandardGraphLayouter::add(), hal::ActionMoveNode::exec(), hal::CoordinateFromData::fromNode(), hal::GraphContext::isScheduledRemove(), hal::qHash(), hal::CommentEntry::toJson(), hal::NodeBox::type(), and hal::ActionAddItemsToObject::writeToXml().