comparison src/Finder.h @ 163:cf1282d1f940 refactors

Add overall cost output to plugin. Looks suspiciously unaffected by tuning frequency.
author Chris Cannam
date Thu, 29 Jan 2015 17:38:09 +0000
parents c665173b3a33
children eeed3498fe96
comparison
equal deleted inserted replaced
162:dda5410ac9f0 163:cf1282d1f940
63 * 63 *
64 * @param smooth whether to smooth the path before returning it 64 * @param smooth whether to smooth the path before returning it
65 */ 65 */
66 int retrievePath(bool smooth, std::vector<int> &pathx, std::vector<int> &pathy); 66 int retrievePath(bool smooth, std::vector<int> &pathx, std::vector<int> &pathy);
67 67
68 /**
69 * Get the path cost for the overall path to the end of both
70 * sources.
71 */
72 double getOverallCost();
73
68 protected: 74 protected:
69 #ifdef PERFORM_ERROR_CHECKS 75 #ifdef PERFORM_ERROR_CHECKS
70 struct ErrorPosition { 76 struct ErrorPosition {
71 enum Type { NoError = 0, WrongCost, WrongAdvance, NoAdvance }; 77 enum Type { NoError = 0, WrongCost, WrongAdvance, NoAdvance };
72 ErrorPosition() : type(NoError) { } 78 ErrorPosition() : type(NoError) { }