Set_t
Set_AddMember(
Set_t set,
Set_Element_t el
)
- The new set is returned
Set_t
Set_Difference(
Set_t set1,
Set_t set2
)
- Computes the Set Difference
Set_Element_t
Set_GetFirst(
Set_t set1
)
- Gets the first element of a set.
Set_t
Set_GetRest(
Set_t set1
)
- Gets the set difference among the set and the
singleton corresponding to the first element of the set.
int
Set_GiveCardinality(
Set_t set
)
- Computes the cardinality of the given set
boolean
Set_IsEmpty(
Set_t set
)
- Checks for Set Emptiness.
boolean
Set_IsMember(
Set_t set,
Set_Element_t el
)
- Checks if the given element is a meber of the
set. It returns True if it is a member, False
otherwise.
Set_t
Set_MakeEmpty(
)
- This function creates an empty set.
Set_t
Set_MakeSingleton(
Set_Element_t el
)
- Creates a set with a unique element.
Set_t
Set_Make(
node_ptr l
)
- Given a list, builds a corresponding set
- See Also
Set_MakeSingleton
void
Set_PrintSet(
FILE * file,
Set_t s
)
- Prints a set to the specified file stream
void
Set_ReleaseSet(
Set_t set
)
- Releases the memory associated to the given set
Set_t
Set_RemoveMember(
Set_t set,
Set_Element_t el
)
- The new set is returned
node_ptr
Set_Set2List(
Set_t l
)
- Given a set, builds a corresponding list
- See Also
Set_MakeSingleton
Set_t
Set_Union(
Set_t set1,
Set_t set2
)
- Computes the Union of two sets