Make bdd_dict a shared pointer.
* src/tgba/bdddict.hh (bdd_dict_ptr): New type. (make_bdd_dict): New function. * iface/dve2/dve2.cc, iface/dve2/dve2.hh, iface/dve2/dve2check.cc, src/bin/dstar2tgba.cc, src/bin/ltlcross.cc, src/dstarparse/dstarparse.yy, src/dstarparse/public.hh, src/graphtest/tgbagraph.cc, src/kripke/kripkeexplicit.cc, src/kripke/kripkeexplicit.hh, src/kripke/kripkeprint.cc, src/kripkeparse/kripkeparse.yy, src/kripkeparse/public.hh, src/kripketest/parse_print_test.cc, src/ltlvisit/apcollect.cc, src/ltlvisit/contain.cc, src/ltlvisit/contain.hh, src/ltlvisit/simplify.cc, src/ltlvisit/simplify.hh, src/neverparse/neverclaimparse.yy, src/neverparse/public.hh, src/priv/accmap.hh, src/saba/saba.hh, src/saba/sabacomplementtgba.cc, src/saba/sabacomplementtgba.hh, src/sabatest/sabacomplementtgba.cc, src/ta/ta.hh, src/ta/taexplicit.cc, src/ta/taexplicit.hh, src/ta/taproduct.cc, src/ta/taproduct.hh, src/ta/tgtaexplicit.cc, src/ta/tgtaexplicit.hh, src/taalgos/dotty.cc, src/tgba/bddprint.cc, src/tgba/bddprint.hh, src/tgba/formula2bdd.cc, src/tgba/formula2bdd.hh, src/tgba/taatgba.cc, src/tgba/taatgba.hh, src/tgba/tgba.hh, src/tgba/tgbagraph.hh, src/tgba/tgbakvcomplement.cc, src/tgba/tgbakvcomplement.hh, src/tgba/tgbaproduct.cc, src/tgba/tgbaproduct.hh, src/tgba/tgbaproxy.cc, src/tgba/tgbaproxy.hh, src/tgba/tgbasafracomplement.cc, src/tgba/tgbasafracomplement.hh, src/tgba/tgbascc.cc, src/tgba/tgbascc.hh, src/tgba/tgbasgba.cc, src/tgba/tgbasgba.hh, src/tgba/tgbaunion.cc, src/tgba/tgbaunion.hh, src/tgba/wdbacomp.cc, src/tgbaalgos/compsusp.cc, src/tgbaalgos/compsusp.hh, src/tgbaalgos/degen.cc, src/tgbaalgos/dtbasat.cc, src/tgbaalgos/dtgbasat.cc, src/tgbaalgos/emptiness.cc, src/tgbaalgos/lbtt.cc, src/tgbaalgos/lbtt.hh, src/tgbaalgos/ltl2taa.cc, src/tgbaalgos/ltl2taa.hh, src/tgbaalgos/ltl2tgba_fm.cc, src/tgbaalgos/ltl2tgba_fm.hh, src/tgbaalgos/randomgraph.cc, src/tgbaalgos/randomgraph.hh, src/tgbaalgos/save.cc, src/tgbaalgos/translate.cc, src/tgbaalgos/translate.hh, src/tgbaalgos/word.cc, src/tgbaalgos/word.hh, src/tgbaparse/public.hh, src/tgbaparse/tgbaparse.yy, src/tgbatest/complementation.cc, src/tgbatest/explprod.cc, src/tgbatest/ltl2tgba.cc, src/tgbatest/ltlprod.cc, src/tgbatest/maskacc.cc, src/tgbatest/powerset.cc, src/tgbatest/randtgba.cc, src/tgbatest/taatgba.cc, src/tgbatest/tgbaread.cc, src/tgbatest/tripprod.cc, wrap/python/ajax/spot.in, wrap/python/tests/alarm.py, wrap/python/tests/ltl2tgba.py, wrap/python/tests/parsetgba.py: Update to use bdd_dict_ptr and make_bdd_dict().
This commit is contained in:
parent
10e5c62386
commit
dc5ad78b3e
93 changed files with 199 additions and 245 deletions
|
|
@ -35,7 +35,7 @@ namespace spot
|
|||
class SPOT_API taa_tgba : public tgba
|
||||
{
|
||||
public:
|
||||
taa_tgba(bdd_dict* dict);
|
||||
taa_tgba(bdd_dict_ptr dict);
|
||||
|
||||
struct transition;
|
||||
typedef std::list<transition*> state;
|
||||
|
|
@ -55,7 +55,7 @@ namespace spot
|
|||
virtual ~taa_tgba();
|
||||
virtual spot::state* get_init_state() const;
|
||||
virtual tgba_succ_iterator* succ_iter(const spot::state* state) const;
|
||||
virtual bdd_dict* get_dict() const;
|
||||
virtual bdd_dict_ptr get_dict() const;
|
||||
virtual std::string format_state(const spot::state* state) const = 0;
|
||||
virtual bdd all_acceptance_conditions() const;
|
||||
virtual bdd neg_acceptance_conditions() const;
|
||||
|
|
@ -65,7 +65,7 @@ namespace spot
|
|||
|
||||
typedef std::vector<taa_tgba::state_set*> ss_vec;
|
||||
|
||||
bdd_dict* dict_;
|
||||
bdd_dict_ptr dict_;
|
||||
mutable bdd all_acceptance_conditions_;
|
||||
mutable bool all_acceptance_conditions_computed_;
|
||||
bdd neg_acceptance_conditions_;
|
||||
|
|
@ -151,7 +151,7 @@ namespace spot
|
|||
class SPOT_API taa_tgba_labelled : public taa_tgba
|
||||
{
|
||||
public:
|
||||
taa_tgba_labelled(bdd_dict* dict) : taa_tgba(dict) {};
|
||||
taa_tgba_labelled(bdd_dict_ptr dict) : taa_tgba(dict) {};
|
||||
|
||||
void set_init_state(const label& s)
|
||||
{
|
||||
|
|
@ -322,7 +322,7 @@ namespace spot
|
|||
public taa_tgba_labelled<std::string, string_hash>
|
||||
{
|
||||
public:
|
||||
taa_tgba_string(bdd_dict* dict) :
|
||||
taa_tgba_string(bdd_dict_ptr dict) :
|
||||
taa_tgba_labelled<std::string, string_hash>(dict) {};
|
||||
~taa_tgba_string();
|
||||
protected:
|
||||
|
|
@ -334,7 +334,7 @@ namespace spot
|
|||
public taa_tgba_labelled<const ltl::formula*, ltl::formula_ptr_hash>
|
||||
{
|
||||
public:
|
||||
taa_tgba_formula(bdd_dict* dict) :
|
||||
taa_tgba_formula(bdd_dict_ptr dict) :
|
||||
taa_tgba_labelled<const ltl::formula*, ltl::formula_ptr_hash>(dict) {};
|
||||
~taa_tgba_formula();
|
||||
protected:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue