TdxDynamicItemList Class
A positional sparse list of abstract doubly linked items.
Declaration
TdxDynamicItemList = class(
TObject
)
Remarks
This is the base class for all classes that implement sparse lists allowing you to store doubly linked objects at arbitrary indexed positions within the list. The stored objects can be separated by any number of “unoccupied” positions, unlike any ordinary list or collection.
The TdxDynamicItemList class provides the following members that allow you to:
Obtain a class-reference to the actual list item type (GetItemClass).
Create new items (CreateItem).
Obtain the current list capacity (Count).
Specify individual items by indexed positions within the list (Items).
Obtain positions of the first and last stored items (FirstIndex and LastIndex).
Destroy all the stored items (Clear).
Apply the specified routine to a range of stored items (ForEach).
Move items between sparse lists (DeleteItem and InsertItem).
Shift a range of sparse list positions by the specified value (ShiftIndexes).
You do not need to create instances of the TdxDynamicItemList class. Instead, you use one of its descendants (such as TdxSpreadSheetTableColumns, TdxSpreadSheetTableRows, and TdxSpreadSheetTableItems) or derive a custom positional sparse item list class.