• Home
  • Raw
  • Download

Lines Matching refs:impl

32   HashMapImpl* impl;  in HashMapCreate_Internal()  local
37 impl = NEW(HashMapImpl, MTAG); in HashMapCreate_Internal()
38 if (impl == NULL) in HashMapCreate_Internal()
41 if ((rc = PHashTableCreate(hashArgs, MTAG, &impl->table)) != ESR_SUCCESS) in HashMapCreate_Internal()
43 FREE(impl); in HashMapCreate_Internal()
47 impl->Interface.put = &HashMap_Put; in HashMapCreate_Internal()
48 impl->Interface.remove = &HashMap_Remove; in HashMapCreate_Internal()
49 impl->Interface.removeAndFree = &HashMap_RemoveAndFree; in HashMapCreate_Internal()
50 impl->Interface.removeAll = &HashMap_RemoveAll; in HashMapCreate_Internal()
51 impl->Interface.removeAndFreeAll = &HashMap_RemoveAndFreeAll; in HashMapCreate_Internal()
52 impl->Interface.removeAtIndex = &HashMap_RemoveAtIndex; in HashMapCreate_Internal()
53 impl->Interface.containsKey = &HashMap_ContainsKey; in HashMapCreate_Internal()
54 impl->Interface.getKeyAtIndex = &HashMap_GetKeyAtIndex; in HashMapCreate_Internal()
55 impl->Interface.get = &HashMap_Get; in HashMapCreate_Internal()
56 impl->Interface.getValueAtIndex = &HashMap_GetValueAtIndex; in HashMapCreate_Internal()
57 impl->Interface.getSize = &HashMap_GetSize; in HashMapCreate_Internal()
58 impl->Interface.destroy = &HashMap_Destroy; in HashMapCreate_Internal()
60 *self = (HashMap*) impl; in HashMapCreate_Internal()
81 HashMapImpl* impl = (HashMapImpl*) self; in HashMap_Put() local
86 CHKLOG(rc, PHashTableContainsKey(impl->table, key, &exists)); in HashMap_Put()
93 if ((rc = PHashTablePutValue(impl->table, clone, value, NULL)) != ESR_SUCCESS) in HashMap_Put()
101 CHKLOG(rc, PHashTableGetEntry(impl->table, key, &entry)); in HashMap_Put()
109 static ESR_ReturnCode HashMap_Remove_Internal(HashMapImpl* impl, const LCHAR* key, ESR_BOOL freeVal… in HashMap_Remove_Internal() argument
116 CHK(rc, PHashTableGetEntry(impl->table, key, &entry)); in HashMap_Remove_Internal()
139 static ESR_ReturnCode HashMap_RemoveAll_Internal(HashMapImpl *impl, ESR_BOOL freeValues) in HashMap_RemoveAll_Internal() argument
148 if ((rc = PHashTableEntryGetFirst(impl->table, &entry1)) != ESR_SUCCESS) in HashMap_RemoveAll_Internal()
179 HashMapImpl* impl = (HashMapImpl*) self; in HashMap_ContainsKey() local
182 CHKLOG(rc, PHashTableContainsKey(impl->table, key, exists)); in HashMap_ContainsKey()
190 HashMapImpl* impl = (HashMapImpl*) self; in HashMap_Get() local
194 CHK(rc, PHashTableGetEntry(impl->table, key, &entry)); in HashMap_Get()
201 static ESR_ReturnCode HashMap_GetEntryAtIndex(HashMapImpl *impl, const size_t index, in HashMap_GetEntryAtIndex() argument
207 if ((rc = PHashTableEntryGetFirst(impl->table, entry)) != ESR_SUCCESS) in HashMap_GetEntryAtIndex()
225 HashMapImpl* impl = (HashMapImpl*) self; in HashMap_GetKeyAtIndex() local
229 if ((rc = HashMap_GetEntryAtIndex(impl, index, &entry)) != ESR_SUCCESS) in HashMap_GetKeyAtIndex()
240 HashMapImpl* impl = (HashMapImpl*) self; in HashMap_GetValueAtIndex() local
244 if ((rc = HashMap_GetEntryAtIndex(impl, index, &entry)) != ESR_SUCCESS) in HashMap_GetValueAtIndex()
255 HashMapImpl* impl = (HashMapImpl*) self; in HashMap_RemoveAtIndex() local
260 if ((rc = HashMap_GetEntryAtIndex(impl, index, &entry)) != ESR_SUCCESS) in HashMap_RemoveAtIndex()
276 HashMapImpl* impl = (HashMapImpl*) self; in HashMap_GetSize() local
277 return PHashTableGetSize(impl->table, size); in HashMap_GetSize()
282 HashMapImpl* impl = (HashMapImpl*) self; in HashMap_Destroy() local
288 if (impl->table != NULL) in HashMap_Destroy()
289 rc = PHashTableDestroy(impl->table); in HashMap_Destroy()
290 FREE(impl); in HashMap_Destroy()