Class TAdLinkedList

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAdLinkedList = class(TObject)

Description

A linked list class.

Hierarchy

Overview

Fields

Public Tag:integer;

Methods

Public constructor Create;
Public destructor Destroy; override;
Public function Add(AItem:Pointer):Integer;
Public procedure Insert(AIndex:integer;AItem:Pointer);
Public function Remove(AItem:Pointer):boolean;
Public function Delete(AIndex:integer):boolean;
Public function IndexOf(AItem:Pointer):integer;
Public function First:Pointer;
Public function Last:Pointer;
Public procedure Clear;
Public procedure StartIteration;
Public function ReachedEnd:boolean;
Public function GetCurrent:Pointer;

Properties

Public property Count: Integer read FCount;
Public property Items[Index:integer]: Pointer read GetItem write SetItem;

Description

Fields

Public Tag:integer;

Don't now what this is for...

Methods

Public constructor Create;

Creates an instance of TAdLinkedList.

Public destructor Destroy; override;

Destroys the instance of TAdLinkedList

Public function Add(AItem:Pointer):Integer;

Adds an item to the list and returns its position.

Public procedure Insert(AIndex:integer;AItem:Pointer);

Inserts a item on a specific place in the list.

Public function Remove(AItem:Pointer):boolean;

Removes an item from the list.

Public function Delete(AIndex:integer):boolean;

Delets an item with a specific index from the list.

Public function IndexOf(AItem:Pointer):integer;

Returns the index of a specific item.

Public function First:Pointer;

Pointer to the first item.

Public function Last:Pointer;

Pointer to the last item.

Public procedure Clear;

Deletes all entries in the linked list.

Public procedure StartIteration;

Resets the iterator.

Public function ReachedEnd:boolean;

Returns true, if the iterator reached the end of the list.

Public function GetCurrent:Pointer;

Returns the current item of the iterator and steps to the next item.

Properties

Public property Count: Integer read FCount;

Returns the count of elements in the list

Public property Items[Index:integer]: Pointer read GetItem write SetItem;

Direct access the the items. Don't use in time-critical cases.

SourceForge.net Logo


Generated by PasDoc 0.11.0 on 2008-12-31 14:31:59