Lines Matching refs:d

53         double d;  member
89 dict *d; member
103 #define dictFreeVal(d, entry) \ argument
104 if ((d)->type->valDestructor) \
105 (d)->type->valDestructor((d)->privdata, (entry)->v.val)
107 #define dictSetVal(d, entry, _val_) do { \ argument
108 if ((d)->type->valDup) \
109 entry->v.val = (d)->type->valDup((d)->privdata, _val_); \
121 do { entry->v.d = _val_; } while(0)
123 #define dictFreeKey(d, entry) \ argument
124 if ((d)->type->keyDestructor) \
125 (d)->type->keyDestructor((d)->privdata, (entry)->key)
127 #define dictSetKey(d, entry, _key_) do { \ argument
128 if ((d)->type->keyDup) \
129 entry->key = (d)->type->keyDup((d)->privdata, _key_); \
134 #define dictCompareKeys(d, key1, key2) \ argument
135 (((d)->type->keyCompare) ? \
136 (d)->type->keyCompare((d)->privdata, key1, key2) : \
139 #define dictHashKey(d, key) (d)->type->hashFunction(key) argument
144 #define dictGetDoubleVal(he) ((he)->v.d)
145 #define dictSlots(d) ((d)->ht[0].size+(d)->ht[1].size) argument
146 #define dictSize(d) ((d)->ht[0].used+(d)->ht[1].used) argument
147 #define dictIsRehashing(d) ((d)->rehashidx != -1) argument
151 int dictExpand(dict *d, unsigned long size);
152 int dictAdd(dict *d, void *key, void *val);
153 dictEntry *dictAddRaw(dict *d, void *key);
154 int dictReplace(dict *d, void *key, void *val);
155 dictEntry *dictReplaceRaw(dict *d, void *key);
156 int dictDelete(dict *d, const void *key);
157 int dictDeleteNoFree(dict *d, const void *key);
158 void dictRelease(dict *d);
159 dictEntry * dictFind(dict *d, const void *key);
160 void *dictFetchValue(dict *d, const void *key);
161 int dictResize(dict *d);
162 dictIterator *dictGetIterator(dict *d);
163 dictIterator *dictGetSafeIterator(dict *d);
166 dictEntry *dictGetRandomKey(dict *d);
167 unsigned int dictGetSomeKeys(dict *d, dictEntry **des, unsigned int count);
168 void dictGetStats(char *buf, size_t bufsize, dict *d);
171 void dictEmpty(dict *d, void(callback)(void*));
174 int dictRehash(dict *d, int n);
175 int dictRehashMilliseconds(dict *d, int ms);
178 unsigned long dictScan(dict *d, unsigned long v, dictScanFunction *fn, void *privdata);