X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=vector%2FHashVector.h;h=b9316d688aedc1d42b9d3d099313c14f9a2ebd9e;hb=1d530c65782b499bb75afff76f1214edfe30ec21;hp=18f63fb8bfc6af4fa87cd943452c0e4ba8426f44;hpb=6fcd4ffc18696dbf4c11be32837a2035ea5ee92f;p=rrq%2Frrqmisc.git diff --git a/vector/HashVector.h b/vector/HashVector.h index 18f63fb..b9316d6 100644 --- a/vector/HashVector.h +++ b/vector/HashVector.h @@ -35,7 +35,7 @@ * * \extends Vector */ -typedef struct { +typedef struct HashVector { /** * This is the backing \ref Vector for the HashVector. Items are * placed in the Vector by means of their key hashcodes, at the @@ -73,7 +73,7 @@ typedef struct { #define HV_HOLE ((void*) 1) /** - * \brief Find the keyed item. + * \brief Lookup the first item with the given key. * * \param hv is the \ref HashVector concerned. * @@ -86,21 +86,18 @@ typedef struct { void *HashVector_find(HashVector *hv,void *key); /** - * \brief Scan the table for th next key-matching item at or after the - * given index. + * \brief Scan the table by index * * \param hv is the \ref HashVector concerned. * * \param index is a pointer to the index to advance. - * \ - * \param key is the query key * * \returns the next matching item, or \b 0 if none, with the index * updated. * * \related HashVector */ -extern void *HashVector_next(HashVector *hv,VectorIndex *i,void *key); +extern void *HashVector_next(HashVector *hv,VectorIndex *i); /** * \brief Add the given item into the \ref HashVector, growing it as