Ignore:
Timestamp:
Oct 29, 2010, 7:49:29 AM (14 years ago)
Author:
george
Message:
  • Added: Partial generic set implementation.
  • Modified: TGStack, TGQueue and TGSet owns TGList instead of inherits.
  • Added: TList and TListPointer benchmark comparasion.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Generics/TemplateGenerics/Generic/StackInterface.tpl

    r73 r76  
    44  {$INCLUDE 'ListInterface.tpl'}
    55
    6   // TGStack<TListIndex, TListItem> = class(TGList)
    7   TGStack = class(TGList)
     6  // TGStack<TStackIndex, TStackItem> = class(TGList)
     7  TGStack = class
    88  private
     9    FList: TGList;
    910  public
    1011    procedure Push(Value: TStackItem);
    1112    function Pop: TStackItem;
     13    constructor Create;
     14    destructor Destroy; override;
     15    property List: TGList read FList;
    1216  end;
Note: See TracChangeset for help on using the changeset viewer.