Home | History | Annotate | Download | only in depool

Lines Matching refs:hashSet

48  * HashSet*    HashSet_create            (deMemPool* pool);
49 * int HashSet_getNumElements (const HashSet* hashSet);
50 * Set<Value>* HashSet_find (const HashSet* hashSet, Key key); TODO: better API
51 * Hash<Set*>* HashSet_getHash (const HashSet* hashSet); TODO: better API
52 * deBool HashSet_insert (HashSet* hashSet, Key key, Value value);
53 * void HashSet_delete (HashSet* hashSet, Key key, Value value);
54 * deBool HashSet_exists (const HashSet* hashSet, Key key, Value value);
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_FUNCTION; \
70 DE_INLINE deBool TYPENAME##_safeInsert (TYPENAME* hashSet, KEYTYPE key, VALUETYPE value) DE_UNUSED_FUNCTION; \
71 DE_INLINE TYPENAME##Set* TYPENAME##_find (const TYPENAME* hashSet, KEYTYPE key) DE_UNUSED_FUNCTION; \
72 DE_INLINE void TYPENAME##_delete (TYPENAME* hashSet, KEYTYPE key, VALUETYPE value) DE_UNUSED_FUNCTION; \
73 DE_INLINE deBool TYPENAME##_exists (const TYPENAME* hashSet, KEYTYPE key, VALUETYPE value) DE_UNUSED_FUNCTION; \
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); \