GCC Middle and Back End API Reference
stats_counter_hasher Struct Reference

Public Types

typedef statistics_counter_t value_type
typedef statistics_counter_t compare_type

Static Public Member Functions

static hashval_t hash (const value_type *)
static bool equal (const value_type *, const compare_type *)
static void remove (value_type *)

Detailed Description

   Hashtable helpers.  

Member Typedef Documentation


Member Function Documentation

bool stats_counter_hasher::equal ( const value_type c1,
const compare_type c2 
)
inlinestatic
   Compare two statistic counters by their string IDs.  

References free(), and statistics_counter_s::id.

hashval_t stats_counter_hasher::hash ( const value_type c)
inlinestatic
   Hash a statistic counter by its string ID.  

References statistics_counter_s::id, and statistics_counter_s::val.

void stats_counter_hasher::remove ( value_type v)
inlinestatic
   Free a statistics entry.  

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