tgbadigraph: delegate useful graph methods
* src/tgba/tgbagraph.hh (new_state, new_states, new_transitions, out, trans_data): Delegate these useful graph methods so we do not have to call get_graph(). * src/graphtest/tgbagraph.cc, src/tgbaalgos/dtbasat.cc, src/tgbaalgos/dtgbasat.cc, src/tgbaalgos/dupexp.cc, src/tgbaalgos/emptiness.cc, src/tgbaalgos/lbtt.cc, src/tgbaalgos/powerset.cc, src/tgbaalgos/randomgraph.cc, src/tgbaalgos/sccfilter.cc, src/tgbaalgos/sccinfo.cc,src/tgbaalgos/simulation.cc: Simplify.
This commit is contained in:
parent
18f6fe772b
commit
1a93166d15
12 changed files with 92 additions and 75 deletions
|
|
@ -50,7 +50,7 @@ namespace spot
|
|||
virtual void
|
||||
process_state(const state*, int n, tgba_succ_iterator*)
|
||||
{
|
||||
unsigned ns = out_->get_graph().new_state();
|
||||
unsigned ns = out_->new_state();
|
||||
assert(ns == static_cast<unsigned>(n) - 1);
|
||||
(void)ns;
|
||||
}
|
||||
|
|
@ -60,9 +60,9 @@ namespace spot
|
|||
const state*, int out,
|
||||
const tgba_succ_iterator* si)
|
||||
{
|
||||
out_->get_graph().new_transition(in - 1, out - 1,
|
||||
si->current_condition(),
|
||||
si->current_acceptance_conditions());
|
||||
out_->new_transition(in - 1, out - 1,
|
||||
si->current_condition(),
|
||||
si->current_acceptance_conditions());
|
||||
}
|
||||
|
||||
protected:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue