Ignore:
Timestamp:
Mar 6, 2011, 6:44:23 PM (14 years ago)
Author:
george
Message:
  • Added: Generic Matrix class methods enhacement.
Location:
Generics/TemplateGenerics/Generic
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Generics/TemplateGenerics/Generic

    • Property svn:ignore set to
      backup
  • Generics/TemplateGenerics/Generic/GenericList.inc

    r129 r175  
    4949    function Remove(Item: TGListItem): TGListIndex;
    5050    procedure Reverse;
     51    procedure Replace(Index: TGListIndex; Source: TGList);
    5152    procedure Sort(Compare: TGListSortCompare);
    5253    procedure SetArray(Values: TGListItemArray);
     
    7172
    7273{ TGList }
     74
     75procedure TGList.Replace(Index: TGListIndex; Source: TGList);
     76var
     77  I: TGListIndex;
     78begin
     79  I := 0;
     80  while I < Source.Count do begin
     81    Items[Index + I] := Source[I];
     82    I := I + 1;
     83  end;
     84end;
    7385
    7486function TGList.GetCapacity: TGListIndex;
Note: See TracChangeset for help on using the changeset viewer.