spot  0.9.1
Public Member Functions | Static Public Member Functions | Private Types | Private Attributes
spot::tgba_run_dotty_decorator Class Reference

Highlight a spot::tgba_run on a spot::tgba.An instance of this class can be passed to spot::dotty_reachable. More...

#include <tgbaalgos/rundotdec.hh>

Inheritance diagram for spot::tgba_run_dotty_decorator:
Inheritance graph
[legend]
Collaboration diagram for spot::tgba_run_dotty_decorator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 tgba_run_dotty_decorator (const tgba_run *run)
virtual ~tgba_run_dotty_decorator ()
virtual std::string state_decl (const tgba *a, const state *s, int n, tgba_succ_iterator *si, const std::string &label, bool accepting)
 Compute the style of a state.
virtual std::string link_decl (const tgba *a, const state *in_s, int in, const state *out_s, int out, const tgba_succ_iterator *si, const std::string &label)
 Compute the style of a link.

Static Public Member Functions

static dotty_decoratorinstance ()
 Get the unique instance of the default dotty_decorator.

Private Types

typedef std::pair
< tgba_run::steps::const_iterator,
int > 
step_num
typedef std::list< step_numstep_set
typedef std::map< const state
*, std::pair< step_set,
step_set >
, spot::state_ptr_less_than
step_map

Private Attributes

const tgba_runrun_
step_map map_

Detailed Description

Highlight a spot::tgba_run on a spot::tgba.

An instance of this class can be passed to spot::dotty_reachable.


Member Typedef Documentation

typedef std::pair<tgba_run::steps::const_iterator, int> spot::tgba_run_dotty_decorator::step_num [private]
typedef std::list<step_num> spot::tgba_run_dotty_decorator::step_set [private]

Constructor & Destructor Documentation


Member Function Documentation

static dotty_decorator* spot::dotty_decorator::instance ( ) [static, inherited]

Get the unique instance of the default dotty_decorator.

virtual std::string spot::tgba_run_dotty_decorator::link_decl ( const tgba a,
const state in_s,
int  in,
const state out_s,
int  out,
const tgba_succ_iterator si,
const std::string &  label 
) [virtual]

Compute the style of a link.

This function should output a string of the form [label="foo", style=bar, ...]. The default implementation will simply output [label="LABEL"] with LABEL replaced by the value of label.

Parameters:
athe automaton being drawn
in_sthe source state of the transition being drawn (owned by the caller)
inthe unique number associated to in_s
out_sthe destination state of the transition being drawn (owned by the caller)
outthe unique number associated to out_s
sian iterator over the successors of in_s, pointing to the current transition (owned by the caller and cannot be iterated)
labelthe computed name of this state

Reimplemented from spot::dotty_decorator.

virtual std::string spot::tgba_run_dotty_decorator::state_decl ( const tgba a,
const state s,
int  n,
tgba_succ_iterator si,
const std::string &  label,
bool  accepting 
) [virtual]

Compute the style of a state.

This function should output a string of the form [label="foo", style=bar, ...]. The default implementation will simply output [label="LABEL"] with LABEL replaced by the value of label.

Parameters:
athe automaton being drawn
sthe state being drawn (owned by the caller)
na unique number for this state
sian iterator over the successors of this state (owned by the caller, but can be freely iterated)
labelthe computed name of this state
acceptingwhether the state is accepting (it makes sense only for state-acceptance automata)

Reimplemented from spot::dotty_decorator.


Member Data Documentation


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

Please comment this page and report errors about it on the RefDocComments page.
Generated on Wed May 23 2012 12:06:47 for spot by doxygen 1.7.6.1