From e207a8fec1bae01068bdb3a27a2090a4af5f8cb2 Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Wed, 31 Oct 2012 00:50:29 +1100 Subject: Remove _var_influence and do some writeup _var_influence was really just duplicating data that was available elsewhere, so I got rid of it. I also did some writing about the algorithm and stuff for the thesis. --- impl/MaxStrategy.hpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'impl') diff --git a/impl/MaxStrategy.hpp b/impl/MaxStrategy.hpp index 5534597..71ea4f4 100644 --- a/impl/MaxStrategy.hpp +++ b/impl/MaxStrategy.hpp @@ -40,8 +40,6 @@ struct DynamicMaxStrategy : public MaxStrategy { _stable(system.maxExpressionCount()), _influence(system.maxExpressionCount(), IdSet >(system.maxExpressionCount())), - _var_influence(system.variableCount(), - IdSet >(system.maxExpressionCount())), _changed(false) {} @@ -70,9 +68,8 @@ struct DynamicMaxStrategy : public MaxStrategy { void invalidate(const Variable& v) { log::strategy << indent() << "Invalidating " << v << " - " << *_system[v] << std::endl; - //log::debug << indent() << " var-influence sets " << _var_influence << std::endl; - IdSet > infl = _var_influence[v]; + IdSet > infl = _influence[*_system[v]]; for (typename IdSet >::iterator it = infl.begin(), end = infl.end(); @@ -154,7 +151,6 @@ private: const Domain operator[](const Variable& var) { // solve the strategy for this variable, too _strat.solve(*_strat._system[var]); - _strat._var_influence[var].insert(_expr); _strat._influence[*_strat._system[var]].insert(_expr); return _rho[var]; } @@ -190,7 +186,6 @@ private: IdMap,unsigned int> _values; IdSet > _stable; IdMap,IdSet > > _influence; - IdMap,IdSet > > _var_influence; bool _changed; }; -- cgit v1.2.3