Unit SparseArrayUnit

DescriptionUsesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

The purpose of SparseArrayUnit is to define TSparsePointerArray which acts like an array of pointers It provides constant time access to Items. However, it uses less memory than an array for cases where many of the pointers are nil.

SparseArrayUnit is modified from QGrids.pas to put TSparsePointerArray in the interface and to modify comments to be compatible with TPasDoc.

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Class EStringSparseListError EStringSparseListError is the type of exception generated by errors regarding sparse arrays.
Class TSparsePointerArray TSparsePointerArray acts like an array of pointers with constant time access to Items. However, it uses less memory than an array for cases where many of the pointers are nil.

Types

TSPAApply = TFunc<NativeInt, Pointer, NativeInt>;
TSecDir = array[0..4095] of Pointer;
PSecDir = ˆTSecDir;
TSecDirType = PSecDir;
TCustomData = Pointer;
TSPAQuantum = (...);

Description

Types

TSPAApply = TFunc<NativeInt, Pointer, NativeInt>;

TSPAApply = function(TheIndex: Integer; TheItem: Pointer): Integer;

TSecDir = array[0..4095] of Pointer;

Enough for up to 12 bits of sec

PSecDir = ˆTSecDir;
 
TSecDirType = PSecDir;
 
TCustomData = Pointer;
 
TSPAQuantum = (...);

Section size

Values
  • SPASmall:  
  • SPALarge:  

Generated by PasDoc 0.12.1 on 2013-05-13 15:42:03