GCC Middle and Back End API Reference
free_string_hash Struct Reference

#include <hash-traits.h>

Inheritance diagram for free_string_hash:
Collaboration diagram for free_string_hash:

Public Types

typedef const charvalue_type
 
typedef const charcompare_type
 

Static Public Member Functions

static hashval_t hash (const char *)
 
static hashval_t hash (const value_type &)
 
static bool equal (const char *, const char *)
 
static bool equal (const value_type &existing, const compare_type &candidate)
 
static void mark_deleted (const char *&)
 
static void mark_empty (const char *&)
 
static bool is_deleted (const char *)
 
static bool is_empty (const char *)
 
static void remove (const char *p)
 

Static Public Attributes

static const bool empty_zero_p
 

Detailed Description

Traits for string elements that should be freed when an element is
deleted.   

Member Typedef Documentation

◆ compare_type

typedef const char * pointer_hash< const char >::compare_type
inherited

◆ value_type

typedef const char * pointer_hash< const char >::value_type
inherited

Member Function Documentation

◆ equal() [1/2]

bool string_hash::equal ( const char * id1,
const char * id2 )
inlinestaticinherited

References ggc_alloc().

◆ equal() [2/2]

bool pointer_hash< const char >::equal ( const value_type & existing,
const compare_type & candidate )
inlinestaticinherited

◆ hash() [1/2]

hashval_t string_hash::hash ( const char * id)
inlinestaticinherited

References ggc_alloc().

◆ hash() [2/2]

hashval_t pointer_hash< const char >::hash ( const value_type & candidate)
inlinestaticinherited

◆ is_deleted()

bool pointer_hash< const char >::is_deleted ( const char * e)
inlinestaticinherited

◆ is_empty()

bool pointer_hash< const char >::is_empty ( const char * e)
inlinestaticinherited

◆ mark_deleted()

void pointer_hash< const char >::mark_deleted ( const char *& e)
inlinestaticinherited

◆ mark_empty()

void pointer_hash< const char >::mark_empty ( const char *& e)
inlinestaticinherited

◆ remove()

void typed_const_free_remove< char >::remove ( const char * p)
inlinestaticinherited

Field Documentation

◆ empty_zero_p

const bool pointer_hash< const char >::empty_zero_p
staticinherited

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