[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'System' (#rtl)

TInterfacedObject

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TObject descendent implementing the IUnknown interface

Declaration

Source position: objpash.inc line 274

type TInterfacedObject = class(TObject, IUnknown)

protected

  frefcount: LongInt;

  function QueryInterface();

  function _AddRef;

  function _Release;

public

  procedure AfterConstruction; override;

  

Handle reference count properly.

  procedure BeforeDestruction; override;

  

Check reference count.

public

  class function NewInstance; override;

  

Create a new instance

public

  property RefCount: LongInt; [r]

  

Return the current reference count

end;

Inheritance

TInterfacedObject,IUnknown

  

TObject descendent implementing the IUnknown interface

|

TObject

  

Base class of all classes.

Description

TInterfacedObject is a descendent of TObject which implements the IUnknown interface. It can be used as a base class for all classes which need reference counting.

See also

IUnknown

  

Basic interface for all COM-based interfaces

TObject

  

Base class of all classes.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.