Class T3DSparseBooleanArray

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type T3DSparseBooleanArray = class(T3DSparsePointerArray)

Description

T3DSparseBooleanArray acts like a 3D array of booleans. 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 FFalse: boolean;
Private FTrue: boolean;

Methods

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

Properties

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

Description

Fields

Private FFalse: boolean;

The address of FFalse is stored to indicate a value that is False.

Private FTrue: boolean;

The address of FTrue is stored to indicate a value that is True.

Methods

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

See Items.

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

See Items.

Public constructor Create(Quantum: TSPAQuantum);

Create creates an instance of T3DSparseBooleanArray.

Properties

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

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


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