Class T2DSparseRealArray

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type T2DSparseRealArray = class(T2DSparsePointerArray)

Description

T2DSparseRealArray acts like a 2D array of real numbers. It provides constant time access to its elements through the its Items property. However, when many of the elements are unassigned, it can use much less memory than an array.

Hierarchy

Overview

Fields

Private FCount: NativeInt;
Private FValues: array of double;

Methods

Private function GetItems(const Index1, Index2: NativeInt): double;
Private procedure SetItems(const Index1, Index2: NativeInt; const Value: double);
Public procedure Clear; override;
Public constructor Create(Quantum: TSPAQuantum);

Properties

Public property Items[constIndex1,Index2:NativeInt]: double read GetItems write SetItems;

Description

Fields

Private FCount: NativeInt;

FCount is the number of real numbers stored in T2DSparseRealArray.

Private FValues: array of double;

FValues is an array of real-numbers stored in T2DSparseRealArray

Methods

Private function GetItems(const Index1, Index2: NativeInt): double;

See Items.

Private procedure SetItems(const Index1, Index2: NativeInt; const Value: double);

See Items.

Public procedure Clear; override;

Clear removes all the members of T2DSparseRealArray.

Public constructor Create(Quantum: TSPAQuantum);

Create creates an instance of T2DSparseRealArray.

Properties

Public property Items[constIndex1,Index2:NativeInt]: double read GetItems write SetItems;

Items provides access to the real number stored at location Index1, Index2. Before reading Items, read IsValue to be sure that a number is stored at Index1, Index2.


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