void set_remove(Set *set, int element)
Remove a element.
Set * set_union(Set *set_a, Set *set_b)
Union of set A and B.
Set * set_difference(Set *set_a, Set *set_b)
Difference of set A and B.
Set * set_create()
Create a new set instance.
Set * set_copy(Set *set)
Create a set as copy of another.
bool set_contains(Set *set, int element)
Get a value in the set.
Set * set_init(int set_size,...)
Create a new set instance with elements.
bool set_subset(Set *set_a, Set *set_b)
Check if set A is a subset of set B.
void set_print(Set *set)
Print all elements of the set.
Set * set_intersection(Set *set_a, Set *set_b)
Intersection of set A and B.
void set_add(Set *set, int element)
Put a value associated to a key.
void set_free(Set *set)
Free memory of set and its contents.
bool set_equal(Set *set_a, Set *set_b)
Check if set A and B are equals.
Set * set_from_iterator(Iterator *s)
Creates a set from an iterator.
Iterator * set_iterator(Set *s)
Creates an iterator for the set.
struct Set Set
A basic implementation of a Set.
Definition set.h:27
A generic iterator struct.
Definition iterator.h:13