* src/tgba/statebdd.hh (state_bdd::as_bdd): Add non-const variant.
* src/tgba/tgbabddtranslateproxy.cc, src/tgba/tgbabddtranslateproxy.hh: New files. * src/tgba/Makefile.am (libtgba_la_SOURCES): Add them.
This commit is contained in:
parent
331738d644
commit
1e6dbe40d6
7 changed files with 339 additions and 11 deletions
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
namespace spot
|
||||
{
|
||||
/// \brief Proxy for a spot::tgba_succ_iterator_concrete that renumber
|
||||
/// \brief Proxy for a spot::tgba_succ_iterator_concrete that renumber
|
||||
/// BDD variables on the fly.
|
||||
class tgba_bdd_translate_proxy_succ_iterator: public tgba_succ_iterator
|
||||
{
|
||||
|
|
@ -34,31 +34,30 @@ namespace spot
|
|||
class tgba_bdd_translate_proxy: public tgba
|
||||
{
|
||||
public:
|
||||
/// \brief Construcor.
|
||||
/// \brief Constructor.
|
||||
/// \param from The spot::tgba to masquerade.
|
||||
/// \param to The new dictionary to use.
|
||||
tgba_bdd_translate_proxy(const tgba& from,
|
||||
tgba_bdd_translate_proxy(const tgba& from,
|
||||
const tgba_bdd_dict& to);
|
||||
|
||||
virtual ~tgba_bdd_translate_proxy();
|
||||
|
||||
virtual state_bdd* get_init_state() const;
|
||||
|
||||
virtual tgba_bdd_translate_proxy_succ_iterator*
|
||||
virtual tgba_bdd_translate_proxy_succ_iterator*
|
||||
succ_iter(const state* state) const;
|
||||
|
||||
virtual const tgba_bdd_dict& get_dict() const;
|
||||
|
||||
virtual std::string
|
||||
tgba_bdd_translate_proxy::format_state(const state* state) const;
|
||||
|
||||
virtual std::string format_state(const state* state) const;
|
||||
|
||||
private:
|
||||
const tgba& from_; ///< The spot::tgba to masquerade.
|
||||
tgba_bdd_dict to_; ///< The new dictionar to use.
|
||||
bddPair* rewrite_to_; ///< The rewriting pair for from->to.
|
||||
bddPair* rewrite_from_; ///< The rewriting pair for to->from.
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif // SPOT_TGBA_TGBABDDTRANSLATEPROXY_HH
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue