... | ... |
@@ -171,5 +171,5 @@ |
171 | 171 |
|
172 | 172 |
// State constants for arcs |
173 |
enum |
|
173 |
enum ArcState { |
|
174 | 174 |
STATE_UPPER = -1, |
175 | 175 |
STATE_TREE = 0, |
... | ... |
@@ -177,4 +177,8 @@ |
177 | 177 |
}; |
178 | 178 |
|
179 |
typedef std::vector<signed char> StateVector; |
|
180 |
// Note: vector<signed char> is used instead of vector<ArcState> for |
|
181 |
// efficiency reasons |
|
182 |
|
|
179 | 183 |
private: |
180 | 184 |
|
... | ... |
@@ -216,5 +220,5 @@ |
216 | 220 |
IntVector _dirty_revs; |
217 | 221 |
BoolVector _forward; |
218 |
|
|
222 |
StateVector _state; |
|
219 | 223 |
int _root; |
220 | 224 |
|
... | ... |
@@ -247,5 +251,5 @@ |
247 | 251 |
const IntVector &_target; |
248 | 252 |
const CostVector &_cost; |
249 |
const |
|
253 |
const StateVector &_state; |
|
250 | 254 |
const CostVector &_pi; |
251 | 255 |
int &_in_arc; |
... | ... |
@@ -299,5 +303,5 @@ |
299 | 303 |
const IntVector &_target; |
300 | 304 |
const CostVector &_cost; |
301 |
const |
|
305 |
const StateVector &_state; |
|
302 | 306 |
const CostVector &_pi; |
303 | 307 |
int &_in_arc; |
... | ... |
@@ -338,5 +342,5 @@ |
338 | 342 |
const IntVector &_target; |
339 | 343 |
const CostVector &_cost; |
340 |
const |
|
344 |
const StateVector &_state; |
|
341 | 345 |
const CostVector &_pi; |
342 | 346 |
int &_in_arc; |
... | ... |
@@ -411,5 +415,5 @@ |
411 | 415 |
const IntVector &_target; |
412 | 416 |
const CostVector &_cost; |
413 |
const |
|
417 |
const StateVector &_state; |
|
414 | 418 |
const CostVector &_pi; |
415 | 419 |
int &_in_arc; |
... | ... |
@@ -514,5 +518,5 @@ |
514 | 518 |
const IntVector &_target; |
515 | 519 |
const CostVector &_cost; |
516 |
const |
|
520 |
const StateVector &_state; |
|
517 | 521 |
const CostVector &_pi; |
518 | 522 |
int &_in_arc; |
0 comments (0 inline)