在.../lib/mxarrays.dcu中有很多动态数组对象(无源码, 无说明):
TDoubleArray, TIntArray, TRealArray, TSmallIntArray, TCurrencyArray,
TWordArray, TPointerArray, TStringArray...
TIntArray = class(TBaseArray);
public
constructor Create(itemcount,dummy:integer);
destructor destory;
//or constructor Create;
procedure Clear;
procedure InsertAt(Index: integer
Value: integer);
procedure Insert(Index: integer
Value: integer);
procedure Delete(Index: integer);
procedure Exchange(Index1, Index2: integer);
function IndexOf(Item: integer): integer;
function FindItem(var Index: integer
Value: integer): boolean;
procedure Sort(Compare: TCompareProc);
property CompareProc: TCompareProc;
property Duplicates: TDuplicates;
property SortOrder: TSortOrder;
property Capacity: integer;
property Limit: integer;
property Count: integer;
end;
其他类似