@@ -37,10 +37,11 @@ class CProblemSolver
3737 typedef _operator_ptr _operator_ptr;
3838 typedef _condition_evaluator_ptr _condition_evaluator_ptr;
3939#endif
40- typedef typename _operator_condition::_condition_type _condition_type ;
41- typedef typename _operator_condition::_value_type value_type;
42- typedef typename _operator::_edge_value_type edge_value_type;
40+ typedef typename _operator_condition::condition_type condition_type ;
41+ typedef typename _operator_condition::value_type value_type;
42+ typedef typename _operator::edge_value_type edge_value_type;
4343 typedef CState _index_type;
44+ typedef _operator_id_type edge_type;
4445
4546 struct SOperator
4647 {
@@ -57,7 +58,7 @@ class CProblemSolver
5758 };
5859 typedef xr_vector<SOperator> OPERATOR_VECTOR;
5960 typedef typename OPERATOR_VECTOR::const_iterator const_iterator;
60- typedef AssociativeVector<_condition_type , _condition_evaluator_ptr> EVALUATORS;
61+ typedef AssociativeVector<condition_type , _condition_evaluator_ptr> EVALUATORS;
6162
6263protected:
6364 OPERATOR_VECTOR m_operators;
@@ -93,13 +94,13 @@ class CProblemSolver
9394 struct helper
9495 {
9596 template <bool a>
96- static IC edge_value_type estimate_edge_weight_impl (std::enable_if_t <a, self_type const &> self, const _index_type& vertex_index)
97+ static IC edge_value_type estimate_edge_weight_impl (std::enable_if_t <! a, self_type const &> self, const _index_type& vertex_index)
9798 {
9899 return self.estimate_edge_weight_impl (vertex_index);
99100 }
100101
101102 template <bool a>
102- static IC edge_value_type estimate_edge_weight_impl (std::enable_if_t <! a, self_type const &> self, const _index_type& vertex_index)
103+ static IC edge_value_type estimate_edge_weight_impl (std::enable_if_t <a, self_type const &> self, const _index_type& vertex_index)
103104 {
104105 return self.estimate_edge_weight_impl (vertex_index, true );
105106 }
@@ -139,12 +140,12 @@ class CProblemSolver
139140 IC const CState& target_state () const ;
140141
141142 // evaluator interface
142- IC virtual void add_evaluator (const _condition_type & condition_id, _condition_evaluator_ptr evaluator);
143- IC virtual void remove_evaluator (const _condition_type & condition_id);
144- IC _condition_evaluator_ptr evaluator (const _condition_type & condition_id) const ;
143+ IC virtual void add_evaluator (const condition_type & condition_id, _condition_evaluator_ptr evaluator);
144+ IC virtual void remove_evaluator (const condition_type & condition_id);
145+ IC _condition_evaluator_ptr evaluator (const condition_type & condition_id) const ;
145146 IC const EVALUATORS& evaluators () const ;
146147 IC void evaluate_condition (typename xr_vector<_operator_condition>::const_iterator& I,
147- typename xr_vector<_operator_condition>::const_iterator& E, const _condition_type & condition_id) const ;
148+ typename xr_vector<_operator_condition>::const_iterator& E, const condition_type & condition_id) const ;
148149
149150 // solver interface
150151 IC void solve ();
0 commit comments