Promote use of shared_ptr

* spot/kripke/kripke.hh, spot/ltsmin/ltsmin.cc,
spot/ltsmin/ltsmin.hh, spot/mc/ec.hh, spot/mc/intersect.hh,
spot/mc/utils.hh, spot/twacube/Makefile.am,
spot/twacube/fwd.hh, spot/twacube/twacube.hh,
spot/twacube_algos/convert.cc, spot/twacube_algos/convert.hh,
tests/core/twacube.cc, tests/ltsmin/modelcheck.cc: here.
This commit is contained in:
Etienne Renault 2016-04-25 15:36:26 +02:00
parent 7d2abe229b
commit 765bb8a7c4
13 changed files with 64 additions and 31 deletions

View file

@ -45,7 +45,7 @@ namespace spot
public:
ec_renault13lpar(kripkecube<State, SuccIterator>& sys,
twacube* twa)
twacube_ptr twa)
: intersect<State, SuccIterator, StateHash, StateEqual,
ec_renault13lpar<State, SuccIterator,
StateHash, StateEqual>>(sys, twa),

View file

@ -59,7 +59,7 @@ namespace spot
{
public:
intersect(kripkecube<State, SuccIterator>& sys,
twacube* twa):
twacube_ptr twa):
sys_(sys), twa_(twa)
{
assert(is_a_kripkecube(sys));
@ -254,7 +254,7 @@ namespace spot
std::shared_ptr<trans_index> it_prop;
};
kripkecube<State, SuccIterator>& sys_;
twacube* twa_;
twacube_ptr twa_;
std::vector<todo_element> todo;
typedef std::unordered_map<const product_state, int,
product_state_hash,

View file

@ -95,7 +95,6 @@ namespace spot
std::vector<std::string>* names_;
bdd_dict_ptr dict_;
std::unordered_map<int, int> reverse_binder_;
};
@ -116,7 +115,7 @@ namespace spot
public:
product_to_twa(kripkecube<State, SuccIterator>& sys,
twacube* twa)
twacube_ptr twa)
: intersect<State, SuccIterator, StateHash, StateEqual,
product_to_twa<State, SuccIterator,
StateHash, StateEqual>>(sys, twa)
@ -143,7 +142,6 @@ namespace spot
for (auto ap : this->twa_->get_ap())
{
auto idx = res_->register_ap(ap);
std::cout << ap << idx << std::endl;
reverse_binder_[i++] = idx;
}
}