#include <tgbaalgos/rundotdec.hh>
Inheritance diagram for spot::tgba_run_dotty_decorator:


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) |
| 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_decorator * | instance () |
| 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_num > | step_set |
| typedef std::map< const state *, std::pair< step_set, step_set >, spot::state_ptr_less_than > | step_map |
Private Attributes | |
| const tgba_run * | run_ |
| step_map | map_ |
An instance of this class can be passed to spot::dotty_reachable.
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] |
typedef std::map<const state*, std::pair<step_set, step_set>, spot::state_ptr_less_than> spot::tgba_run_dotty_decorator::step_map [private] |
| spot::tgba_run_dotty_decorator::tgba_run_dotty_decorator | ( | const tgba_run * | run | ) |
| virtual spot::tgba_run_dotty_decorator::~tgba_run_dotty_decorator | ( | ) | [virtual] |
| 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 | |||
| ) | [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.
| a | the automaton being drawn | |
| s | the state being drawn (owned by the caller) | |
| n | a unique number for this state | |
| si | an iterator over the successors of this state (owned by the caller, but can be freely iterated) | |
| label | the computed name of this state |
Reimplemented from spot::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.
| a | the automaton being drawn | |
| in_s | the source state of the transition being drawn (owned by the caller) | |
| in | the unique number associated to in_s | |
| out_s | the destination state of the transition being drawn (owned by the caller) | |
| out | the unique number associated to out_s | |
| si | an iterator over the successors of in_s, pointing to the current transition (owned by the caller and cannot be iterated) | |
| label | the computed name of this state |
Reimplemented from spot::dotty_decorator.
| static dotty_decorator* spot::dotty_decorator::instance | ( | ) | [static, inherited] |
Get the unique instance of the default dotty_decorator.
const tgba_run* spot::tgba_run_dotty_decorator::run_ [private] |
step_map spot::tgba_run_dotty_decorator::map_ [private] |
1.5.2