System.Rtti.TDispatchKind

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TDispatchKind = (dkStatic, dkVtable, dkDynamic, dkMessage, dkInterface);

C++

enum DECLSPEC_DENUM TDispatchKind : unsigned char { dkStatic, dkVtable, dkDynamic, dkMessage, dkInterface };

Properties

Type Visibility Source Unit Parent
enum public
System.Rtti.pas
System.Rtti.hpp
System.Rtti System.Rtti

Description

Enumerates the possible method dispatch options.

TDispatchKind is an enumeration type that lists all the dispatch kinds that are possible in Delphi. A dispatch kind is used when a method must be invoked and represents the way the actual call is made. The values of TDispatchKind and their meanings are listed in the following table.



Value Meaning

dkStatic

Identifies a static method with direct call address.

dkVtable

Identifies a class or a class instance method that is called indirectly, through a VMT slot.

dkDynamic

Identifies a class instance method that is called indirectly, through a DMT slot.

dkMessage

Identifies a class instance method that is called indirectly, using a message ID.

dkInterface

Identifies an interface method that is called using interface dispatch tables.



See Also