System.Generics.Collections.TObjectDictionary.Create

From RAD Studio API Documentation
Jump to: navigation, search

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()/* overload */ : TDictionary__2<TKey,TValue>() { }
/* {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) { }

Properties

Type Visibility Source Unit Parent
constructor public
System.Generics.Collections.pas
System.Generics.Collections.hpp
System.Generics.Collections TObjectDictionary

Description

Create TObjectDictionary instance.

This overloaded method creates a TObjectDictionary instance.

The Ownerships parameter is a TDictionaryOwnerships that indicates whether the keys and/or values in entries are owned by the dictionary. Either the key or value or both or neither may be owned by the dictionary. If the object is owned, when the entry is removed from the dictionary, the key and/or value is freed.

ACapacity is the initial capacity of the dictionary.

AComparer is an equality comparator function. If not provided, the default comparator for the type is used.

See Also