Mercurial > hg > match-vamp
diff src/Matcher.h @ 154:4159f6b71942 structure
More cost query methods
author | Chris Cannam |
---|---|
date | Fri, 23 Jan 2015 14:55:19 +0000 |
parents | 6914a6a01ffc |
children | bb4507f24dc9 |
line wrap: on
line diff
--- a/src/Matcher.h Fri Jan 23 11:46:14 2015 +0000 +++ b/src/Matcher.h Fri Jan 23 14:55:19 2015 +0000 @@ -158,6 +158,14 @@ * @return true if the location is in range */ bool isInRange(int i, int j); + + /** Tests whether any locations in the given row are available. + */ + bool isRowAvailable(int i); + + /** 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. * @@ -167,8 +175,9 @@ */ bool isAvailable(int i, int j); - /** Returns the valid range of frames in the other Matcher for the - * given frame in this Matcher's minimum cost matrix. + /** Returns the valid range of columns for the given row, that is, + * the range of frames in the other Matcher for the given frame + * in this Matcher's minimum cost matrix. * * @param i the frame number of this Matcher * @return the first, last pair of frame numbers for the other @@ -177,8 +186,9 @@ */ std::pair<int, int> getColRange(int i); - /** Returns the valid range of frames in this Matcher for the - * given frame in the other Matcher's minimum cost matrix. + /** Returns the valid range of rows for the given column, that is, + * the range of frames in this Matcher for the given frame in the + * other Matcher's minimum cost matrix. * * @param i the frame number of the other Matcher * @return the first, last pair of frame numbers for this