Description | Hierarchy | Fields | Methods | Properties |
type TIntegerList = class(TObject)
TIntegerList
acts much like TList except that it stores integers rather than pointers.
FList: TList; |
|
FSorted: boolean; |
function GetCapacity: integer; |
|
function GetCount: integer; |
|
function GetItem(Index: integer): integer; |
|
procedure SetCapacity(ACapacity: Integer); |
|
procedure SetItem(Index: integer; const AnInteger: integer); |
|
procedure SetSorted(AValue: boolean); |
|
procedure FindClosestPositionInSortedList(AnInteger: Integer; var Top, Bottom: Integer); |
|
procedure Assign(Source: TIntegerList); |
|
function Add(const AnInteger: integer): integer; |
|
procedure AddUnique(const AnInteger: integer); |
|
procedure Clear; |
|
constructor Create; |
|
procedure Delete(Index: Integer); |
|
destructor Destroy; override; |
|
class procedure Error(const Msg: string; Data: Integer); virtual; |
|
procedure Exchange(Index1, Index2: Integer); |
|
function First: Integer; |
|
function IndexOf(AnInteger: integer): integer; |
|
procedure Insert(Index: Integer; AnInteger: integer); |
|
function Last: integer; |
|
function MaxValue: integer; |
|
function MinValue: integer; |
|
procedure Move(CurIndex, NewIndex: Integer); |
|
function Nearest(const TestValue: integer): integer; |
|
procedure Sort; |
property Capacity: integer read GetCapacity write SetCapacity; |
|
property Count: integer read GetCount; |
|
property Items[Index:integer]: integer read GetItem write SetItem; |
|
property Sorted: boolean read FSorted write SetSorted; |
FList: TList; |
|
|
FSorted: boolean; |
|
|
function GetCapacity: integer; |
|
See Capacity. |
function GetCount: integer; |
|
See Count. |
function GetItem(Index: integer): integer; |
|
See Items. |
procedure SetCapacity(ACapacity: Integer); |
|
See Capacity. |
procedure SetItem(Index: integer; const AnInteger: integer); |
|
See Items. |
procedure SetSorted(AValue: boolean); |
|
See Sorted. |
procedure FindClosestPositionInSortedList(AnInteger: Integer; var Top, Bottom: Integer); |
|
procedure Assign(Source: TIntegerList); |
|
function Add(const AnInteger: integer): integer; |
|
|
procedure AddUnique(const AnInteger: integer); |
|
|
procedure Clear; |
|
|
constructor Create; |
|
|
procedure Delete(Index: Integer); |
|
|
destructor Destroy; override; |
|
|
class procedure Error(const Msg: string; Data: Integer); virtual; |
|
|
procedure Exchange(Index1, Index2: Integer); |
|
|
function First: Integer; |
|
|
function IndexOf(AnInteger: integer): integer; |
|
|
procedure Insert(Index: Integer; AnInteger: integer); |
|
|
function Last: integer; |
|
|
function MaxValue: integer; |
|
|
function MinValue: integer; |
|
|
procedure Move(CurIndex, NewIndex: Integer); |
|
|
function Nearest(const TestValue: integer): integer; |
|
|
procedure Sort; |
|
|
property Capacity: integer read GetCapacity write SetCapacity; |
|
|
property Count: integer read GetCount; |
|
|
property Items[Index:integer]: integer read GetItem write SetItem; |
|
|
property Sorted: boolean read FSorted write SetSorted; |
|
|