#include <LoopResults.hpp>

Public Member Functions | |
| LoopTreeNode (OA_ptr< LoopAbstraction > loop) | |
| OA_ptr< LoopAbstraction > | getLoopAbstraction () |
| OA_ptr< LoopTreeNode > | addChild (OA_ptr< LoopAbstraction > loop) |
| int | getNumChildren () |
| OA_ptr< LoopTreeNode > | getChild (int num) |
| void | print (IRHandlesIRInterface &ir, int indentation=0) |
Static Public Member Functions | |
| static OA_ptr< LoopTreeNode > | find (OA_ptr< LoopAbstraction > loop, OA_ptr< LoopTreeNode > node) |
Private Attributes | |
| OA_ptr< LoopAbstraction > | mLoop |
| OA_ptr< vector< OA_ptr < LoopTreeNode > > > | mChildren |
Class to represent loop abstractions in a tree structure
Definition at line 27 of file LoopResults.hpp.
| OA::Loop::LoopTreeNode::LoopTreeNode | ( | OA_ptr< LoopAbstraction > | loop | ) | [inline] |
Definition at line 29 of file LoopResults.hpp.
| OA_ptr<LoopTreeNode> OA::Loop::LoopTreeNode::addChild | ( | OA_ptr< LoopAbstraction > | loop | ) | [inline] |
Add a child node to the tree. Return a pointer to the node
Definition at line 39 of file LoopResults.hpp.
| OA_ptr< LoopTreeNode > OA::Loop::LoopTreeNode::find | ( | OA_ptr< LoopAbstraction > | loop, | |
| OA_ptr< LoopTreeNode > | node | |||
| ) | [static] |
Find the node for a specified loop in this subtree. This function is static and is passed the node to search because otherwise the find function would set an OA_ptr to this upon finding the corresponding node, this is an error.
Definition at line 17 of file LoopResults.cpp.
References OA::OA_ptr< T >::ptrEqual().
Referenced by OA::Loop::LoopResults::addLoop().

| OA_ptr<LoopTreeNode> OA::Loop::LoopTreeNode::getChild | ( | int | num | ) | [inline] |
Definition at line 58 of file LoopResults.hpp.
| OA_ptr<LoopAbstraction> OA::Loop::LoopTreeNode::getLoopAbstraction | ( | ) | [inline] |
Get the loop abstraction represented by this node
Definition at line 36 of file LoopResults.hpp.
| int OA::Loop::LoopTreeNode::getNumChildren | ( | ) | [inline] |
Return the number of children this node has
Definition at line 47 of file LoopResults.hpp.
| void OA::Loop::LoopTreeNode::print | ( | IRHandlesIRInterface & | ir, | |
| int | indentation = 0 | |||
| ) |
Definition at line 43 of file LoopResults.cpp.
References mChildren, mLoop, and OA::IRHandlesIRInterface::toString().

OA_ptr<vector<OA_ptr<LoopTreeNode> > > OA::Loop::LoopTreeNode::mChildren [private] |
Definition at line 68 of file LoopResults.hpp.
Referenced by print().
OA_ptr<LoopAbstraction> OA::Loop::LoopTreeNode::mLoop [private] |
Definition at line 67 of file LoopResults.hpp.
Referenced by print().
1.7.1