Class TSubArray (unit mwSArray)

Inherits from

TObject

TSubArray definiert die Grenzen eines SubArrays und bestimmt ob das SubArray gefüllt ist oder nicht. Der MergeSort Algorithmus wird durch diese Klasse leichter lesbar

Constructors


constructor Create(MaxValue: LongInt);

Destroy


Functions

destructor Destroy;

Init

procedure Init(LeftEnd, RightEnd: LongInt);

Next

procedure Next;


Properties

Events

Variables

FLeft : LongInt;


FRight : LongInt;

- Initialized to 0.

Full : Boolean;

- Initialized to 0.

FMax : LongInt;



Constructors


constructor Create(MaxValue: LongInt);

Destroy


Functions


destructor Destroy;

Init


procedure Init(LeftEnd, RightEnd: LongInt);

Next


procedure Next;


Properties


Events


Variables


FLeft : LongInt;


FRight : LongInt;

- Initialized to 0.


Full : Boolean;

- Initialized to 0.


FMax : LongInt;