Skip to main content

TsgBaseList

Unit:sgLists

Description

TsgBaseList is a base class for classes that represents lists or collection of items.

Syntax

type TsgBaseList = class(TsgInterfacedObject, IsgCollectionBase, IsgCollectionBaseSort)

Properties

PropertiesDescription
CapacityThe property specifies the allocated size of the array of pointers maintained by the TsgBaseList object.
CountThe property indicates the number of entries in the list that are in use.
DublicatesThe property specifies how to handle items with same values.
ListTypeThe property specifies the type of elements maintained by the list.
ProcCompareThe property specifies the procedure used to compare items in the list.
SortedThe property indicates whether the items are sorted or not.

Methods

MethodsDescription
AppendDynArrayThe method appends a dynamic array to the list.
AssignThe method copies elements of another list to this one.
ClearThe method deletes all items from the list.
CopyFromThe method copies data from a specified list to this list.
CopyToThe method copies data from this list to a specified list.
CreateThe method creates a new list and initializes its data.
DeleteThe method removes the item(s) at a specific position from the list.
DestroyThe method destroys an instance of TsgBaseList.
FillCharThe method is for internal use.
FlipThe method performs mirrored rearrangement of the items.
HighThe method returns the index of last item in the list.
IsEqualThe method checks whether this list and a specified list are equal.
IsItemsUniqueThe method checks whether the Items array contains unique data set.
SortThe method performs a sort on the list.
SwapItemsThe method swaps two items in the list.