X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=vector%2Ftupleitem.h;h=59589e7c90555f96dd4e521610eea0f890e48e2f;hb=47f0e2bd1cc8942f5c92ffa2f37db416d98d9e9e;hp=595666848c34a9f49be0a0158c1385b1991b3979;hpb=e47e7f1e366224e9e514e28f172afa65c732db21;p=rrq%2Frrqmisc.git diff --git a/vector/tupleitem.h b/vector/tupleitem.h index 5956668..59589e7 100644 --- a/vector/tupleitem.h +++ b/vector/tupleitem.h @@ -14,6 +14,7 @@ typedef void *tuple[]; * macro \ref TUPLEITEMINIT may be used to initialize particular * tupleschema records, which each become tupleitem declaration for * its particular arity and parts declarations + * \extends itemkeyfun */ typedef struct { /** @@ -22,7 +23,7 @@ typedef struct { * itemkeyfun pointer to be within a tupleschema record so as to * provide the handling of the tuple columns. */ - itemkeyfun functions; + itemkeyfun base; /** * This is the number of columns in a tuple. @@ -53,6 +54,11 @@ extern tupleschema *tupleschema_create(int arity,tuple *columns); */ extern tupleschema *tupleschema_mask(tupleschema *schema,...); +/** + * \brief Return 1/0 to indicate whether the query matches the item. + */ +extern int tupleschema_match(tupleschema *def,tuple *query,tuple *item); + /** * The TUPLEITEMINIT macro is used for initializing a tupleschema * record appropriately for a given arity and corresponding sequence