Class T3DSparseStringArray

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type T3DSparseStringArray = class(T3DSparsePointerArray)

Description

T3DSparseStringArray acts like a 3D array of strings. 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 string;

Methods

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

Properties

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

Description

Fields

Private FCount: NativeInt;

FCount is the number of strings stored in T3DSparseStringArray.

Private FValues: array of string;

FValues is an array of strings stored in T3DSparseStringArray

Methods

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

See Items.

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

See Items.

Public procedure Clear; override;

Clear removes all the members of T3DSparseStringArray.

Public constructor Create(Quantum: TSPAQuantum);

Create creates an instance of T3DSparseStringArray.

Properties

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

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


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