Public Member Functions | List of all members
type_base::dynamic_hash Struct Reference

Public Member Functions

size_t operator() (const type_base *t) const
 A hashing function for type declarations. More...

Detailed Description

Definition at line 4721 of file abg-ir.h.

Member Function Documentation

◆ operator()()

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

ta pointer to the type declaration to be hashed
the resulting hash

Definition at line 988 of file

The documentation for this struct was generated from the following files: