Class TSortedList

Unit

Declaration

type TSortedList<T> = class(TList<T>)

Description

No description available, ancestor TList description follows
No description available, ancestor TCustomListWithPointers description follows
No description available, ancestor TCustomList description follows

More info: http://stackoverflow.com/questions/5232198/about-vectors-growth TODO: custom memory managers (as constraints) ˜approximation to golden ratio: n = n * 1.5 } {$DEFINE CUSTOM_LIST_CAPACITY_INC := Result * 2} // standard inc

Hierarchy

Overview

Fields

Private FDuplicates: TDuplicates;
Private FSortStyle: TCollectionSortStyle;

Methods

Private function GetSorted: boolean;
Private procedure SetSorted(AValue: boolean);
Private procedure SetSortStyle(AValue: TCollectionSortStyle);
Protected procedure InitializeList; override;
Public function Add(constref AValue: T): SizeInt; override; overload;
Public procedure AddRange(constref AValues: array of T); override; overload;
Public procedure Insert(AIndex: SizeInt; constref AValue: T); override;
Public procedure Exchange(AIndex1, AIndex2: SizeInt); override;
Public procedure Move(AIndex, ANewIndex: SizeInt); override;
Public procedure InsertRange(AIndex: SizeInt; constref AValues: array of T); override; overload;
Public function ConsistencyCheck(ARaiseException: boolean = true): boolean; virtual;

Properties

Public property Duplicates: TDuplicates read FDuplicates write FDuplicates;
Public property Sorted: Boolean read GetSorted write SetSorted;
Public property SortStyle: TCollectionSortStyle read FSortStyle write SetSortStyle;

Description

Fields

Private FDuplicates: TDuplicates;
 
Private FSortStyle: TCollectionSortStyle;
 

Methods

Private function GetSorted: boolean;
 
Private procedure SetSorted(AValue: boolean);
 
Private procedure SetSortStyle(AValue: TCollectionSortStyle);
 
Protected procedure InitializeList; override;
 
Public function Add(constref AValue: T): SizeInt; override; overload;
 
Public procedure AddRange(constref AValues: array of T); override; overload;
 
Public procedure Insert(AIndex: SizeInt; constref AValue: T); override;
 
Public procedure Exchange(AIndex1, AIndex2: SizeInt); override;
 
Public procedure Move(AIndex, ANewIndex: SizeInt); override;
 
Public procedure InsertRange(AIndex: SizeInt; constref AValues: array of T); override; overload;
 
Public function ConsistencyCheck(ARaiseException: boolean = true): boolean; virtual;
 

Properties

Public property Duplicates: TDuplicates read FDuplicates write FDuplicates;
 
Public property Sorted: Boolean read GetSorted write SetSorted;
 
Public property SortStyle: TCollectionSortStyle read FSortStyle write SetSortStyle;
 

Generated by PasDoc 0.15.0.