|
Recti 1.2.4
|
Represents a node in the global routing tree. More...
#include <global_router.hpp>
Public Member Functions | |
| RoutingNode (std::string node_id, NodeType node_type, IntPoint node_position) | |
| Constructs a new RoutingNode<IntPoint>. | |
| void | add_child (RoutingNode< IntPoint > *child_node) |
| Adds a child node to this node. | |
| void | remove_child (RoutingNode< IntPoint > *child_node) |
| Removes a child node from this node. | |
| auto | get_position () const -> const IntPoint & |
| Gets the position of the routing node. | |
| auto | manhattan_distance (const RoutingNode< IntPoint > *other_node) const -> int |
| Calculates the Manhattan distance between this node and another node. | |
Public Attributes | |
| std::string | id |
| Unique identifier for the node. | |
| NodeType | node_type |
| The type of the node. | |
| IntPoint | pt |
| The 2D integer coordinates of the node. | |
| std::vector< RoutingNode< IntPoint > * > | children |
| Pointers to child nodes in the routing tree. | |
| RoutingNode< IntPoint > * | parent = nullptr |
| Pointer to the parent node. Null for the source node. | |
| double | capacitance = 0.0 |
| Capacitance associated with the node (for future use). | |
| double | delay = 0.0 |
| Delay associated with the node (for future use). | |
| int | path_length = 0 |
| Path length from the source to this node. | |
Represents a node in the global routing tree.
A RoutingNode<IntPoint> can be a source, terminal, or Steiner point. It holds its position, type, and connections to parent and child nodes in the tree.
| IntPoint | The point type used for coordinates (e.g. Point<int, int>). |
|
inline |
Constructs a new RoutingNode<IntPoint>.
| node_id | The unique identifier for the node. |
| node_type | The type of the node. |
| node_position | The 2D integer coordinates of the node. |
|
inline |
Adds a child node to this node.
| child_node | A pointer to the child RoutingNode<IntPoint> to add. |
|
inline |
Gets the position of the routing node.
|
inline |
Calculates the Manhattan distance between this node and another node.
| other_node | A pointer to the other RoutingNode<IntPoint>. |
|
inline |
Removes a child node from this node.
| child_node | A pointer to the child RoutingNode<IntPoint> to remove. |
| double recti::RoutingNode< IntPoint >::capacitance = 0.0 |
Capacitance associated with the node (for future use).
| std::vector<RoutingNode<IntPoint>*> recti::RoutingNode< IntPoint >::children |
Pointers to child nodes in the routing tree.
| double recti::RoutingNode< IntPoint >::delay = 0.0 |
Delay associated with the node (for future use).
| std::string recti::RoutingNode< IntPoint >::id |
Unique identifier for the node.
| NodeType recti::RoutingNode< IntPoint >::node_type |
The type of the node.
| RoutingNode<IntPoint>* recti::RoutingNode< IntPoint >::parent = nullptr |
Pointer to the parent node. Null for the source node.
| int recti::RoutingNode< IntPoint >::path_length = 0 |
Path length from the source to this node.
| IntPoint recti::RoutingNode< IntPoint >::pt |
The 2D integer coordinates of the node.