subcase: Add more functions.
authorBen Pfaff <blp@cs.stanford.edu>
Wed, 31 Mar 2010 04:41:50 +0000 (21:41 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Mon, 3 May 2010 04:29:22 +0000 (21:29 -0700)
src/data/subcase.h

index 6f778b12f4d5b47e9da036ac53ff74293015de02..ba4119b346bda76a5aa674ebdd2d35fccca9c595 100644 (file)
@@ -67,16 +67,22 @@ bool subcase_add (struct subcase *, int case_index, int width,
                  enum subcase_direction direction);
 bool subcase_add_var (struct subcase *, const struct variable *,
                       enum subcase_direction);
+bool subcase_add_vars (struct subcase *, const struct variable *const *,
+                       size_t n_vars, enum subcase_direction);
 
 void subcase_add_always (struct subcase *sc, int case_index, int width,
                          enum subcase_direction direction);
 void subcase_add_var_always (struct subcase *, const struct variable *,
                              enum subcase_direction);
+bool subcase_add_vars_always (struct subcase *, const struct variable *const *,
+                              size_t n_vars, enum subcase_direction);
 void subcase_add_proto_always (struct subcase *, const struct caseproto *);
 
 void subcase_concat (struct subcase *, const struct subcase *);
 void subcase_concat_always (struct subcase *, const struct subcase *);
 
+void subcase_project (struct subcase *);
+
 const struct caseproto *subcase_get_proto (const struct subcase *);
 
 static inline bool subcase_is_empty (const struct subcase *);