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

TLinkList.GetNewItem

Gets a new linked list item by reusing a free item or creating a new one.

Declaration

Source position: lazlinkedlist.pas line 43

protected function TLinkList.GetNewItem: TLinkListItem;

Function result

Linked list item reused or created in the method.

Description

GetNewItem is a TLinkListItem function used to get a new item for the doubly linked list. GetNewItem checks for an unused item in the linked list, and creates a new TLinkListItem instance when a free item is not found. A reused item is updated to remove the Prior and Next traversal nodes in the linked list item. A new item is retrieved by calling the CreateItem method.

See also

TLinkList.CreateItem

  

Specifies the interface used to create a new linked list item for the class.

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