move set_generalized_buchi and set_buchi to tgba

* src/tgba/tgbagraph.hh (set_generalized_buchi, set_buchi): Move...
* src/tgba/tgba.hh: ... here.
This commit is contained in:
Alexandre Duret-Lutz 2015-03-18 20:52:58 +01:00
parent 47d9a2d57c
commit d2f11e4075
2 changed files with 26 additions and 26 deletions

View file

@ -334,26 +334,6 @@ namespace spot
return g_.trans_data(t);
}
void set_generalized_buchi(unsigned num)
{
if (num < acc_.num_sets())
{
acc_.~acc_cond();
new (&acc_) acc_cond;
}
acc_.add_sets(num - acc_.num_sets());
prop_single_acc_set(!acc_.uses_fin_acceptance() && num == 1);
if (num == 0)
prop_state_based_acc();
acc_.set_generalized_buchi();
}
acc_cond::mark_t set_buchi()
{
set_generalized_buchi(1);
return acc_.mark(0);
}
trans_storage_t& trans_storage(const tgba_succ_iterator* it)
{
auto* i = down_cast<const tgba_digraph_succ_iterator<graph_t>*>(it);