Public Member Functions | Static Public Member Functions | Private Attributes

OA::Loop::LoopTreeNode Class Reference

#include <LoopResults.hpp>

Collaboration diagram for OA::Loop::LoopTreeNode:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LoopTreeNode (OA_ptr< LoopAbstraction > loop)
OA_ptr< LoopAbstractiongetLoopAbstraction ()
OA_ptr< LoopTreeNodeaddChild (OA_ptr< LoopAbstraction > loop)
int getNumChildren ()
OA_ptr< LoopTreeNodegetChild (int num)
void print (IRHandlesIRInterface &ir, int indentation=0)

Static Public Member Functions

static OA_ptr< LoopTreeNodefind (OA_ptr< LoopAbstraction > loop, OA_ptr< LoopTreeNode > node)

Private Attributes

OA_ptr< LoopAbstractionmLoop
OA_ptr< vector< OA_ptr
< LoopTreeNode > > > 
mChildren

Detailed Description

Class to represent loop abstractions in a tree structure

Definition at line 27 of file LoopResults.hpp.


Constructor & Destructor Documentation

OA::Loop::LoopTreeNode::LoopTreeNode ( OA_ptr< LoopAbstraction loop  )  [inline]

Definition at line 29 of file LoopResults.hpp.


Member Function Documentation

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:


Member Data Documentation

Definition at line 68 of file LoopResults.hpp.

Referenced by print().

Definition at line 67 of file LoopResults.hpp.

Referenced by print().


The documentation for this class was generated from the following files: