Otawa  0.10
otawa::graph::Edge Class Reference

This class represents a directed edge between two nodes. More...

#include <otawa/graph/Graph.h>

Inheritance diagram for otawa::graph::Edge:
otawa::GenGraph< N, E >::GenEdge otawa::ccg::Edge otawa::ExeGraph< N >::ExeEdge otawa::ParExeEdge otawa::pfg::Edge

Public Member Functions

 Edge (Node *source, Node *target)
 Build an edge between two nodes. More...
 
Nodesource (void) const
 Get the source node. More...
 
Nodetarget (void) const
 Get the target node. More...
 

Protected Member Functions

virtual ~Edge (void)
 

Private Attributes

Nodesrc
 
Nodetgt
 
Edgesedges
 
Edgetedges
 

Friends

class Node
 
class Graph
 
class Node::Successor
 
class Node::Predecessor
 

Detailed Description

This class represents a directed edge between two nodes.

Constructor & Destructor Documentation

otawa::graph::Edge::~Edge ( void  )
protectedvirtual

Reimplemented in otawa::ccg::Edge.

otawa::graph::Edge::Edge ( Node source,
Node target 
)
inline

Build an edge between two nodes.

Warning
Both nodes must be contained in the same graph.
Parameters
sourceSource node.
targetTarget node.

References otawa::graph::Node::graph(), otawa::graph::Node::ins, otawa::graph::Node::outs, sedges, src, tedges, and tgt.

Member Function Documentation

Node * otawa::graph::Edge::source ( void  ) const
inline

Get the source node.

Returns
Source node.

References src.

Referenced by otawa::GenGraph< N, E >::GenEdge::source(), and otawa::graph::Graph::sourceOf().

Node * otawa::graph::Edge::target ( void  ) const
inline

Get the target node.

Returns
Target node.

References tgt.

Referenced by otawa::graph::Graph::sinkOf(), and otawa::GenGraph< N, E >::GenEdge::target().

Friends And Related Function Documentation

friend class Graph
friend
friend class Node
friend
friend class Node::Predecessor
friend
friend class Node::Successor
friend

Member Data Documentation

Edge* otawa::graph::Edge::sedges
private
Node* otawa::graph::Edge::src
private
Edge * otawa::graph::Edge::tedges
private
Node * otawa::graph::Edge::tgt
private

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