Class TSpecialImplementorList

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TSpecialImplementorList = class(TObject)

Description

TSpecialImplementorList is the type of TRbwParser.SpecialImplementorList. It is used together with TSpecialImplementor to create a descendant of TExpression in TExpression.New.

Hierarchy

Overview

Fields

Private FList: TList;

Methods

Private function GetCount: integer;
Private function GetItems(const Index: integer): TSpecialImplementor;
Private procedure SetItems(const Index: integer; const Value: TSpecialImplementor);
Private function GetCapacity: integer;
Private procedure SetCapacity(const Value: integer);
Public constructor Create;
Public destructor Destroy; override;
Public function Add(const Item: TSpecialImplementor): Integer;
Public procedure Clear;
Public procedure Delete(const Index: Integer);
Public function Remove(const Item: TSpecialImplementor): Integer;

Properties

Public property Count: integer read GetCount;
Public property Capacity: integer read GetCapacity write SetCapacity;
Public property Items[constIndex:integer]: TSpecialImplementor read GetItems write SetItems;

Description

Fields

Private FList: TList;

FList: TList; is used to store TSpecialImplementors.

Methods

Private function GetCount: integer;

See Count.

Private function GetItems(const Index: integer): TSpecialImplementor;

See Items.

Private procedure SetItems(const Index: integer; const Value: TSpecialImplementor);

See Items.

Private function GetCapacity: integer;

See Capacity.

Private procedure SetCapacity(const Value: integer);

See Capacity.

Public constructor Create;

Create creates an instance of TSpecialImplementorList.

Public destructor Destroy; override;

Destroy destroys a TSpecialImplementorList. Do not call Destroy. Call Free instead.

Public function Add(const Item: TSpecialImplementor): Integer;

Add adds a TSpecialImplementor to Items. The items that are added are not owned by the TSpecialImplementorList.

Public procedure Clear;

Clear removes everything from Items and sets the Count and Capacity to 0.

Public procedure Delete(const Index: Integer);

Delete removes the TSpecialImplementor at position Index from Items;

Public function Remove(const Item: TSpecialImplementor): Integer;

Remove removes the TSpecialImplementor indicated by Item from Items and returns its former position. If it was not in Items it returns -1.

Properties

Public property Count: integer read GetCount;

Count is the number of TSpecialImplementors in the TSpecialImplementorList.

Public property Capacity: integer read GetCapacity write SetCapacity;

Capacity is the number of TSpecialImplementors that the TSpecialImplementorList can hold without reallocating memory.

Setting Capacity to a value high enough to hold all the TSpecialImplementors that it will hold before Adding them, can speed up Adding the TSpecialImplementors.

Public property Items[constIndex:integer]: TSpecialImplementor read GetItems write SetItems;

Items provides access to the TSpecialImplementors held by the TSpecialImplementorList.


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