Ignore:
Timestamp:
Feb 8, 2012, 2:13:08 PM (13 years ago)
Author:
chronos
Message:
  • Modified: TGTree structure.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Generics/NativeGenerics/Units/GenericList.pas

    r324 r326  
    9393  end;
    9494
    95   TListObject<TItem> = class(TGList<TItem>)
     95  TGObjectList<TItem> = class(TGList<TItem>)
    9696  private
    9797    procedure Put(Index: Integer; const AValue: TItem); override;
     
    105105  end;
    106106
    107   TListString<TItem> = class(TGList<TItem>)
     107  TGStringList<TItem> = class(TGList<TItem>)
    108108  private
    109109  public
     
    603603end;
    604604
    605 { TListObject }
    606 
    607 procedure TListObject<TItem>.Assign(Source: TGList<TItem>);
     605{ TGObjectList }
     606
     607procedure TGObjectList<TItem>.Assign(Source: TGList<TItem>);
    608608begin
    609609  Clear;
     
    612612end;
    613613
    614 procedure TListObject<TItem>.Put(Index: Integer; const AValue: TItem);
     614procedure TGObjectList<TItem>.Put(Index: Integer; const AValue: TItem);
    615615begin
    616616  if OwnsObjects then FItems[Index].Free;
     
    618618end;
    619619
    620 procedure TListObject<TItem>.Delete(Index: Integer);
     620procedure TGObjectList<TItem>.Delete(Index: Integer);
    621621begin
    622622  if OwnsObjects then FItems[Index].Free;
     
    624624end;
    625625
    626 procedure TListObject<TItem>.Clear;
     626procedure TGObjectList<TItem>.Clear;
    627627var
    628628  I: Integer;
     
    638638end;
    639639
    640 constructor TListObject<TItem>.Create;
     640constructor TGObjectList<TItem>.Create;
    641641begin
    642642  inherited;
     
    644644end;
    645645
    646 destructor TListObject<TItem>.Destroy;
     646destructor TGObjectList<TItem>.Destroy;
    647647begin
    648648  Clear;
     
    650650end;
    651651
    652 { TListString }
    653 
    654 procedure TListString<TItem>.Assign(Source: TGList<TItem>);
     652{ TGStringList }
     653
     654procedure TGStringList<TItem>.Assign(Source: TGList<TItem>);
    655655begin
    656656  Clear;
     
    658658end;
    659659
    660 procedure TListString<TItem>.Delete(Index: Integer);
     660procedure TGStringList<TItem>.Delete(Index: Integer);
    661661begin
    662662  FItems[Index] := '';
     
    664664end;
    665665
    666 procedure TListString<TItem>.Clear;
     666procedure TGStringList<TItem>.Clear;
    667667var
    668668  I: Integer;
     
    676676end;
    677677
    678 constructor TListString<TItem>.Create;
     678constructor TGStringList<TItem>.Create;
    679679begin
    680680  inherited;
    681681end;
    682682
    683 destructor TListString<TItem>.Destroy;
     683destructor TGStringList<TItem>.Destroy;
    684684begin
    685685  Clear;
Note: See TracChangeset for help on using the changeset viewer.