Mercurial > hg > match-vamp
diff src/Matcher.h @ 203:3662865740da memory
Make isRowAvailable/isColAvailable operate on first matcher only
author | Chris Cannam |
---|---|
date | Fri, 27 Feb 2015 12:09:43 +0000 |
parents | b5deca82e074 |
children | 010b91e44098 |
line wrap: on
line diff
--- a/src/Matcher.h Fri Feb 27 11:38:04 2015 +0000 +++ b/src/Matcher.h Fri Feb 27 12:09:43 2015 +0000 @@ -157,6 +157,19 @@ * @return true if the location is in range */ bool isInRange(int i, int j); + + /** Tests whether a location is available in the minimum cost + * matrix, that is, whether it is in range and contains a valid + * cost value. Note this and its associated isRowAvailable, + * isColAvailable checks are more expensive than isInRange and + * are really intended for error checking. (If a row is in range, + * it should always be available.) + * + * @param i the frame number of this Matcher + * @param j the frame number of the other Matcher + * @return true if the location is in range and contains a valid cost + */ + bool isAvailable(int i, int j); /** Tests whether any locations in the given row are available. */ @@ -165,14 +178,6 @@ /** Tests whether any locations in the given column are available. */ bool isColAvailable(int i); - - /** Tests whether a location is available in the minimum cost matrix. - * - * @param i the frame number of this Matcher - * @param j the frame number of the other Matcher - * @return true if the location is in range and contains a valid cost - */ - bool isAvailable(int i, int j); /** Returns the valid range of columns for the given row, that is, * the range of frames in the other Matcher for the given frame