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

TLinkList.CreateItem

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

Declaration

Source position: lazlinkedlist.pas line 42

protected function TLinkList.CreateItem: TLinkListItem; virtual; abstract;

Function result

New link list item allocated in the method.

Description

CreateItem is an abstract virtual method which specifies the interface used to create a new linked list item for the class. The return value is the TLinkListItem class instance allocated in the method. CreateItem must be be implemented in a descendent class to handle storage and ownership for the items created in the linked list.

CreateItem is used in the implementation of the GetNewItem method.

See also

TLinkList.GetNewItem

  

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


Version 4.0 Generated 2025-05-03 Home