TMapBasedVisitor
TVisitor
that indexes function addresses in a mapInheritance
Level | Ancestor | Description |
---|---|---|
1 | TObject | Ultimate ancestor in a class hierarchy |
2 | TVisitor | Base class for the implementation of the Visitor pattern. |
3 | TMapBasedVisitor |
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
Scope | Visibility | Result | Name | Description |
---|---|---|---|---|
Type | protected | TList<TClass> | GetClasses() | |
Type | protected | TMap<TClass,TPointer> | ConstructMethodAddressMap(Prefix: TText; Suffix: TText) | |
Type | public | RegisterClasses() | ||
Type | public | UnregisterClasses() |