Mercurial > hg > match-vamp
diff src/Finder.h @ 84:de7034e93dd0 refactors
More error checking (check advance as well as cost)
author | Chris Cannam |
---|---|
date | Thu, 27 Nov 2014 10:53:00 +0000 |
parents | 3616d541d69e |
children | a540b26db228 |
line wrap: on
line diff
--- a/src/Finder.h Thu Nov 27 10:49:11 2014 +0000 +++ b/src/Finder.h Thu Nov 27 10:53:00 2014 +0000 @@ -68,16 +68,17 @@ protected: #ifdef PERFORM_ERROR_CHECKS struct ErrorPosition { - enum Type { NoError = 0, CostError, NoAdvance }; + enum Type { NoError = 0, WrongCost, WrongAdvance, NoAdvance }; ErrorPosition() : type(NoError) { } Type type; int r; int c; double prevCost; float distance; - Matcher::Advance advance; double costWas; double costShouldBe; + Matcher::Advance advanceWas; + Matcher::Advance advanceShouldBe; }; ErrorPosition checkPathCostMatrix(); #endif