Class T3DSparseRealArray

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type T3DSparseRealArray = class(T3DSparsePointerArray)

Description

T3DSparseRealArray acts like a 3D 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: integer;
Private FValues: array of double;

Methods

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

Properties

Public property Items[const Index1, Index2, Index3: Integer]: double read GetItems write SetItems;

Description

Fields

Private FCount: integer;

FCount: integer; FCount is the number of real numbers stored in T3DSparseRealArray.

Private FValues: array of double;

FValues: array of double; FValues is an array of real numbers stored in T3DSparseRealArray

Methods

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

See Items.

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

See Items.

Public procedure Clear; override;

Clear removes all the members of T3DSparseRealArray.

Public constructor Create(Quantum: TSPAQuantum);

Create creates an instance of T3DSparseRealArray.

Properties

Public property Items[const Index1, Index2, Index3: Integer]: double read GetItems write SetItems;

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


Generated by PasDoc 0.10.0 on 2006-10-31 09:56:47