TMapBasedVisitor

TVisitor that indexes function addresses in a map

Inheritance

LevelAncestorDescription
1TObjectUltimate ancestor in a class hierarchy
2TVisitor Base class for the implementation of the Visitor pattern.
3TMapBasedVisitor

Source

Visitor.MapBased.pas (28)

Description

TVisitor can be slow as determining the function address for a function with a specified identifier can be slow. The class solves this problem by building an index of function addresses at program start up. This approach also has the advantage of being able to detect non-existing functions at program startaup before the visitor is actually used.

Methods

ScopeVisibilityResultNameDescription
TypeprotectedTList<TClass>GetClasses()
TypeprotectedTMap<TClass,TPointer>ConstructMethodAddressMap(Prefix: TText; Suffix: TText)
TypepublicRegisterClasses()
TypepublicUnregisterClasses()