* tgbaalgos/reachiter.hh, tgbaalgos/reachiter.cc
(tgba_reachable_iterator::process_link): Take the state* as arguments in addition to the state numbers. * src/tgba/tgbaexplicit.hh, src/tgba/tgbaexplicit.cc (tgba_explicit::copy_acceptance_conditions_of): New method. * tgbaalgos/dupexp.cc (dupexp_iter::dupexp_iter): Call copy_acceptance_conditions_of. (dupexp_iter::process_state, duplex_iter::declare_state, dupexp_iter::name_): Remove. (dupexp_iter::process_link): Adjust prototype, and format the state here rather than in process_state. * tgbaalgos/stats.cc, tgbaalgos/dotty.cc: Adjust prototype of process_link.
This commit is contained in:
parent
b6f3faba38
commit
42b05c7a05
8 changed files with 62 additions and 47 deletions
|
|
@ -63,16 +63,24 @@ namespace spot
|
|||
/// Called by run() to process a state.
|
||||
///
|
||||
/// \param s The current state.
|
||||
/// \param n An unique number assigned to \a s.
|
||||
/// \param n A unique number assigned to \a s.
|
||||
/// \param si The spot::tgba_succ_iterator for \a s.
|
||||
virtual void process_state(const state* s, int n, tgba_succ_iterator* si);
|
||||
/// Called by run() to process a transition.
|
||||
///
|
||||
/// \param in_s The source state
|
||||
/// \param in The source state number.
|
||||
/// \param out_s The destination state
|
||||
/// \param out The destination state number.
|
||||
/// \param si The spot::tgba_succ_iterator positionned on the current
|
||||
/// transition.
|
||||
virtual void process_link(int in, int out, const tgba_succ_iterator* si);
|
||||
///
|
||||
/// The in_s and out_s states are owned by the
|
||||
/// spot::tgba_reachable_iterator instance and destroyed when the
|
||||
/// instance is destroyed.
|
||||
virtual void process_link(const state* in_s, int in,
|
||||
const state* out_s, int out,
|
||||
const tgba_succ_iterator* si);
|
||||
|
||||
protected:
|
||||
const tgba* automata_; ///< The spot::tgba to explore.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue