Sign in Join
FPDoc Onlineexperiment

TLinkList.MoveToLast procedure

Member of TLinkListpublicIn unit LazLinkedList

Relocates the specified list item to the last (or terminal) node for the linked list.

Declaration

pascal
procedure MoveToLast(AnItem: TLinkListItem)

Arguments

AnItem

Item moved to the last node in the linked list.

Description

MoveToLast is a procedure used to move the specified list item to the last (or terminal) node in the doubly linked list. No actions are performed in the method when AnItem is unassigned (contains Nil).

MoveToLast calls Unbind to ensure that AnItem is removed from the node traversal order in the linked list. MoveToLast calls AddAsLast to update the values in the Prior and Next properties in AnItem making it the terminal node in the traversal order.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.