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/QueueInterface.tpl

    r73 r76  
    44  {$INCLUDE 'ListInterface.tpl'}
    55
    6   // TGQueue<TListIndex, TListItem> = class(TGList)
    7   TGQueue = class(TGList)
     6  // TGQueue<TSetIndex, TSetItem> = class(TGList)
     7  TGQueue = class
    88  private
     9    FList: TGList;
    910  public
    1011    procedure Enqueue(Value: TQueueItem);
    1112    function Dequeue: TQueueItem;
    1213    function Peek: TQueueItem;
     14    constructor Create;
     15    destructor Destroy; override;
     16    property List: TGList read FList;
    1317  end;
Note: See TracChangeset for help on using the changeset viewer.