Class ALinkedQueue

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type ALinkedQueue = class(ALinkedList)

Description

This class alters the behavior of ALinkedList so that it can be used as a queue (first in, first out). It does this by modifying the behavior of ALinkedList.PopItem so that it returns the first item in the list, instead of the last. Of course, like its parent, instances of ALinkedQueue can also be accessed as indexed arrays, if desired.

Hierarchy

Overview

Methods

Public function PopItem: ANode; override;

Description

Methods

Public function PopItem: ANode; override;

Remove the first node from the list and return it to the caller.

This method overrides the behavior inherited from ALinkedList.PopItem so that it returns the first item in the list, instead of the last.

If there are no items in the list, this method returns Nil.


Generated by PasDoc 0.13.0 on 2015-06-23 19:40:11