spelling correction
[rrq/rrqmisc.git] / vector / tupleitem.h
index 595666848c34a9f49be0a0158c1385b1991b3979..59589e7c90555f96dd4e521610eea0f890e48e2f 100644 (file)
@@ -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