cz::muni::stanse::codestructures::CFGBranchNode Class Reference

Inheritance diagram for cz::muni::stanse::codestructures::CFGBranchNode:
[legend]
Collaboration diagram for cz::muni::stanse::codestructures::CFGBranchNode:
[legend]

List of all members.

Public Member Functions

 CFGBranchNode (final Element e)
 CFGBranchNode (final Element e, final String c)
Element getEdgeLabel (int edge)
void addEdge (CFGNode to, Element label)
void addEdge (CFGNode to)
void addOptEdge (CFGNode to)
void drop ()
String toString ()


Detailed Description

Specific CFG node for holding info about if/switch and other branching

Constructor & Destructor Documentation

cz::muni::stanse::codestructures::CFGBranchNode::CFGBranchNode ( final Element  e  )  [inline]

Creates an instance of the CFGBranchNode with assigned element

Parameters:
e element to assign to this node

cz::muni::stanse::codestructures::CFGBranchNode::CFGBranchNode ( final Element  e,
final String  c 
) [inline]

Creates an instance of the CFGBranchNode with assigned element

Parameters:
e element to assign to this node


Member Function Documentation

Element cz::muni::stanse::codestructures::CFGBranchNode::getEdgeLabel ( int  edge  )  [inline]

Get label of a branch edge indexed from 0

Parameters:
edge edge index
Returns:
element which is the label

void cz::muni::stanse::codestructures::CFGBranchNode::addEdge ( CFGNode  to,
Element  label 
) [inline]

Adds a labeled edge to the CFG from this node

Parameters:
to which node to add the edge to
label label for this edge

void cz::muni::stanse::codestructures::CFGBranchNode::addEdge ( CFGNode  to  )  [inline]

Adds an edge between two nodes

Parameters:
to which node to add the edge to

Reimplemented from cz::muni::stanse::codestructures::CFGNode.

void cz::muni::stanse::codestructures::CFGBranchNode::addOptEdge ( CFGNode  to  )  [inline]

Adds an optimized edge between two nodes (is in code, not in CFG)

Parameters:
to which node to add the edge to

Reimplemented from cz::muni::stanse::codestructures::CFGNode.

void cz::muni::stanse::codestructures::CFGBranchNode::drop (  )  [inline]

String cz::muni::stanse::codestructures::CFGBranchNode::toString (  )  [inline]


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

Generated on Thu Jan 13 16:24:08 2011 for Stanse by  doxygen 1.5.6