34template<
typename KeyId,
bool Lazy =
false,
39 typedef typename Traits::value_type
Key;
59 bool existed = !Traits::is_empty (*e);
65 && !Traits::is_deleted (*e));
79 return !Traits::is_empty (e);
90 template<
typename Arg,
bool (*f)(const
typename Traits::value_type &, Arg)>
146 template<
typename T,
typename U>
148 template<
typename T,
typename U>
150 template<
typename T,
typename U>
171 it != ref.
end (); ++it)
174 fputc (
'\n', stderr);
178#define DEFINE_DEBUG_HASH_SET(T) \
179 template void debug_helper (hash_set<T> &); \
180 DEBUG_FUNCTION void \
181 debug (hash_set<T> &ref) \
183 debug_helper <T> (ref); \
185 DEBUG_FUNCTION void \
186 debug (hash_set<T> *ptr) \
191 fprintf (stderr, "<nil>\n"); \
196template<
typename K,
typename H>
203template<
typename K,
typename H>
210template<
typename K,
typename H>
static void debug_slim(edge e)
Definition cfg.cc:584
Definition hash-set.h:110
bool operator!=(const iterator &other) const
Definition hash-set.h:129
iterator & operator++()
Definition hash-set.h:116
iterator(const typename hash_table< Traits, Lazy >::iterator &iter)
Definition hash-set.h:112
hash_table< Traits, Lazy >::iterator m_iter
Definition hash-set.h:135
Key operator*()
Definition hash-set.h:123
void traverse(Arg a) const
Definition hash-set.h:91
iterator begin() const
Definition hash-set.h:140
iterator end() const
Definition hash-set.h:141
bool contains(const Key &k)
Definition hash-set.h:73
Traits::value_type Key
Definition hash-set.h:39
hash_table< Traits, Lazy > m_table
Definition hash-set.h:153
friend void gt_ggc_mx(hash_set< T, false, U > *)
hash_set(size_t n=13, bool ggc=false CXX_MEM_STAT_INFO)
Definition hash-set.h:40
bool add(const Key &k)
Definition hash-set.h:56
bool is_empty() const
Definition hash-set.h:107
static hash_set * create_ggc(size_t n)
Definition hash-set.h:46
void remove(const Key &k)
Definition hash-set.h:82
void empty()
Definition hash-set.h:104
friend void gt_pch_nx(hash_set< T, false, U > *, gt_pointer_operator, void *)
friend void gt_pch_nx(hash_set< T, false, U > *)
size_t elements() const
Definition hash-set.h:100
Definition hash-table.h:474
Definition hash-table.h:375
void remove_elt_with_hash(const compare_type &, hashval_t)
Definition hash-table.h:1133
void empty()
Definition hash-table.h:412
value_type & find_with_hash(const compare_type &, hashval_t)
Definition hash-table.h:981
value_type * find_slot_with_hash(const compare_type &comparable, hashval_t hash, enum insert_option insert)
Definition hash-table.h:1029
iterator end() const
Definition hash-table.h:504
bool is_empty() const
Definition hash-table.h:415
iterator begin() const
Definition hash-table.h:494
size_t elements() const
Definition hash-table.h:406
value_type * m_entries
Definition hash-table.h:597
void(* gt_pointer_operator)(void *, void *, void *)
Definition coretypes.h:473
T * ggc_alloc(ALONE_CXX_MEM_STAT_INFO)
Definition ggc.h:184
void gt_ggc_mx(hash_set< K, false, H > *h)
Definition hash-set.h:198
void gt_pch_nx(hash_set< K, false, H > *h)
Definition hash-set.h:205
void debug_helper(hash_set< T > &ref)
Definition hash-set.h:168
@ HASH_SET_ORIGIN
Definition mem-stats-traits.h:29
Ca & a
Definition poly-int.h:770
#define PASS_MEM_STAT
Definition statistics.h:54
#define CXX_MEM_STAT_INFO
Definition statistics.h:58
Definition hash-traits.h:466
#define NULL
Definition system.h:50
#define true
Definition system.h:887
#define gcc_checking_assert(EXPR)
Definition system.h:821