mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-15 13:09:07 +02:00
* CLASSESINLINE -> FGLINLINE
* inlining enabled git-svn-id: trunk@35072 -
This commit is contained in:
parent
dbd7e74e9c
commit
55d9fea401
@ -15,9 +15,13 @@
|
|||||||
**********************************************************************}
|
**********************************************************************}
|
||||||
{$mode objfpc}
|
{$mode objfpc}
|
||||||
|
|
||||||
{.$define CLASSESINLINE}
|
{$define FGLINLINE}
|
||||||
|
|
||||||
{ be aware, this unit is a prototype and subject to be changed heavily }
|
{ be aware, this unit is a prototype and subject to be changed heavily }
|
||||||
|
{$ifdef FGLINLINE}
|
||||||
|
{$inline on}
|
||||||
|
{$endif FGLINLINE}
|
||||||
|
|
||||||
unit fgl;
|
unit fgl;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
@ -49,7 +53,7 @@ type
|
|||||||
procedure Deref(FromIndex, ToIndex: Integer); overload;
|
procedure Deref(FromIndex, ToIndex: Integer); overload;
|
||||||
function Get(Index: Integer): Pointer;
|
function Get(Index: Integer): Pointer;
|
||||||
procedure InternalExchange(Index1, Index2: Integer);
|
procedure InternalExchange(Index1, Index2: Integer);
|
||||||
function InternalGet(Index: Integer): Pointer; {$ifdef CLASSESINLINE} inline; {$endif}
|
function InternalGet(Index: Integer): Pointer; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
procedure InternalPut(Index: Integer; NewItem: Pointer);
|
procedure InternalPut(Index: Integer; NewItem: Pointer);
|
||||||
procedure Put(Index: Integer; Item: Pointer);
|
procedure Put(Index: Integer; Item: Pointer);
|
||||||
procedure QuickSort(L, R: Integer; Compare: TFPSListCompareFunc);
|
procedure QuickSort(L, R: Integer; Compare: TFPSListCompareFunc);
|
||||||
@ -119,29 +123,29 @@ type
|
|||||||
FOnCompare: TCompareFunc;
|
FOnCompare: TCompareFunc;
|
||||||
procedure CopyItem(Src, Dest: Pointer); override;
|
procedure CopyItem(Src, Dest: Pointer); override;
|
||||||
procedure Deref(Item: Pointer); override;
|
procedure Deref(Item: Pointer); override;
|
||||||
function Get(Index: Integer): T; {$ifdef CLASSESINLINE} inline; {$endif}
|
function Get(Index: Integer): T; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function GetList: PTypeList; {$ifdef CLASSESINLINE} inline; {$endif}
|
function GetList: PTypeList; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function ItemPtrCompare(Item1, Item2: Pointer): Integer;
|
function ItemPtrCompare(Item1, Item2: Pointer): Integer;
|
||||||
procedure Put(Index: Integer; const Item: T); {$ifdef CLASSESINLINE} inline; {$endif}
|
procedure Put(Index: Integer; const Item: T); {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function GetLast: T; {$ifdef CLASSESINLINE} inline; {$endif}
|
function GetLast: T; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
procedure SetLast(const Value: T); {$ifdef CLASSESINLINE} inline; {$endif}
|
procedure SetLast(const Value: T); {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function GetFirst: T; {$ifdef CLASSESINLINE} inline; {$endif}
|
function GetFirst: T; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
procedure SetFirst(const Value: T); {$ifdef CLASSESINLINE} inline; {$endif}
|
procedure SetFirst(const Value: T); {$ifdef FGLINLINE} inline; {$endif}
|
||||||
public
|
public
|
||||||
Type
|
Type
|
||||||
TFPGListEnumeratorSpec = specialize TFPGListEnumerator<T>;
|
TFPGListEnumeratorSpec = specialize TFPGListEnumerator<T>;
|
||||||
constructor Create;
|
constructor Create;
|
||||||
function Add(const Item: T): Integer; {$ifdef CLASSESINLINE} inline; {$endif}
|
function Add(const Item: T): Integer; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function Extract(const Item: T): T; {$ifdef CLASSESINLINE} inline; {$endif}
|
function Extract(const Item: T): T; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
property First: T read GetFirst write SetFirst;
|
property First: T read GetFirst write SetFirst;
|
||||||
function GetEnumerator: TFPGListEnumeratorSpec; {$ifdef CLASSESINLINE} inline; {$endif}
|
function GetEnumerator: TFPGListEnumeratorSpec; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function IndexOf(const Item: T): Integer;
|
function IndexOf(const Item: T): Integer;
|
||||||
procedure Insert(Index: Integer; const Item: T); {$ifdef CLASSESINLINE} inline; {$endif}
|
procedure Insert(Index: Integer; const Item: T); {$ifdef FGLINLINE} inline; {$endif}
|
||||||
property Last: T read GetLast write SetLast;
|
property Last: T read GetLast write SetLast;
|
||||||
{$ifndef VER2_4}
|
{$ifndef VER2_4}
|
||||||
procedure Assign(Source: TFPGList);
|
procedure Assign(Source: TFPGList);
|
||||||
{$endif VER2_4}
|
{$endif VER2_4}
|
||||||
function Remove(const Item: T): Integer; {$ifdef CLASSESINLINE} inline; {$endif}
|
function Remove(const Item: T): Integer; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
procedure Sort(Compare: TCompareFunc);
|
procedure Sort(Compare: TCompareFunc);
|
||||||
property Items[Index: Integer]: T read Get write Put; default;
|
property Items[Index: Integer]: T read Get write Put; default;
|
||||||
property List: PTypeList read GetList;
|
property List: PTypeList read GetList;
|
||||||
@ -160,27 +164,27 @@ type
|
|||||||
FFreeObjects: Boolean;
|
FFreeObjects: Boolean;
|
||||||
procedure CopyItem(Src, Dest: Pointer); override;
|
procedure CopyItem(Src, Dest: Pointer); override;
|
||||||
procedure Deref(Item: Pointer); override;
|
procedure Deref(Item: Pointer); override;
|
||||||
function Get(Index: Integer): T; {$ifdef CLASSESINLINE} inline; {$endif}
|
function Get(Index: Integer): T; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function GetList: PTypeList; {$ifdef CLASSESINLINE} inline; {$endif}
|
function GetList: PTypeList; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function ItemPtrCompare(Item1, Item2: Pointer): Integer;
|
function ItemPtrCompare(Item1, Item2: Pointer): Integer;
|
||||||
procedure Put(Index: Integer; const Item: T); {$ifdef CLASSESINLINE} inline; {$endif}
|
procedure Put(Index: Integer; const Item: T); {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function GetLast: T; {$ifdef CLASSESINLINE} inline; {$endif}
|
function GetLast: T; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
procedure SetLast(const Value: T); {$ifdef CLASSESINLINE} inline; {$endif}
|
procedure SetLast(const Value: T); {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function GetFirst: T; {$ifdef CLASSESINLINE} inline; {$endif}
|
function GetFirst: T; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
procedure SetFirst(const Value: T); {$ifdef CLASSESINLINE} inline; {$endif}
|
procedure SetFirst(const Value: T); {$ifdef FGLINLINE} inline; {$endif}
|
||||||
public
|
public
|
||||||
constructor Create(FreeObjects: Boolean = True);
|
constructor Create(FreeObjects: Boolean = True);
|
||||||
function Add(const Item: T): Integer; {$ifdef CLASSESINLINE} inline; {$endif}
|
function Add(const Item: T): Integer; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function Extract(const Item: T): T; {$ifdef CLASSESINLINE} inline; {$endif}
|
function Extract(const Item: T): T; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
property First: T read GetFirst write SetFirst;
|
property First: T read GetFirst write SetFirst;
|
||||||
function GetEnumerator: TFPGListEnumeratorSpec; {$ifdef CLASSESINLINE} inline; {$endif}
|
function GetEnumerator: TFPGListEnumeratorSpec; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function IndexOf(const Item: T): Integer;
|
function IndexOf(const Item: T): Integer;
|
||||||
procedure Insert(Index: Integer; const Item: T); {$ifdef CLASSESINLINE} inline; {$endif}
|
procedure Insert(Index: Integer; const Item: T); {$ifdef FGLINLINE} inline; {$endif}
|
||||||
property Last: T read GetLast write SetLast;
|
property Last: T read GetLast write SetLast;
|
||||||
{$ifndef VER2_4}
|
{$ifndef VER2_4}
|
||||||
procedure Assign(Source: TFPGObjectList);
|
procedure Assign(Source: TFPGObjectList);
|
||||||
{$endif VER2_4}
|
{$endif VER2_4}
|
||||||
function Remove(const Item: T): Integer; {$ifdef CLASSESINLINE} inline; {$endif}
|
function Remove(const Item: T): Integer; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
procedure Sort(Compare: TCompareFunc);
|
procedure Sort(Compare: TCompareFunc);
|
||||||
property Items[Index: Integer]: T read Get write Put; default;
|
property Items[Index: Integer]: T read Get write Put; default;
|
||||||
property List: PTypeList read GetList;
|
property List: PTypeList read GetList;
|
||||||
@ -199,27 +203,27 @@ type
|
|||||||
FOnCompare: TCompareFunc;
|
FOnCompare: TCompareFunc;
|
||||||
procedure CopyItem(Src, Dest: Pointer); override;
|
procedure CopyItem(Src, Dest: Pointer); override;
|
||||||
procedure Deref(Item: Pointer); override;
|
procedure Deref(Item: Pointer); override;
|
||||||
function Get(Index: Integer): T; {$ifdef CLASSESINLINE} inline; {$endif}
|
function Get(Index: Integer): T; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function GetList: PTypeList; {$ifdef CLASSESINLINE} inline; {$endif}
|
function GetList: PTypeList; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function ItemPtrCompare(Item1, Item2: Pointer): Integer;
|
function ItemPtrCompare(Item1, Item2: Pointer): Integer;
|
||||||
procedure Put(Index: Integer; const Item: T); {$ifdef CLASSESINLINE} inline; {$endif}
|
procedure Put(Index: Integer; const Item: T); {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function GetLast: T; {$ifdef CLASSESINLINE} inline; {$endif}
|
function GetLast: T; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
procedure SetLast(const Value: T); {$ifdef CLASSESINLINE} inline; {$endif}
|
procedure SetLast(const Value: T); {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function GetFirst: T; {$ifdef CLASSESINLINE} inline; {$endif}
|
function GetFirst: T; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
procedure SetFirst(const Value: T); {$ifdef CLASSESINLINE} inline; {$endif}
|
procedure SetFirst(const Value: T); {$ifdef FGLINLINE} inline; {$endif}
|
||||||
public
|
public
|
||||||
constructor Create;
|
constructor Create;
|
||||||
function Add(const Item: T): Integer; {$ifdef CLASSESINLINE} inline; {$endif}
|
function Add(const Item: T): Integer; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function Extract(const Item: T): T; {$ifdef CLASSESINLINE} inline; {$endif}
|
function Extract(const Item: T): T; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
property First: T read GetFirst write SetFirst;
|
property First: T read GetFirst write SetFirst;
|
||||||
function GetEnumerator: TFPGListEnumeratorSpec; {$ifdef CLASSESINLINE} inline; {$endif}
|
function GetEnumerator: TFPGListEnumeratorSpec; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function IndexOf(const Item: T): Integer;
|
function IndexOf(const Item: T): Integer;
|
||||||
procedure Insert(Index: Integer; const Item: T); {$ifdef CLASSESINLINE} inline; {$endif}
|
procedure Insert(Index: Integer; const Item: T); {$ifdef FGLINLINE} inline; {$endif}
|
||||||
property Last: T read GetLast write SetLast;
|
property Last: T read GetLast write SetLast;
|
||||||
{$ifndef VER2_4}
|
{$ifndef VER2_4}
|
||||||
procedure Assign(Source: TFPGInterfacedObjectList);
|
procedure Assign(Source: TFPGInterfacedObjectList);
|
||||||
{$endif VER2_4}
|
{$endif VER2_4}
|
||||||
function Remove(const Item: T): Integer; {$ifdef CLASSESINLINE} inline; {$endif}
|
function Remove(const Item: T): Integer; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
procedure Sort(Compare: TCompareFunc);
|
procedure Sort(Compare: TCompareFunc);
|
||||||
property Items[Index: Integer]: T read Get write Put; default;
|
property Items[Index: Integer]: T read Get write Put; default;
|
||||||
property List: PTypeList read GetList;
|
property List: PTypeList read GetList;
|
||||||
@ -290,26 +294,26 @@ type
|
|||||||
procedure CopyData(Src, Dest: Pointer); override;
|
procedure CopyData(Src, Dest: Pointer); override;
|
||||||
procedure Deref(Item: Pointer); override;
|
procedure Deref(Item: Pointer); override;
|
||||||
procedure InitOnPtrCompare; override;
|
procedure InitOnPtrCompare; override;
|
||||||
function GetKey(Index: Integer): TKey; {$ifdef CLASSESINLINE} inline; {$endif}
|
function GetKey(Index: Integer): TKey; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function GetKeyData(const AKey: TKey): TData; {$ifdef CLASSESINLINE} inline; {$endif}
|
function GetKeyData(const AKey: TKey): TData; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function GetData(Index: Integer): TData; {$ifdef CLASSESINLINE} inline; {$endif}
|
function GetData(Index: Integer): TData; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function KeyCompare(Key1, Key2: Pointer): Integer;
|
function KeyCompare(Key1, Key2: Pointer): Integer;
|
||||||
function KeyCustomCompare(Key1, Key2: Pointer): Integer;
|
function KeyCustomCompare(Key1, Key2: Pointer): Integer;
|
||||||
//function DataCompare(Data1, Data2: Pointer): Integer;
|
//function DataCompare(Data1, Data2: Pointer): Integer;
|
||||||
function DataCustomCompare(Data1, Data2: Pointer): Integer;
|
function DataCustomCompare(Data1, Data2: Pointer): Integer;
|
||||||
procedure PutKey(Index: Integer; const NewKey: TKey); {$ifdef CLASSESINLINE} inline; {$endif}
|
procedure PutKey(Index: Integer; const NewKey: TKey); {$ifdef FGLINLINE} inline; {$endif}
|
||||||
procedure PutKeyData(const AKey: TKey; const NewData: TData); {$ifdef CLASSESINLINE} inline; {$endif}
|
procedure PutKeyData(const AKey: TKey; const NewData: TData); {$ifdef FGLINLINE} inline; {$endif}
|
||||||
procedure PutData(Index: Integer; const NewData: TData); {$ifdef CLASSESINLINE} inline; {$endif}
|
procedure PutData(Index: Integer; const NewData: TData); {$ifdef FGLINLINE} inline; {$endif}
|
||||||
procedure SetOnKeyCompare(NewCompare: TKeyCompareFunc);
|
procedure SetOnKeyCompare(NewCompare: TKeyCompareFunc);
|
||||||
procedure SetOnDataCompare(NewCompare: TDataCompareFunc);
|
procedure SetOnDataCompare(NewCompare: TDataCompareFunc);
|
||||||
public
|
public
|
||||||
constructor Create;
|
constructor Create;
|
||||||
function Add(const AKey: TKey; const AData: TData): Integer; {$ifdef CLASSESINLINE} inline; {$endif}
|
function Add(const AKey: TKey; const AData: TData): Integer; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function Add(const AKey: TKey): Integer; {$ifdef CLASSESINLINE} inline; {$endif}
|
function Add(const AKey: TKey): Integer; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function Find(const AKey: TKey; out Index: Integer): Boolean; {$ifdef CLASSESINLINE} inline; {$endif}
|
function Find(const AKey: TKey; out Index: Integer): Boolean; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function TryGetData(const AKey: TKey; out AData: TData): Boolean; {$ifdef CLASSESINLINE} inline; {$endif}
|
function TryGetData(const AKey: TKey; out AData: TData): Boolean; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
procedure AddOrSetData(const AKey: TKey; const AData: TData); {$ifdef CLASSESINLINE} inline; {$endif}
|
procedure AddOrSetData(const AKey: TKey; const AData: TData); {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function IndexOf(const AKey: TKey): Integer; {$ifdef CLASSESINLINE} inline; {$endif}
|
function IndexOf(const AKey: TKey): Integer; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function IndexOfData(const AData: TData): Integer;
|
function IndexOfData(const AData: TData): Integer;
|
||||||
procedure InsertKey(Index: Integer; const AKey: TKey);
|
procedure InsertKey(Index: Integer; const AKey: TKey);
|
||||||
procedure InsertKeyData(Index: Integer; const AKey: TKey; const AData: TData);
|
procedure InsertKeyData(Index: Integer; const AKey: TKey; const AData: TData);
|
||||||
@ -338,27 +342,27 @@ type
|
|||||||
procedure CopyData(Src, Dest: Pointer); override;
|
procedure CopyData(Src, Dest: Pointer); override;
|
||||||
procedure Deref(Item: Pointer); override;
|
procedure Deref(Item: Pointer); override;
|
||||||
procedure InitOnPtrCompare; override;
|
procedure InitOnPtrCompare; override;
|
||||||
function GetKey(Index: Integer): TKey; {$ifdef CLASSESINLINE} inline; {$endif}
|
function GetKey(Index: Integer): TKey; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function GetKeyData(const AKey: TKey): TData; {$ifdef CLASSESINLINE} inline; {$endif}
|
function GetKeyData(const AKey: TKey): TData; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function GetData(Index: Integer): TData; {$ifdef CLASSESINLINE} inline; {$endif}
|
function GetData(Index: Integer): TData; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function KeyCompare(Key1, Key2: Pointer): Integer;
|
function KeyCompare(Key1, Key2: Pointer): Integer;
|
||||||
function KeyCustomCompare(Key1, Key2: Pointer): Integer;
|
function KeyCustomCompare(Key1, Key2: Pointer): Integer;
|
||||||
//function DataCompare(Data1, Data2: Pointer): Integer;
|
//function DataCompare(Data1, Data2: Pointer): Integer;
|
||||||
function DataCustomCompare(Data1, Data2: Pointer): Integer;
|
function DataCustomCompare(Data1, Data2: Pointer): Integer;
|
||||||
procedure PutKey(Index: Integer; const NewKey: TKey); {$ifdef CLASSESINLINE} inline; {$endif}
|
procedure PutKey(Index: Integer; const NewKey: TKey); {$ifdef FGLINLINE} inline; {$endif}
|
||||||
procedure PutKeyData(const AKey: TKey; const NewData: TData); {$ifdef CLASSESINLINE} inline; {$endif}
|
procedure PutKeyData(const AKey: TKey; const NewData: TData); {$ifdef FGLINLINE} inline; {$endif}
|
||||||
procedure PutData(Index: Integer; const NewData: TData); {$ifdef CLASSESINLINE} inline; {$endif}
|
procedure PutData(Index: Integer; const NewData: TData); {$ifdef FGLINLINE} inline; {$endif}
|
||||||
procedure SetOnKeyCompare(NewCompare: TKeyCompareFunc);
|
procedure SetOnKeyCompare(NewCompare: TKeyCompareFunc);
|
||||||
procedure SetOnDataCompare(NewCompare: TDataCompareFunc);
|
procedure SetOnDataCompare(NewCompare: TDataCompareFunc);
|
||||||
public
|
public
|
||||||
constructor Create(AFreeObjects: Boolean);
|
constructor Create(AFreeObjects: Boolean);
|
||||||
constructor Create;
|
constructor Create;
|
||||||
function Add(const AKey: TKey; const AData: TData): Integer; {$ifdef CLASSESINLINE} inline; {$endif}
|
function Add(const AKey: TKey; const AData: TData): Integer; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function Add(const AKey: TKey): Integer; {$ifdef CLASSESINLINE} inline; {$endif}
|
function Add(const AKey: TKey): Integer; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function Find(const AKey: TKey; out Index: Integer): Boolean; {$ifdef CLASSESINLINE} inline; {$endif}
|
function Find(const AKey: TKey; out Index: Integer): Boolean; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function TryGetData(const AKey: TKey; out AData: TData): Boolean; {$ifdef CLASSESINLINE} inline; {$endif}
|
function TryGetData(const AKey: TKey; out AData: TData): Boolean; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
procedure AddOrSetData(const AKey: TKey; const AData: TData); {$ifdef CLASSESINLINE} inline; {$endif}
|
procedure AddOrSetData(const AKey: TKey; const AData: TData); {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function IndexOf(const AKey: TKey): Integer; {$ifdef CLASSESINLINE} inline; {$endif}
|
function IndexOf(const AKey: TKey): Integer; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function IndexOfData(const AData: TData): Integer;
|
function IndexOfData(const AData: TData): Integer;
|
||||||
procedure InsertKey(Index: Integer; const AKey: TKey);
|
procedure InsertKey(Index: Integer; const AKey: TKey);
|
||||||
procedure InsertKeyData(Index: Integer; const AKey: TKey; const AData: TData);
|
procedure InsertKeyData(Index: Integer; const AKey: TKey; const AData: TData);
|
||||||
@ -386,26 +390,26 @@ type
|
|||||||
procedure CopyData(Src, Dest: Pointer); override;
|
procedure CopyData(Src, Dest: Pointer); override;
|
||||||
procedure Deref(Item: Pointer); override;
|
procedure Deref(Item: Pointer); override;
|
||||||
procedure InitOnPtrCompare; override;
|
procedure InitOnPtrCompare; override;
|
||||||
function GetKey(Index: Integer): TKey; {$ifdef CLASSESINLINE} inline; {$endif}
|
function GetKey(Index: Integer): TKey; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function GetKeyData(const AKey: TKey): TData; {$ifdef CLASSESINLINE} inline; {$endif}
|
function GetKeyData(const AKey: TKey): TData; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function GetData(Index: Integer): TData; {$ifdef CLASSESINLINE} inline; {$endif}
|
function GetData(Index: Integer): TData; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function KeyCompare(Key1, Key2: Pointer): Integer;
|
function KeyCompare(Key1, Key2: Pointer): Integer;
|
||||||
function KeyCustomCompare(Key1, Key2: Pointer): Integer;
|
function KeyCustomCompare(Key1, Key2: Pointer): Integer;
|
||||||
//function DataCompare(Data1, Data2: Pointer): Integer;
|
//function DataCompare(Data1, Data2: Pointer): Integer;
|
||||||
function DataCustomCompare(Data1, Data2: Pointer): Integer;
|
function DataCustomCompare(Data1, Data2: Pointer): Integer;
|
||||||
procedure PutKey(Index: Integer; const NewKey: TKey); {$ifdef CLASSESINLINE} inline; {$endif}
|
procedure PutKey(Index: Integer; const NewKey: TKey); {$ifdef FGLINLINE} inline; {$endif}
|
||||||
procedure PutKeyData(const AKey: TKey; const NewData: TData); {$ifdef CLASSESINLINE} inline; {$endif}
|
procedure PutKeyData(const AKey: TKey; const NewData: TData); {$ifdef FGLINLINE} inline; {$endif}
|
||||||
procedure PutData(Index: Integer; const NewData: TData); {$ifdef CLASSESINLINE} inline; {$endif}
|
procedure PutData(Index: Integer; const NewData: TData); {$ifdef FGLINLINE} inline; {$endif}
|
||||||
procedure SetOnKeyCompare(NewCompare: TKeyCompareFunc);
|
procedure SetOnKeyCompare(NewCompare: TKeyCompareFunc);
|
||||||
procedure SetOnDataCompare(NewCompare: TDataCompareFunc);
|
procedure SetOnDataCompare(NewCompare: TDataCompareFunc);
|
||||||
public
|
public
|
||||||
constructor Create;
|
constructor Create;
|
||||||
function Add(const AKey: TKey; const AData: TData): Integer; {$ifdef CLASSESINLINE} inline; {$endif}
|
function Add(const AKey: TKey; const AData: TData): Integer; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function Add(const AKey: TKey): Integer; {$ifdef CLASSESINLINE} inline; {$endif}
|
function Add(const AKey: TKey): Integer; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function Find(const AKey: TKey; out Index: Integer): Boolean; {$ifdef CLASSESINLINE} inline; {$endif}
|
function Find(const AKey: TKey; out Index: Integer): Boolean; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function TryGetData(const AKey: TKey; out AData: TData): Boolean; {$ifdef CLASSESINLINE} inline; {$endif}
|
function TryGetData(const AKey: TKey; out AData: TData): Boolean; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
procedure AddOrSetData(const AKey: TKey; const AData: TData); {$ifdef CLASSESINLINE} inline; {$endif}
|
procedure AddOrSetData(const AKey: TKey; const AData: TData); {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function IndexOf(const AKey: TKey): Integer; {$ifdef CLASSESINLINE} inline; {$endif}
|
function IndexOf(const AKey: TKey): Integer; {$ifdef FGLINLINE} inline; {$endif}
|
||||||
function IndexOfData(const AData: TData): Integer;
|
function IndexOfData(const AData: TData): Integer;
|
||||||
procedure InsertKey(Index: Integer; const AKey: TKey);
|
procedure InsertKey(Index: Integer; const AKey: TKey);
|
||||||
procedure InsertKeyData(Index: Integer; const AKey: TKey; const AData: TData);
|
procedure InsertKeyData(Index: Integer; const AKey: TKey; const AData: TData);
|
||||||
|
Loading…
Reference in New Issue
Block a user