Compares sets of <RelationshipNode> objects ( each set must be contained in a <Group>-derived <Node> ) and populates the <List> object with pointers to the <RelationshipNode> objects in set A that do not match any <RelationshipNode> objects in set B. This function is highly-optimized to compare large sets of <RelationshipNode> objects. For example, you create a document and store its dependencies and references with <RelationshipNode> objects. Later you make changes to the document. This allows you to compare the old dependencies and references with the new dependencies and references to see what's changed.
int32 CompareSet( Group p_oGroupA, Group p_oGroupB, NodeBuffer p_oList, Int32Array p_aiInt32Array )
Parameter Type | Parameter Name | Documentation |
---|---|---|
<Group> | p_oGroupA | A pointer to a <Group> containing the first set of <RelationshipNode> objects. |
<Group> | p_oGroupB | A pointer to a <Group> containing the second set of <RelationshipNode> objects. The <List> object is populated with <RelationshipNode> objects in the first set that do not match any <RelationshipNode> in this set. |
<NodeBuffer> | p_oList | A pointer to the <List> object to populate with <RelationshipNode> objects. |
<Int32Array> | p_aiInt32Array | A pointer to an <Int32Array>. This <Int32Array> is used for internal purposes. |
None published. Please look for an example in the Scenome Scripting Language code base.