◆ function_call_resolvert
◆ get_virtual_calleest()
◆ get_child_functions_rec()
Used by get_functions to track the most-derived parent that provides an override of a given function.
- Parameters
-
| this_id | class name |
| last_method_defn | the most-derived parent of this_id to define the requested function |
| component_name | name of the function searched for |
[out] | functions | functions is assigned a list of {class name, function symbol} pairs indicating that if this is of the given class, then the call will target the given function. Thus if A <: B <: C and A and C provide overrides of f (but B does not), get_child_functions_rec("C", C.f, "f") -> [{"C", C.f}, {"B", C.f}, {"A", A.f}] |
| entry_map | map of class identifiers to dispatch table entries |
Definition at line 507 of file remove_virtual_functions.cpp.
◆ get_functions()
Used to get dispatch entries to call for the given function.
- Parameters
-
| function | function that should be called |
[out] | functions | is assigned a list of dispatch entries, i.e., pairs of class names and function symbol to call when encountering the class. |
Definition at line 569 of file remove_virtual_functions.cpp.
◆ get_method()
exprt get_virtual_calleest::get_method |
( |
const irep_idt & |
class_id, |
|
|
const irep_idt & |
component_name |
|
) |
| const |
|
private |
Returns symbol pointing to a specified method in a specified class.
- Parameters
-
class_id | Class identifier to look up |
component_name | Name of the function to look up |
- Returns
- nil_exprt instance on error and a symbol_exprt pointing to the method on success
Definition at line 641 of file remove_virtual_functions.cpp.
◆ class_hierarchy
◆ ns
◆ symbol_table
The documentation for this class was generated from the following file: