Otawa  0.10
otawa::ExeGraph< N >::ExeEdge Class Reference

#include <otawa/exegraph/ExeGraph.h>

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

Public Types

enum  edge_type_t { SOLID = 1, SLASHED = 2, NONE = 3 }
 
typedef enum
otawa::ExeGraph::ExeEdge::edge_type_t 
edge_type_t_t
 

Public Member Functions

 ExeEdge (N *source, N *target, edge_type_t type)
 Constructor. More...
 
edge_type_t type (void)
 
elm::String name ()
 Returns the name of the edge composed of the names of the source and target nodes separated by an arrow (e.g. More...
 
N * source (void) const
 
N * target (void) const
 

Private Attributes

edge_type_t _type
 
elm::String _name
 

Member Typedef Documentation

Member Enumeration Documentation

template<class N>
enum otawa::ExeGraph::ExeEdge::edge_type_t
Enumerator
SOLID 
SLASHED 
NONE 

Constructor & Destructor Documentation

template<class N>
otawa::ExeGraph< N >::ExeEdge::ExeEdge ( N *  source,
N *  target,
edge_type_t  type 
)
inline

Constructor.

Parameters
sourceThe source node.
targetThe target node.
typeThe type of the edge.

References otawa::ExeGraph< N >::ExeEdge::_name, otawa::ExeGraph< N >::ExeEdge::name(), otawa::cfgio::source(), otawa::cfgio::target(), and elm::StringBuffer::toString().

Member Function Documentation

template<class N>
elm::String otawa::ExeGraph< N >::ExeEdge::name ( void  )
inline

Returns the name of the edge composed of the names of the source and target nodes separated by an arrow (e.g.

"CM(I1)->IF(I3)").

Returns
Edge name.

References otawa::ExeGraph< N >::ExeEdge::_name.

Referenced by otawa::ExeGraph< N >::ExeEdge::ExeEdge().

template<class N, class E>
N* otawa::GenGraph< N, E >::GenEdge::source ( void  ) const
inlineinherited
template<class N, class E>
N* otawa::GenGraph< N, E >::GenEdge::target ( void  ) const
inlineinherited
template<class N>
ExeGraph< N >::ExeEdge::edge_type_t otawa::ExeGraph< N >::ExeEdge::type ( void  )
inline
Returns
Edge type.

References otawa::ExeGraph< N >::ExeEdge::_type.

Member Data Documentation

template<class N>
elm::String otawa::ExeGraph< N >::ExeEdge::_name
private
template<class N>
edge_type_t otawa::ExeGraph< N >::ExeEdge::_type
private

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