Skip to main content

TdxFastList.Assign(TdxFastList,TListAssignOp) Method

Replaces the ordered pointer list’s content with pointers copied from the specified source.

Declaration

procedure Assign(ASource: TdxFastList; AOperator: TListAssignOp); overload;

Parameters

Name Type
ASource TdxFastList
AOperator TListAssignOp

Remarks

Call the first or second overloaded procedure variant to clear the ordered pointer list and repopulate it from the another specified TdxFastList or TList object, respectively.

Unlike the first two variants, the third overloaded Assign procedure also accepts the logical list merge operator as the AOperator parameter that changes how the current list incorporates the specified source list’s content. Depending on the parameter value, the third procedure variant:

AOperator Value Description
laCopy Replaces the current list’s content with the source list’s content like the first and second overloaded procedure variants do.
laAnd Intersects the sets of pointers within the current and source lists (that is, deletes all pointers in the current list that do not match pointers in the source list) and repopulates the current list with the resulting set.
laOr Complements the current list from the source list (that is, appends all pointers from the source list that have no matches in the current list).
laXor Repopulates the current list with the pointers unique to both the current and source lists.
laSrcUnique Repopulates the current list with the pointers from the source list that have no matches in the current list prior to an Assign procedure call.
laDestUnique Removes all stored pointers that have matches in the source list. The current list retains only unique pointers as a result.
See Also