表示: DelphiC++
表示設定

System.Generics.Defaults.TSingletonImplementation

出典: XE2 API Documentation

System.TObject
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 は、自分への参照がすべて失われたときにも破棄されないシングルトン オブジェクトを作成する必要がある場合に特に役立ちます。

関連項目

以前のバージョン
他の言語