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) { }
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
constructor | public | System.Generics.Collections.pas System.Generics.Collections.hpp |
System.Generics.Collections | TObjectHashSet |
説明
オブジェクトを作成し,そのオブジェクトが最初に使用される前にデータを初期化します。
System.Generics.Collections.TObjectHashSet.Create は System.TObject.Create を継承しています。以下の内容はすべて System.TObject.Create を参照しています。
オブジェクトを作成し,そのオブジェクトが最初に使用される前にデータを初期化します。
Create はオブジェクトを構築します。オブジェクトの目的,サイズ,および動作はそれぞれ大きく異なります。TObject で定義されている Create コンストラクタは,メモリの割り当ては行いますがデータの初期化は行いません。
下位オブジェクトは通常,指定のオブジェクトを作成し,そのデータを初期化するコンストラクタを定義します。
メモ: コンストラクタが発生した例外を処理しない場合,オブジェクトのデストラクタが呼び出されて失敗したインスタンスを破棄します。