|
Functions |
| var_set_t * | var_set_new (int size) |
| | Allocate a new var_set data structure of size `size'. Clears all the elements.
|
| var_set_t * | var_set_copy (var_set_t *set) |
| | Allocate a new var_set data structure with the same contents as `set'.
|
| var_set_t * | var_set_assign (var_set_t *result, var_set_t *set) |
| | Assign the contents of `result' to be the same as those of `set'.
|
| void | var_set_free (var_set_t *set) |
| | Free the var_set data structure `set'.
|
| int | var_set_n_elts (var_set_t *set) |
| | Return the number of bits in var_set `set' which are set (i.e. the cardinality of the set).
|
| var_set_t * | var_set_or (var_set_t *result, var_set_t *a, var_set_t *b) |
| | Compute the bitwise inclusive OR of `a' and `b', and store the result in `result'. Also, return a pointer to `result'.
|
| var_set_t * | var_set_and (var_set_t *result, var_set_t *a, var_set_t *b) |
| | Compute the bitwise AND of `a' and `b', and store the result in `result'. Also, return a pointer to `result'.
|
| var_set_t * | var_set_not (var_set_t *result, var_set_t *a) |
| | Compute the bitwise complement of `a', and store the result in `result'. Also, return a pointer to `result'.
|
| int | var_set_get_elt (var_set_t *set, int index) |
| | Return the value of the bit at position `index' in `set'.
|
| void | var_set_set_elt (var_set_t *set, int index) |
| | Set the value of the bit at position `index' in `set'.
|
| void | var_set_clear_elt (var_set_t *set, int index) |
| | Clear the value of the bit at position `index' in `set'.
|
| void | var_set_clear (var_set_t *set) |
| | Clear the value of all the bits in `set'.
|
| int | var_set_intersect (var_set_t *a, var_set_t *b) |
| | Return 1 if the var_sets `a' and `b' intersect (i.e. have bits set in the same position); otherwise, return 0.
|
| int | var_set_is_empty (var_set_t *a) |
| | Return 1 if every bit of var_set `a' is cleared; otherwise, return 0.
|
| int | var_set_is_full (var_set_t *a) |
| | Return 1 if every bit of var_set `a' is set; otherwise, return 0.
|
| void | var_set_print (FILE *fp, var_set_t *set) |
| | Print to `fp' the value of each bit in var_set `set'.
|
| int | var_set_equal (var_set_t *a, var_set_t *b) |
| | Return 1 if the var_sets `a' and `b' are equal at every bit position; otherwise, return 0.
|
| int | var_set_cmp (char *obj1, char *obj2) |
| | Return 0 if the var_sets `a' and `b' are equal at every bit position; otherwise, return 1.
|
| unsigned int | var_set_hash_with_modulus (var_set_t *set, unsigned int modulus) |
| | Compute a hash value for the var_set `set'.
|
| unsigned int | var_set_hash (var_set_t *set) |
| | Compute a hash value for the var_set `set'.
|
Compute the bitwise AND of `a' and `b', and store the result in `result'. Also, return a pointer to `result'.
`a', `b', and `result' must be the same size.
Note that `result' can be the same as either or both of `a' and `b' (e.g. var_set_and(foo, foo, bar)).
Definition at line 160 of file var_set.c.
Compute the bitwise complement of `a', and store the result in `result'. Also, return a pointer to `result'.
`a' and `result' must be the same size.
Note that `result' can be the same as `a' (e.g. var_set_not(foo, foo)).
Definition at line 183 of file var_set.c.
Compute the bitwise inclusive OR of `a' and `b', and store the result in `result'. Also, return a pointer to `result'.
`a', `b', and `result' must be the same size.
Note that `result' can be the same as either or both of `a' and `b' (e.g. var_set_or(foo, foo, bar)).
Definition at line 136 of file var_set.c.