tgba: simplify usage of named properties

* src/tgba/tgba.hh, src/tgba/tgba.cc (set_named_prop): Add a template
version.
(get_named_prop): Hide the old version, and supply a template version
that casts.
* src/bin/ltlcross.cc, src/hoaparse/hoaparse.yy, src/tgbaalgos/hoa.cc,
src/tgbaalgos/product.cc: Adjust usage.
This commit is contained in:
Alexandre Duret-Lutz 2014-12-09 16:20:12 +01:00
parent 5a1e38d90f
commit 61edf7f41d
6 changed files with 23 additions and 12 deletions

View file

@ -98,7 +98,7 @@ namespace spot
}
void*
tgba::get_named_prop(std::string s) const
tgba::get_named_prop_(std::string s) const
{
auto i = named_prop_.find(s);
if (i == named_prop_.end())