System.Generics.Defaults.TSingletonImplementation

Delphi
TSingletonImplementation = class(TObject, IInterface)
C++
class PASCALIMPLEMENTATION TSingletonImplementation : public System::TObject
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
class | public | System.Generics.Defaults.pas System.Generics.Defaults.hpp |
System.Generics.Defaults | System.Generics.Defaults |
説明
TSingletonImplementation は、IInterface の基本実装が必要で参照カウントが無効なシンプルなクラスの基底クラスです。
TSingletonImplementation は、インターフェイスをサポートする Delphi クラスのスレッドセーフな基底クラスです。TInterfacedObject とは異なり、TSingletonImplementation では参照カウントを実装していません。
TSingletonImplementation は、自分への参照がすべて失われたときにも破棄されないシングルトン オブジェクトを作成する必要がある場合に特に役立ちます。