Otawa  0.10
otawa::display::Decorator< G > Class Template Reference

A decorator is a concept that provides static functions used to display a graph. More...

#include </home/casse/otawa/otawa/src/odisplay/display.h>

Static Public Member Functions

static void decorate (const G &graph, Output &caption, TextStyle &text, FillStyle &fill)
 This method is called to decorate the graph. More...
 
static void decorate (const G &graph, const typename G::Vertex vertex, Output &content, ShapeStyle &style)
 This method is called for each vertex of the graph to get its decoration. More...
 
static void decorate (const G &graph, const typename G::Edge edge, Output &label, TextStyle &text, LineStyle &line)
 This method is called for each edge. More...
 

Detailed Description

template<class G>
class otawa::display::Decorator< G >

A decorator is a concept that provides static functions used to display a graph.

Parameters
GType of the graph.

Member Function Documentation

template<class G >
static void otawa::display::Decorator< G >::decorate ( const G &  graph,
Output caption,
TextStyle text,
FillStyle fill 
)
static

This method is called to decorate the graph.

Parameters
graphCurrent graph.
captionOutput text here to set the graph caption.
fillFill style of the back of the graph.
textText style of the graph caption.
template<class G >
static void otawa::display::Decorator< G >::decorate ( const G &  graph,
const typename G::Vertex  vertex,
Output content,
ShapeStyle style 
)
static

This method is called for each vertex of the graph to get its decoration.

Parameters
vertexCurrent vertex.
contentText content of the node (output it here). To have a title and a body, output the title, "---\n", then the body.
shapeShape style of the vertex.
template<class G >
static void otawa::display::Decorator< G >::decorate ( const G &  graph,
const typename G::Edge  edge,
Output label,
TextStyle text,
LineStyle line 
)
static

This method is called for each edge.

Parameters
labelLabel of the edge (output text here).
textText style of the edge label.
lineLine style of the edge.

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