System.Generics.Collections.TObjectDictionary.Create

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

Delphi

constructor Create(Ownerships: TDictionaryOwnerships; ACapacity: Integer = 0); overload;
constructor Create(Ownerships: TDictionaryOwnerships;
const AComparer: IEqualityComparer<K>); overload;
constructor Create(Ownerships: TDictionaryOwnerships; ACapacity: Integer;
const AComparer: IEqualityComparer<K>); overload;

C++

__fastcall TObjectDictionary__2(TDictionaryOwnerships Ownerships, int ACapacity)/* overload */;
__fastcall TObjectDictionary__2(TDictionaryOwnerships Ownerships, const System::DelphiInterface<System::Generics::Defaults::IEqualityComparer__1<K> > AComparer)/* overload */;
__fastcall TObjectDictionary__2(TDictionaryOwnerships Ownerships, int ACapacity, const System::DelphiInterface<System::Generics::Defaults::IEqualityComparer__1<K> > AComparer)/* overload */;
/* {System_Generics_Collections}TDictionary<System_Generics_Collections_TObjectDictionary<K,V>_K,System_Generics_Collections_TObjectDictionary<K,V>_V>.Create */ inline __fastcall TObjectDictionary__2()/* overload */ : TDictionary__2<K,V>() { }
/* {System_Generics_Collections}TDictionary<System_Generics_Collections_TObjectDictionary<K,V>_K,System_Generics_Collections_TObjectDictionary<K,V>_V>.Create */ inline __fastcall TObjectDictionary__2(int ACapacity)/* overload */ : TDictionary__2<K,V>(ACapacity) { }
/* {System_Generics_Collections}TDictionary<System_Generics_Collections_TObjectDictionary<K,V>_K,System_Generics_Collections_TObjectDictionary<K,V>_V>.Create */ inline __fastcall TObjectDictionary__2(const System::DelphiInterface<System::Generics::Defaults::IEqualityComparer__1<K> > AComparer)/* overload */ : TDictionary__2<K,V>(AComparer) { }
/* {System_Generics_Collections}TDictionary<System_Generics_Collections_TObjectDictionary<K,V>_K,System_Generics_Collections_TObjectDictionary<K,V>_V>.Create */ inline __fastcall TObjectDictionary__2(int ACapacity, const System::DelphiInterface<System::Generics::Defaults::IEqualityComparer__1<K> > AComparer)/* overload */ : TDictionary__2<K,V>(ACapacity, AComparer) { }
/* {System_Generics_Collections}TDictionary<System_Generics_Collections_TObjectDictionary<K,V>_K,System_Generics_Collections_TObjectDictionary<K,V>_V>.Create */ inline __fastcall TObjectDictionary__2(TEnumerable__1<TPair__2<K,V> >* const Collection)/* overload */ : TDictionary__2<K,V>(Collection) { }
/* {System_Generics_Collections}TDictionary<System_Generics_Collections_TObjectDictionary<K,V>_K,System_Generics_Collections_TObjectDictionary<K,V>_V>.Create */ inline __fastcall TObjectDictionary__2(TEnumerable__1<TPair__2<K,V> >* const Collection, const System::DelphiInterface<System::Generics::Defaults::IEqualityComparer__1<K> > AComparer)/* overload */ : TDictionary__2<K,V>(Collection, AComparer) { }
/* {System_Generics_Collections}TDictionary<System_Generics_Collections_TObjectDictionary<K,V>_K,System_Generics_Collections_TObjectDictionary<K,V>_V>.Create */ inline __fastcall TObjectDictionary__2(const TPair__2<K,V> *AItems, const int AItems_High)/* overload */ : TDictionary__2<K,V>(AItems, AItems_High) { }
/* {System_Generics_Collections}TDictionary<System_Generics_Collections_TObjectDictionary<K,V>_K,System_Generics_Collections_TObjectDictionary<K,V>_V>.Create */ inline __fastcall TObjectDictionary__2(const TPair__2<K,V> *AItems, const int AItems_High, const System::DelphiInterface<System::Generics::Defaults::IEqualityComparer__1<K> > AComparer)/* overload */ : TDictionary__2<K,V>(AItems, AItems_High, AComparer) { }

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
constructor public
System.Generics.Collections.pas
System.Generics.Collections.hpp
System.Generics.Collections TObjectDictionary

Beschreibung

Erzeugt eine TObjectDictionary-Instanz.

Diese überladene Methode erstellt eine TObjectDictionary-Instanz.

Der Parameter Ownerships ist ein TDictionaryOwnerships-Typ, der angibt, ob das Dictionary Eigentümer der Schlüssel und/oder Werte in Einträgen ist. Das Dictionary kann entweder Eigentümer des Schlüssels, des Wertes, von beidem oder von keinem sein. Wenn das Dictionary zum Zeitpunkt des Entfernens des Objekts dessen Eigentümer ist, wird der Schlüssel und/oder der Wert freigegeben.

ACapacity ist die Anfangskapazität des Dictionary.

AComparer ist eine Funktion zum Prüfen auf Gleichheit. Wird sie nicht bereitgestellt, wird die Standardvergleichsfunktion für den Typ verwendet.

Siehe auch