Class T3DSparseIntegerArray

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type T3DSparseIntegerArray = class(T3DSparsePointerArray)

Description

T3DSparseIntegerArray acts like a 3D array of integers. 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 NativeInt;

Methods

Private function GetItems(const Layer, Row, Col: NativeInt): NativeInt;
Private procedure SetItems(const Layer, Row, Col: NativeInt; const Value: NativeInt);
Public procedure Clear; override;
Public constructor Create(Quantum: TSPAQuantum);

Properties

Public property Items[constLayer,Row,Col:NativeInt]: NativeInt read GetItems write SetItems;

Description

Fields

Private FCount: NativeInt;

FCount is the number of integers stored in T3DSparseIntegerArray.

Private FValues: array of NativeInt;

FValues is an array of integers stored in T3DSparseIntegerArray

Methods

Private function GetItems(const Layer, Row, Col: NativeInt): NativeInt;

See Items.

Private procedure SetItems(const Layer, Row, Col: NativeInt; const Value: NativeInt);

See Items.

Public procedure Clear; override;

Clear removes all the members of T3DSparseIntegerArray.

Public constructor Create(Quantum: TSPAQuantum);

Create creates an instance of T3DSparseIntegerArray.

Properties

Public property Items[constLayer,Row,Col:NativeInt]: NativeInt read GetItems write SetItems;

Items provides access to the NativeInt 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.12.1 on 2013-05-13 15:42:04