libabigail
|
Public Member Functions | |
size_t | operator() (const type_base *t) const |
A hashing function for type declarations. More... | |
size_t operator() | ( | const type_base * | t | ) | const |
A hashing function for type declarations.
This function gets the dynamic type of the actual type declaration and calls the right hashing function for that type.
Note that each time a new type declaration kind is added to the system, this function needs to be updated. For a given inheritance hierarchy, make sure to handle the most derived type first.
FIXME: This hashing function is not maintained and is surely broken in subtle ways. In pratice, the various *::hash functors should be audited before they are used here. They should all match what is done in the 'equals' functions in abg-ir.cc.
t | a pointer to the type declaration to be hashed |
Definition at line 988 of file abg-hash.cc.