![]() |
HAL
|
The Node class object represents a module or a gate. More...
#include <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::NodeBox::id(), hal::WaitToBeSeatedEntry::isModule(), hal::GraphContext::isScheduledRemove(), hal::GridPlacement::setGatePosition(), hal::GridPlacement::setModulePosition(), hal::CommentEntry::toJson(), and hal::ActionAddItemsToObject::writeToXml().
|
inline |
isGate test whether node is a gate
Definition at line 89 of file gui_def.h.
References Gate.
Referenced by hal::NodeBoxes::addBox(), hal::CommentEntry::dump(), hal::GridPlacement::setGatePosition(), and hal::GridPlacement::setModulePosition().
|
inline |
isModule test wheter node is a module
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
Definition at line 83 of file gui_def.h.
References None.
Referenced by hal::NetlistRelay::addToModuleDialog(), hal::ActionMoveNode::exec(), hal::DragController::finalGridPlacement(), 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::CommentEntry::toJson(), hal::NodeBox::type(), and hal::ActionAddItemsToObject::writeToXml().