GCC Middle and Back End API Reference
ggc_ptr_hash< T > Struct Template Reference

#include <hash-traits.h>

Inheritance diagram for ggc_ptr_hash< T >:
Collaboration diagram for ggc_ptr_hash< T >:

Public Types

typedef Tvalue_type
typedef Tcompare_type

Static Public Member Functions

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

Static Public Attributes

static const bool empty_zero_p

Detailed Description

template<typename T>
struct ggc_ptr_hash< T >
Traits for elements that point to gc memory. The pointed-to data must be kept across collections.

Member Typedef Documentation

◆ compare_type

typedef T* pointer_hash< T >::compare_type
inherited

◆ value_type

typedef T* pointer_hash< T >::value_type
inherited

Member Function Documentation

◆ equal()

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

◆ ggc_maybe_mx()

void ggc_remove< T >::ggc_maybe_mx ( T & p)
inlinestaticinherited

◆ ggc_mx()

void ggc_remove< T >::ggc_mx ( T & p)
inlinestaticinherited

◆ hash()

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

◆ is_deleted()

bool pointer_hash< T >::is_deleted ( T * e)
inlinestaticinherited

◆ is_empty()

bool pointer_hash< T >::is_empty ( T * e)
inlinestaticinherited

◆ mark_deleted()

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

◆ mark_empty()

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

◆ pch_nx()

void ggc_remove< T >::pch_nx ( T & p)
inlinestaticinherited

◆ remove()

void ggc_remove< T >::remove ( T & )
inlinestaticinherited

Field Documentation

◆ empty_zero_p

const bool pointer_hash< T >::empty_zero_p
staticinherited

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