Class TCommonEnumerator

Unit

Declaration

type generic TCommonEnumerator<T> = class(TObject)

Description

A generic enumerator that works for any fixed-length collection.
Drawback: It is always slower than an enumerator custom written for a class. It should use SizeInt, but it cannot use sizeint, when the collection (e.g. TStringList) does not use SizeInt

Hierarchy

Overview

Nested Types

Published TGetCallback = function (i: integer): T of object;

Methods

Public constructor create(count: integer; callback: TGetCallback);
Public function MoveNext: Boolean;
Public function GetEnumerator: TCommonEnumerator;

Properties

Public property Current: T read GetCurrent;

Description

Nested Types

Published TGetCallback = function (i: integer): T of object;
 

Methods

Public constructor create(count: integer; callback: TGetCallback);
 
Public function MoveNext: Boolean;
 
Public function GetEnumerator: TCommonEnumerator;
 

Properties

Public property Current: T read GetCurrent;
 

Generated by PasDoc 0.16.0.