* src/tgbaalgos/emptiness.hh, src/tgbaalgos/emptiness.cc

(emptiness_check_instantiator): New class.
* src/misc/optionmap.hh (set (const option_map&)): New method.
* src/tgbatest/randtgba.cc: Create every emptiness check via
emptiness_check_instantiator.
This commit is contained in:
Alexandre Duret-Lutz 2005-02-17 19:14:03 +00:00
parent 435b03c2b2
commit 4e1916ec50
7 changed files with 239 additions and 64 deletions

View file

@ -134,6 +134,14 @@ namespace spot
return old;
}
void
option_map::set(const option_map& o)
{
for (std::map<std::string, int>::const_iterator it = o.options_.begin();
it != o.options_.end(); ++it)
options_[it->first] = it->second;
}
int&
option_map::operator[](const char* option)
{

View file

@ -70,6 +70,9 @@ namespace spot
/// or \a def otherwise.
int set(const char* option, int val, int def = 0);
/// Acquire all the settings of \a o.
void set(const option_map& o);
/// \brief Get a reference to the current value of \a option.
int& operator[](const char* option);