Lines Matching defs:hb_map_t
45 struct hb_map_t struct
48 hb_map_t () { init (); } in hb_map_t() function
49 ~hb_map_t () { fini (); } in ~hb_map_t() argument
51 struct item_t
60 hb_object_header_t header;
61 bool successful; /* Allocations successful */
62 unsigned int population; /* Not including tombstones. */
63 unsigned int occupancy; /* Including tombstones. */
64 unsigned int mask;
65 unsigned int prime;
66 item_t *items;
68 void init_shallow () in init_shallow()
76 void init () in init()
81 void fini_shallow () in fini_shallow()
86 void fini () in fini()
93 bool in_error () const { return !successful; } in in_error()
95 bool resize () in resize()
129 void set (hb_codepoint_t key, hb_codepoint_t value) in set()
154 hb_codepoint_t get (hb_codepoint_t key) const in get()
161 void del (hb_codepoint_t key) { set (key, INVALID); } in del()
163 bool has (hb_codepoint_t key) const in has()
166 hb_codepoint_t operator [] (unsigned int key) const in operator []()
169 enum { INVALID = HB_MAP_VALUE_INVALID };
171 void clear () in clear()
177 bool is_empty () const { return population == 0; } in is_empty()
179 unsigned int get_population () const { return population; } in get_population()
183 unsigned int bucket_for (hb_codepoint_t key) const in bucket_for()
199 static unsigned int prime_for (unsigned int shift) in prime_for()