System.Generics.Collections.TObjectDictionary.Create

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

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

C++

__fastcall TObjectDictionary__2(TDictionaryOwnerships Ownerships, int ACapacity)/* overload */;
__fastcall TObjectDictionary__2(TDictionaryOwnerships Ownerships, const System::DelphiInterface<System::Generics::Defaults::IEqualityComparer__1<TKey> > AComparer)/* overload */;
__fastcall TObjectDictionary__2(TDictionaryOwnerships Ownerships, int ACapacity, const System::DelphiInterface<System::Generics::Defaults::IEqualityComparer__1<TKey> > AComparer)/* overload */;
/* {System_Generics_Collections}TDictionary<System_Generics_Collections_TObjectDictionary<TKey,TValue>_TKey,System_Generics_Collections_TObjectDictionary<TKey,TValue>_TValue>.Create */ inline __fastcall TObjectDictionary__2(int ACapacity)/* overload */ : TDictionary__2<TKey,TValue>(ACapacity) { }
/* {System_Generics_Collections}TDictionary<System_Generics_Collections_TObjectDictionary<TKey,TValue>_TKey,System_Generics_Collections_TObjectDictionary<TKey,TValue>_TValue>.Create */ inline __fastcall TObjectDictionary__2(const System::DelphiInterface<System::Generics::Defaults::IEqualityComparer__1<TKey> > AComparer)/* overload */ : TDictionary__2<TKey,TValue>(AComparer) { }
/* {System_Generics_Collections}TDictionary<System_Generics_Collections_TObjectDictionary<TKey,TValue>_TKey,System_Generics_Collections_TObjectDictionary<TKey,TValue>_TValue>.Create */ inline __fastcall TObjectDictionary__2(int ACapacity, const System::DelphiInterface<System::Generics::Defaults::IEqualityComparer__1<TKey> > AComparer)/* overload */ : TDictionary__2<TKey,TValue>(ACapacity, AComparer) { }
/* {System_Generics_Collections}TDictionary<System_Generics_Collections_TObjectDictionary<TKey,TValue>_TKey,System_Generics_Collections_TObjectDictionary<TKey,TValue>_TValue>.Create */ inline __fastcall TObjectDictionary__2(TEnumerable__1<TPair__2<TKey,TValue> >* const Collection)/* overload */ : TDictionary__2<TKey,TValue>(Collection) { }
/* {System_Generics_Collections}TDictionary<System_Generics_Collections_TObjectDictionary<TKey,TValue>_TKey,System_Generics_Collections_TObjectDictionary<TKey,TValue>_TValue>.Create */ inline __fastcall TObjectDictionary__2(TEnumerable__1<TPair__2<TKey,TValue> >* const Collection, const System::DelphiInterface<System::Generics::Defaults::IEqualityComparer__1<TKey> > AComparer)/* overload */ : TDictionary__2<TKey,TValue>(Collection, AComparer) { }

プロパティ

種類 可視性 ソース ユニット
constructor public
System.Generics.Collections.pas
System.Generics.Collections.hpp
System.Generics.Collections TObjectDictionary

説明

TObjectDictionary インスタンスを作成します。

このオーバーロードされたメソッドは、TObjectDictionary インスタンスを作成します。

Ownerships パラメータは、エントリのキーと値(または、そのいずれか)がディクショナリに所有されているかどうかを示す TDictionaryOwnerships です。ディクショナリは、キー、値、またはその両方を所有するか、またはどちらも所有しない場合があります。オブジェクトが所有されている場合、エントリがディクショナリから削除されると、キーと値(または、そのいずれか)が開放されます。

ACapacity は、ディクショナリの初期の容量です。

AComparer は、等値比較関数です。この関数が提供されない場合、その型のデフォルトの比較関数が使用されます。

関連項目