#include <RouteTreeNode.hpp>


Public Member Functions | |
| RouteTreeNode () | |
| Null Constructor. | |
| RouteTreeNode (Tilewire inSource, Tilewire inSink, boost::int32_t inCost, RouteTreeNode *inParent) | |
| Public Constructor. | |
| RouteTreeNode (Arc inArc, boost::int32_t inCost, RouteTreeNode *inParent) | |
| Public Constructor. | |
| ~RouteTreeNode () | |
| Destructor. | |
| void | addChildren (const std::vector< RouteTreeNode * > &newChildren) |
| Add children to the node. | |
| void | makeParent (const Tilewire &inSource, const Tilewire &inSink) |
| Allocate a new node and make it the parent of this node. | |
| boost::uint16_t | getNumChildren () |
| Get the number of children. | |
| RouteTreeNode * | getChild (unsigned int index) |
| Get a child by index, returns 0 for invalid index. | |
| void | normalizeDepth () |
| Normalize depth of nodes. | |
Protected Member Functions | |
| void | adjustDepth (int adjustment) |
| Recursively adjust node depths. | |
Protected Attributes | |
| RouteTreeNode * | mOnlyChild |
| Pointer to a child node that is the only one. | |
| std::vector< RouteTreeNode * > * | mChildren |
| Pointer to a vector of child nodes that is dynamically allocated. | |
Private Types | |
|
typedef std::vector < RouteTreeNode * >::iterator | RouteTreeNodeIterator |
Definition at line 37 of file RouteTreeNode.hpp.
| torc::router::RouteTreeNode::RouteTreeNode | ( | ) | [inline] |
| torc::router::RouteTreeNode::RouteTreeNode | ( | Tilewire | inSource, | |
| Tilewire | inSink, | |||
| boost::int32_t | inCost, | |||
| RouteTreeNode * | inParent | |||
| ) | [inline] |
| torc::router::RouteTreeNode::RouteTreeNode | ( | Arc | inArc, | |
| boost::int32_t | inCost, | |||
| RouteTreeNode * | inParent | |||
| ) | [inline] |
| torc::router::RouteTreeNode::~RouteTreeNode | ( | ) | [inline] |
| void torc::router::RouteTreeNode::addChildren | ( | const std::vector< RouteTreeNode * > & | newChildren | ) | [inline] |
| void torc::router::RouteTreeNode::makeParent | ( | const Tilewire & | inSource, | |
| const Tilewire & | inSink | |||
| ) | [inline] |
Allocate a new node and make it the parent of this node.
Definition at line 115 of file RouteTreeNode.hpp.
| boost::uint16_t torc::router::RouteTreeNode::getNumChildren | ( | ) | [inline] |
| RouteTreeNode* torc::router::RouteTreeNode::getChild | ( | unsigned int | index | ) | [inline] |
Get a child by index, returns 0 for invalid index.
Definition at line 129 of file RouteTreeNode.hpp.
| void torc::router::RouteTreeNode::normalizeDepth | ( | ) | [inline] |
| void torc::router::RouteTreeNode::adjustDepth | ( | int | adjustment | ) | [inline, protected] |
RouteTreeNode* torc::router::RouteTreeNode::mOnlyChild [protected] |
std::vector<RouteTreeNode*>* torc::router::RouteTreeNode::mChildren [protected] |
Pointer to a vector of child nodes that is dynamically allocated.
Definition at line 45 of file RouteTreeNode.hpp.
1.5.6