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

A hashing functor for instances and pointers of var_decl. More...

#include <abg-ir.h>

Public Member Functions

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

Detailed Description

A hashing functor for instances and pointers of var_decl.

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

Member Function Documentation

◆ operator()() [1/2]

size_t operator() ( const var_decl t) const

Compute a hash for an instance var_decl.

Note that this function caches the hashing value the decl_base::hash_ data member of the input instance and re-uses it when it is already calculated.

Parameters
tthe instance of var_decl to compute the hash for.
Returns
the calculated hash value, or the one that was previously calculated.

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

◆ operator()() [2/2]

size_t operator() ( const var_decl t) const

Compute a hash for a pointer to var_decl.

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

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


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