#include <TraceNode.hpp>
Public Types | |
typedef std::vector< TraceNode * > | TraceNodePtrVector |
Vector of TraceNode pointers. | |
typedef std::list< TraceNode * > | TraceNodePtrList |
List of TraceNode pointers. | |
typedef std::pair< Tilewire, TraceNode * > | TilewireTraceNodePtrPair |
Pair consisting of a Tilewire and TraceNode pointer. | |
typedef TraceNodePtrVector::iterator | TraceNodePtrVectorIterator |
Iterator for vector of TraceNode pointers. | |
typedef std::pair< Arc, TraceNode * > | ArcTraceNodePtrPair |
Pair consiting of an Arc and a TraceNode pointer. | |
typedef std::vector < TilewireTraceNodePtrPair > | TilewireTraceNodePtrPairVector |
Vector of pairs of source Tilewires and TraceNode pointers. | |
typedef std::vector < ArcTraceNodePtrPair > | ArcTraceNodePtrPairVector |
Vector of paires of Arcs and TraceNode pointers. | |
Public Member Functions | |
TraceNode () | |
Null Constructor. | |
TraceNode (Tilewire inTilewire) | |
Public Constructor. | |
~TraceNode () | |
Destructor. | |
Tilewire | getTilewire () |
Get the Tilewire associated with this node. | |
boost::int32_t | getDepth () const |
Get the depth of this node from the furthest node with no parent. | |
void | setDepth (boost::int32_t inDepth) |
Set the depth of this node. | |
void | addChildren (const TraceNodePtrVector &newChildren) |
Add children to the node. | |
void | addChild (TraceNode *newChild) |
brief Add child to the node. | |
void | addParent (TraceNode *newParent) |
Add parent to the node. | |
boost::uint32_t | getNumChildren () |
Get the number of children. | |
boost::uint32_t | getNumParents () |
Get the number of parents. | |
TraceNode * | getChild (boost::uint32_t index) |
Get a child by index, returns 0 for invalid index. | |
TraceNode * | getParent (boost::uint32_t index) |
Get a parent by index, returns 0 for invalid index. | |
TraceNode * | removeChild (boost::uint32_t index) |
Remove a child by index, returns 0 for invalid index. | |
TraceNode * | removeParent (boost::uint32_t index) |
Remove a parent by index, returns 0 for invalid index. | |
Static Public Attributes | |
static boost::int32_t | sLiveNodes = 0 |
Static allocation and deallocation count. | |
Protected Attributes | |
Tilewire | mTilewire |
TraceNodePtrVector | mChildren |
TilewireVector representing this node. | |
TraceNodePtrVector | mParents |
Vector of parent pointers. | |
boost::int32_t | mDepth |
Depth from furthest parent with no parent. | |
Private Types | |
typedef architecture::Tilewire | Tilewire |
Imported type name. | |
typedef architecture::Arc | Arc |
Imported type name. | |
typedef architecture::TilewireVector | TilewireVector |
Imported type name. | |
Friends | |
class | Trace |
The TraceNode allows access to protected functions from Trace objects. |
Definition at line 44 of file TraceNode.hpp.
typedef architecture::Tilewire torc::router::TraceNode::Tilewire [private] |
typedef architecture::Arc torc::router::TraceNode::Arc [private] |
typedef architecture::TilewireVector torc::router::TraceNode::TilewireVector [private] |
typedef std::vector<TraceNode*> torc::router::TraceNode::TraceNodePtrVector |
typedef std::list<TraceNode*> torc::router::TraceNode::TraceNodePtrList |
typedef std::pair<Tilewire, TraceNode*> torc::router::TraceNode::TilewireTraceNodePtrPair |
typedef TraceNodePtrVector::iterator torc::router::TraceNode::TraceNodePtrVectorIterator |
typedef std::pair<Arc, TraceNode*> torc::router::TraceNode::ArcTraceNodePtrPair |
typedef std::vector<TilewireTraceNodePtrPair> torc::router::TraceNode::TilewireTraceNodePtrPairVector |
Vector of pairs of source Tilewires and TraceNode pointers.
Definition at line 67 of file TraceNode.hpp.
typedef std::vector<ArcTraceNodePtrPair> torc::router::TraceNode::ArcTraceNodePtrPairVector |
torc::router::TraceNode::TraceNode | ( | ) | [inline] |
torc::router::TraceNode::TraceNode | ( | Tilewire | inTilewire | ) | [inline] |
torc::router::TraceNode::~TraceNode | ( | ) | [inline] |
Tilewire torc::router::TraceNode::getTilewire | ( | void | ) | [inline] |
boost::int32_t torc::router::TraceNode::getDepth | ( | ) | const [inline] |
Get the depth of this node from the furthest node with no parent.
Definition at line 133 of file TraceNode.hpp.
void torc::router::TraceNode::setDepth | ( | boost::int32_t | inDepth | ) | [inline] |
void torc::router::TraceNode::addChildren | ( | const TraceNodePtrVector & | newChildren | ) | [inline] |
void torc::router::TraceNode::addChild | ( | TraceNode * | newChild | ) | [inline] |
void torc::router::TraceNode::addParent | ( | TraceNode * | newParent | ) | [inline] |
boost::uint32_t torc::router::TraceNode::getNumChildren | ( | ) | [inline] |
boost::uint32_t torc::router::TraceNode::getNumParents | ( | ) | [inline] |
TraceNode* torc::router::TraceNode::getChild | ( | boost::uint32_t | index | ) | [inline] |
TraceNode* torc::router::TraceNode::getParent | ( | boost::uint32_t | index | ) | [inline] |
TraceNode* torc::router::TraceNode::removeChild | ( | boost::uint32_t | index | ) | [inline] |
TraceNode* torc::router::TraceNode::removeParent | ( | boost::uint32_t | index | ) | [inline] |
Remove a parent by index, returns 0 for invalid index.
Definition at line 179 of file TraceNode.hpp.
friend class Trace [friend] |
The TraceNode allows access to protected functions from Trace objects.
Definition at line 47 of file TraceNode.hpp.
TraceNodePtrVector torc::router::TraceNode::mChildren [protected] |
TilewireVector representing this node.
Vector of child pointers.
Definition at line 77 of file TraceNode.hpp.
TraceNodePtrVector torc::router::TraceNode::mParents [protected] |
boost::int32_t torc::router::TraceNode::mDepth [protected] |
boost::int32_t torc::router::TraceNode::sLiveNodes = 0 [static] |