[Overview][Classes][Index] Reference for unit 'LazLinkedList' (#lazutils)

TLinkList.AddAsLast

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

Declaration

Source position: lazlinkedlist.pas line 44

protected procedure TLinkList.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

TLinkList.Count

  

Total number of items used in the doubly linked list.

TLinkList.Last

  

Last item in the doubly linked list.

TLinkList.First

  

First item in the doubly linked list.

TLinkListItem.Prior

  

Contains a reference to the previous item in the doubly linked list.

TLinkListItem.Next

  

Contains a reference to the next item in the doubly linked list.


Version 4.0 Generated 2025-05-03 Home