[Overview][Classes][Index] Reference for unit 'IntegerList' (#lazutils)

TInt64List

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Implements a specialization of TFPGList for Int64 data types.

Declaration

Source position: integerlist.pas line 45

type TInt64List = class()

public

  procedure Sort; overload;

  

Sorts the Int64 values stored in the list.

end;

Inheritance

TInt64List

  

Implements a specialization of TFPGList for Int64 data types.

|

?

TObject

Description

TInt64List provides an overloaded Sort method to ensure that values in the list are handled using a compare function that operates on Int64 values. Internally, it provides a TFPGListEnumerator which is specialized for the Int64 type used in the implementation.

TIntegerList provides an overloaded Sort method to ensure that values in the list are handled using a compare function that operates on Int64 values. Internally, it provides a TFPGListEnumerator which is specialized for the Int64 type used in the implementation.

Use the properties and methods defined in the ancestor class to perform common operations for Integer values, including:

Items is the default property, and allows access to values by ordinal position or by using an enumerator to traverse the Int64 values in List.

Example:

// using TInt64List properties and methods
// var
//    AInt64List: TInt64List;
//    AIndex, ACount: Integer;
//    AMax, AValue: Int64;
AInt64List := TInt64List.Create;
ACount := 25;
AMax := High(Int64);

for AIndex := 1 to ACount do
  AInt64List.Add(Random(AMax));

AInt64List.Insert(4, 42);
AInt64List.Sort;
ACount := AInt64List.Count;
AIndex := AInt64List.IndexOf(AInt64List.Last);
AValue := AInt64List.Last;
AInt64List.Last := AValue - 1;
AValue := AInt64List.Extract(AInt64List.First);
AIndex := AInt64List.Remove(42);
AInt64List.Clear;
AInt64List.Free;

See also

TByteList

  

Implements a specialization of TFPGList for the Byte data type.

TWordList

  

Implements a specialization of TFPGList for the Word data type.

TCardinalList

  

Implements a specialization of TFPGList for Cardinal data types.

TIntegerList

  

Implements a specialization of TFPGList for Integer data types.

TInt64List.Sort

  

Sorts the Int64 values stored in the list.

TFPGList.Sort

TFPGList

TFPGListEnumerator


Version 4.0 Generated 2025-05-03 Home