Sign in Join
FPDoc Onlineexperiment

TLinkList.CreateItem function

Member of TLinkListprotectedIn unit LazLinkedList

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

Declaration

pascal
function 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

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