GCC Middle and Back End API Reference
string_slot_hasher Struct Reference

#include <lto-streamer.h>

Inheritance diagram for string_slot_hasher:
Collaboration diagram for string_slot_hasher:

Public Types

typedef string_slot value_type
typedef string_slot 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 (string_slot *p)

Detailed Description

   Hashtable helpers.  

Member Typedef Documentation


Member Function Documentation

bool string_slot_hasher::equal ( const value_type ds1,
const compare_type ds2 
)
inlinestatic
   Returns nonzero if DS1 and DS2 are equal.  
hashval_t string_slot_hasher::hash ( const value_type ds)
inlinestatic
   Returns a hash code for DS.  Adapted from libiberty's htab_hash_string
   to support strings that may not end in '\0'.  
static void typed_noop_remove< string_slot >::remove ( string_slot p)
inlinestaticinherited
   Remove doing nothing.  

Reimplemented in freeing_string_slot_hasher.


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