Otawa  0.10
otawa::display::CFGAdapter Class Reference

This adapter implements the otawa::concept::DiGraphWithNodeMap and allows to use apply the GenDrawer to a CFG. More...

#include <otawa/display/CFGAdapter.h>

Classes

class  Edge
 
class  Iterator
 
class  Successor
 
class  Vertex
 
class  VertexMap
 

Public Member Functions

 CFGAdapter (CFG *_cfg, WorkSpace *_ws=0)
 Build the adapter. More...
 
int count (void) const
 

Public Attributes

CFGcfg
 
WorkSpacews
 

Detailed Description

This adapter implements the otawa::concept::DiGraphWithNodeMap and allows to use apply the GenDrawer to a CFG.

To use this adapter, you have to pass it a CFG, to define a Decorator to give a representation of nodes and edges and to launch the drawing as below :

CFG *my_cfg;
CFGAdapter adapter(my_cfg);
GenDrawer<CFGAdapter, MyDecorator> drawer(adapter);
drawer.draw();

Constructor & Destructor Documentation

otawa::display::CFGAdapter::CFGAdapter ( CFG _cfg,
WorkSpace _ws = 0 
)
inline

Build the adapter.

Parameters
_cfgCFG to do adapt to.
_wsContainer workspace (optional).

Member Function Documentation

int otawa::display::CFGAdapter::count ( void  ) const
inline

References cfg, and otawa::CFG::countBB().

Member Data Documentation

CFG* otawa::display::CFGAdapter::cfg

Referenced by count().

WorkSpace* otawa::display::CFGAdapter::ws

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