System.Generics.Collections.TObjectHashSet.Create
Delphi
constructor Create(AOwnsObjects: Boolean; ACapacity: NativeInt = 0); overload;
constructor Create(AOwnsObjects: Boolean; const AComparer: IEqualityComparer<T>); overload;
constructor Create(AOwnsObjects: Boolean; ACapacity: NativeInt;
const AComparer: IEqualityComparer<T>); overload;
C++
__fastcall TObjectHashSet__1(bool AOwnsObjects, System::NativeInt ACapacity)/* overload */;
__fastcall TObjectHashSet__1(bool AOwnsObjects, const System::DelphiInterface<System::Generics::Defaults::IEqualityComparer__1<T> > AComparer)/* overload */;
__fastcall TObjectHashSet__1(bool AOwnsObjects, System::NativeInt ACapacity, const System::DelphiInterface<System::Generics::Defaults::IEqualityComparer__1<T> > AComparer)/* overload */;
/* {System_Generics_Collections}THashSet<System_Generics_Collections_TObjectHashSet<T>_T>.Create */ inline __fastcall TObjectHashSet__1()/* overload */ : THashSet__1<T>() { }
/* {System_Generics_Collections}THashSet<System_Generics_Collections_TObjectHashSet<T>_T>.Create */ inline __fastcall TObjectHashSet__1(System::NativeInt ACapacity)/* overload */ : THashSet__1<T>(ACapacity) { }
/* {System_Generics_Collections}THashSet<System_Generics_Collections_TObjectHashSet<T>_T>.Create */ inline __fastcall TObjectHashSet__1(const System::DelphiInterface<System::Generics::Defaults::IEqualityComparer__1<T> > AComparer)/* overload */ : THashSet__1<T>(AComparer) { }
/* {System_Generics_Collections}THashSet<System_Generics_Collections_TObjectHashSet<T>_T>.Create */ inline __fastcall TObjectHashSet__1(System::NativeInt ACapacity, const System::DelphiInterface<System::Generics::Defaults::IEqualityComparer__1<T> > AComparer)/* overload */ : THashSet__1<T>(ACapacity, AComparer) { }
/* {System_Generics_Collections}THashSet<System_Generics_Collections_TObjectHashSet<T>_T>.Create */ inline __fastcall TObjectHashSet__1(TEnumerable__1<T>* const Collection)/* overload */ : THashSet__1<T>(Collection) { }
/* {System_Generics_Collections}THashSet<System_Generics_Collections_TObjectHashSet<T>_T>.Create */ inline __fastcall TObjectHashSet__1(TEnumerable__1<T>* const Collection, const System::DelphiInterface<System::Generics::Defaults::IEqualityComparer__1<T> > AComparer)/* overload */ : THashSet__1<T>(Collection, AComparer) { }
/* {System_Generics_Collections}THashSet<System_Generics_Collections_TObjectHashSet<T>_T>.Create */ inline __fastcall TObjectHashSet__1(const T *AItems, const System::NativeInt AItems_High)/* overload */ : THashSet__1<T>(AItems, AItems_High) { }
/* {System_Generics_Collections}THashSet<System_Generics_Collections_TObjectHashSet<T>_T>.Create */ inline __fastcall TObjectHashSet__1(const T *AItems, const System::NativeInt AItems_High, const System::DelphiInterface<System::Generics::Defaults::IEqualityComparer__1<T> > AComparer)/* overload */ : THashSet__1<T>(AItems, AItems_High, AComparer) { }
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
constructor | public | System.Generics.Collections.pas System.Generics.Collections.hpp |
System.Generics.Collections | TObjectHashSet |
Description
Construit un objet et initialise ses données avant la première utilisation de l'objet.
System.Generics.Collections.TObjectHashSet.Create hérite de System.TObject.Create. Tout le contenu en-dessous de cette ligne se réfère à System.TObject.Create.
Construit un objet et initialise ses données avant la première utilisation de l'objet.
Create construit un objet. Le rôle, la taille et le comportement des objets varient beaucoup. Le constructeur Create défini par TObject alloue de la mémoire mais n'initialise pas les données.
Les objets descendants définissent généralement un constructeur qui crée le type particulier d'objet et initialise ses données.
Remarque : Si une exception provoque la sortie d'un constructeur, le destructeur de l'objet est appelé pour libérer l'instance partiellement créée.