Lines Matching refs:hashSet
67 DE_INLINE int TYPENAME##_getNumElements (const TYPENAME* hashSet) DE_UNUSED_FUNCTION; \
68 DE_INLINE TYPENAME##Hash* TYPENAME##_getHash (const TYPENAME* hashSet) DE_UNUSED_FUNCTION;…
69 DE_INLINE deBool TYPENAME##_insert (TYPENAME* hashSet, KEYTYPE key, VALUETYPE value) DE_UNUSED…
70 DE_INLINE deBool TYPENAME##_safeInsert (TYPENAME* hashSet, KEYTYPE key, VALUETYPE value) DE_UNU…
71 DE_INLINE TYPENAME##Set* TYPENAME##_find (const TYPENAME* hashSet, KEYTYPE key) DE_UNUSED_FU…
72 DE_INLINE void TYPENAME##_delete (TYPENAME* hashSet, KEYTYPE key, VALUETYPE value) DE_UNUSED_…
73 DE_INLINE deBool TYPENAME##_exists (const TYPENAME* hashSet, KEYTYPE key, VALUETYPE value) DE_U…
77 TYPENAME* hashSet = DE_POOL_NEW(pool, TYPENAME); \
78 if (!hashSet) return DE_NULL; \
79 if ((hashSet->hash = TYPENAME##Hash_create(pool)) == DE_NULL) \
81 return hashSet; \
84 DE_INLINE int TYPENAME##_getNumElements (const TYPENAME* hashSet) \
86 return TYPENAME##Hash_getNumElements(hashSet->hash); \
89 DE_INLINE TYPENAME##Hash* TYPENAME##_getHash (const TYPENAME* hashSet) \
91 return hashSet->hash; \
94 DE_INLINE deBool TYPENAME##_insert (TYPENAME* hashSet, KEYTYPE key, VALUETYPE value) \
96 TYPENAME##Set** setPtr = TYPENAME##Hash_find(hashSet->hash, key); \
100 set = TYPENAME##Set_create(hashSet->hash->pool); \
103 return TYPENAME##Hash_insert(hashSet->hash, key, set); \
111 DE_INLINE deBool TYPENAME##_safeInsert (TYPENAME* hashSet, KEYTYPE key, VALUETYPE value) \
113 TYPENAME##Set** setPtr = TYPENAME##Hash_find(hashSet->hash, key); \
117 return TYPENAME##_insert(hashSet, key, value); \
125 DE_INLINE TYPENAME##Set* TYPENAME##_find (const TYPENAME* hashSet, KEYTYPE key) \
127 TYPENAME##Set** setPtr = TYPENAME##Hash_find(hashSet->hash, key); \
131 DE_INLINE void TYPENAME##_delete (TYPENAME* hashSet, KEYTYPE key, VALUETYPE value) \
133 TYPENAME##Set** setPtr = TYPENAME##Hash_find(hashSet->hash, key); \
140 DE_INLINE deBool TYPENAME##_exists (const TYPENAME* hashSet, KEYTYPE key, VALUETYPE value) \
142 TYPENAME##Set** setPtr = TYPENAME##Hash_find(hashSet->hash, key); \