Class TIntListList

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TIntListList = class(TObject)

Description

TIntListList is a list of TIntegerLists.

TIntListList does not own the TIntegerLists.

Hierarchy

Overview

Fields

Private FList: TList;

Methods

Private function GetCapacity: integer;
Private function GetCount: integer;
Private function GetItem(Index: integer): TIntegerList;
Private procedure SetCapacity(ACapacity: Integer);
Private procedure SetItem(Index: integer; const AnIntList: TIntegerList);
Public procedure Add(const AnIntList: TIntegerList);
Public procedure Clear;
Public constructor Create;
Public destructor Destroy; override;
Public function IndexOf(AnIntList: TIntegerList): integer;

Properties

Public property Capacity: integer read GetCapacity write SetCapacity;
Public property Count: integer read GetCount;
Public property Items[Index:integer]: TIntegerList read GetItem write SetItem;

Description

Fields

Private FList: TList;

FList is an internal TList that holds the TIntegerLists.

Methods

Private function GetCapacity: integer;

See Capacity.

Private function GetCount: integer;

See Count.

Private function GetItem(Index: integer): TIntegerList;

See Items.

Private procedure SetCapacity(ACapacity: Integer);

See Capacity.

Private procedure SetItem(Index: integer; const AnIntList: TIntegerList);

See Items.

Public procedure Add(const AnIntList: TIntegerList);

Add adds a TIntegerList to the TIntListList.

Public procedure Clear;

Clear removes all TIntegerLists from TIntListList.

Public constructor Create;

Create creates an instance of TIntListList.

Public destructor Destroy; override;

Destroy destroys the current instance of TIntListList. Do not call Destroy directly. Call Free instead.

Public function IndexOf(AnIntList: TIntegerList): integer;

IndexOf returns the position of AnIntList in TIntListList. If AnIntList is not in TIntListList, IndexOf returns -1.

Properties

Public property Capacity: integer read GetCapacity write SetCapacity;

Capacity is the number of TIntegerLists the TIntListList can hold without reallocating memory.

Public property Count: integer read GetCount;

Count is the number of TIntegerLists in TIntListList.

Public property Items[Index:integer]: TIntegerList read GetItem write SetItem;

Items provides access to the TIntegerLists stored in TIntListList.


Generated by PasDoc 0.12.1 on 2013-05-13 15:41:43