1#ifndef SUBSET_H
2#define SUBSET_H
3
4#include <cdt.h>
5
6typedef struct {
7 Dtlink_t link;
8 void* v;
9} ptritem;
10
11typedef int (*walkfn)(void*, void*);
12
13extern Dt_t* mkSubset(void);
14extern void addSubset(Dt_t*, void*);
15extern void* inSubset(Dt_t*, void *);
16extern void walkSubset(Dt_t*, walkfn, void*);
17extern int sizeSubset(Dt_t*);
18extern void clearSubset(Dt_t*);
19extern void closeSubset(Dt_t*);
20extern int intersect_size(Dt_t*, Dt_t*);
21extern int union_size(Dt_t*, Dt_t*);
22
23#endif
24