tgba: add a release_named_properties() method

Fixes #67.

* src/tgba/tgba.cc, src/tgba/tgba.hh: Here.
* src/tgbaalgos/complete.cc, src/tgbaalgos/stripacc.cc: Use it.
This commit is contained in:
Alexandre Duret-Lutz 2015-03-22 12:05:05 +01:00
parent d1efe9a75a
commit c26457b02b
4 changed files with 21 additions and 6 deletions

View file

@ -744,6 +744,14 @@ namespace spot
}
#endif
void release_named_properties()
{
// Destroy all named properties.
for (auto& np: named_prop_)
np.second.second(np.second.first);
named_prop_.clear();
}
bool has_state_based_acc() const
{
return is.state_based_acc;