libabigail
Public Member Functions | List of all members
function_decl::hash Struct Reference

A hashing functor fo instances and pointers of function_decl. More...

#include <abg-ir.h>

Public Member Functions

size_t operator() (const function_decl &t) const
 Compute a hash value for an instance of function_decl. More...
 
size_t operator() (const function_decl *t) const
 Compute a hash for a pointer to function_decl. More...
 

Detailed Description

A hashing functor fo instances and pointers of function_decl.

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

Member Function Documentation

◆ operator()() [1/2]

size_t operator() ( const function_decl t) const

Compute a hash value for an instance of function_decl.

Note that this function caches the resulting hash in the decl_base::hash_ data member of the instance of function_decl, and just returns if it is already calculated.

Parameters
tthe function to calculate the hash for.
Returns
the hash value.

Definition at line 396 of file abg-hash.cc.

◆ operator()() [2/2]

size_t operator() ( const function_decl t) const

Compute a hash for a pointer to function_decl.

Parameters
tthe pointer to function_decl to compute the hash for.
Returns
the calculated hash value

Definition at line 435 of file abg-hash.cc.


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