System.Generics.Collections.TObjectDictionary.Create
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) { }
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
constructor | public | System.Generics.Collections.pas System.Generics.Collections.hpp |
System.Generics.Collections | TObjectDictionary |
説明
TObjectDictionary インスタンスを作成します。
このオーバーロードされたメソッドは、TObjectDictionary インスタンスを作成します。
Ownerships パラメータは、エントリのキーと値(または、そのいずれか)がディクショナリに所有されているかどうかを示す TDictionaryOwnerships です。ディクショナリは、キー、値、またはその両方を所有するか、またはどちらも所有しない場合があります。オブジェクトが所有されている場合、エントリがディクショナリから削除されると、キーと値(または、そのいずれか)が開放されます。
ACapacity は、ディクショナリの初期の容量です。
AComparer は、等値比較関数です。この関数が提供されない場合、その型のデフォルトの比較関数が使用されます。