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:
parent
5a1e38d90f
commit
61edf7f41d
6 changed files with 23 additions and 12 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue