Class TCollection (unit Containr)

Inherits from

TContainer

TCollection is a BP7.0 TCollection like class with extended features. It is also streamable. Main behaviour defined by TContainer, TCollection just implements a (Sorted) collection stored in a TList

Constructors


constructor Create;

Removes item at Index from FList

TCollection


constructor Load(S: TFilter);

Calls inherited Create then instantiates FList


Functions

procedure Assign(Container: TContainer);

Creates FList then calls inherited load which will fill it

procedure RemoveAll;

Overrides the inherited Assign to improve performance

procedure FreeDataStructure;


function Get(Index: Integer): Pointer;

Calls inherited, then disposes of FList

function GetCount: Integer;

Gets item from FList

procedure ListInsert(Index: Integer; Item: Pointer);

Returns FList.

procedure ListPut(Index: Integer; Item: Pointer);

Insert Item at position Index in FList

procedure ListRemove(Index: Integer);

Puts Item at Index in FList

Properties

Events

Variables

FList : TList;



Constructors


constructor Create;

Removes item at Index from FList

TCollection


constructor Load(S: TFilter);

Calls inherited Create then instantiates FList


Functions


procedure Assign(Container: TContainer);

Creates FList then calls inherited load which will fill it


procedure RemoveAll;

Overrides the inherited Assign to improve performance


procedure FreeDataStructure;


function Get(Index: Integer): Pointer;

Calls inherited, then disposes of FList


function GetCount: Integer;

Gets item from FList


procedure ListInsert(Index: Integer; Item: Pointer);

Returns FList.Count


procedure ListPut(Index: Integer; Item: Pointer);

Insert Item at position Index in FList


procedure ListRemove(Index: Integer);

Puts Item at Index in FList


Properties


Events


Variables


FList : TList;