Mission Base

Program Base Library Functions

PblSet* pblSetSymmectricDifference

( PblSet* setA,
  PblSet* setB )

Creates a new set containing all elements of the two sets passed as parameters that are contained in either of the sets but not in both of them.

Documentation

Creates a new set containing all elements of the two sets passed as parameters that are contained in either of the sets but not in both of them.

This function creates an empty clone of the first of the two parameter sets and then iterates the first of the two sets and adds all elements to the clone that are not contained in the second set. Then it iterates the second of the two sets and adds all elements to the clone that are not contained in the first set.

Parameters:
setA - The first set to use
setB - The second set to use
Returns:
PblSet * retPtr != NULL: A pointer to the new set.
PblSet * retPtr == NULL: An error, see pbl_errno:
PBL_ERROR_OUT_OF_MEMORY - Out of memory.
PBL_ERROR_PARAM_COLLECTION - A set cannot be iterated.
PBL_ERROR_CONCURRENT_MODIFICATION - A set was modified concurrently.

Alphabetic index



This page was generated with the help of DOC++.