Sign in Join
FPDoc Onlineexperiment

TLinkList.AddAsLast procedure

Member of TLinkListprotectedIn unit LazLinkedList

Configures and adds the specified item as the terminal node for the doubly linked list.

Declaration

pascal
procedure AddAsLast(AnItem: TLinkListItem)

Arguments

AnItem

Item saved as the last item in the linked list.

Description

AddAsLast is a procedure used to make the specified list item the terminal node in the doubly linked list. AddAsLast updates the list item in AnItem by setting its Prior property to the node in Last. The value in its Next property is set to Nil. The updated list item is then assigned as the new value for the Last property. The value in First may be set to the value in AnItem when a prior node in the traversal order is not available.

AddAdLast increments the value in the Count property.

See also

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