Lines Matching refs:Set
16 Set* _set_new(const struct hash_ops *hash_ops HASHMAP_DEBUG_PARAMS);
19 static inline Set* set_free(Set *s) { in set_free()
20 return (Set*) _hashmap_free(HASHMAP_BASE(s), NULL, NULL); in set_free()
23 static inline Set* set_free_free(Set *s) { in set_free_free()
24 return (Set*) _hashmap_free(HASHMAP_BASE(s), free, NULL); in set_free_free()
29 #define set_copy(s) ((Set*) _hashmap_copy(HASHMAP_BASE(s) HASHMAP_DEBUG_SRC_ARGS))
31 int _set_ensure_allocated(Set **s, const struct hash_ops *hash_ops HASHMAP_DEBUG_PARAMS);
34 int set_put(Set *s, const void *key);
37 static inline void *set_get(const Set *s, const void *key) { in set_get()
38 return _hashmap_get(HASHMAP_BASE((Set *) s), key); in set_get()
42 static inline bool set_contains(const Set *s, const void *key) { in set_contains()
43 return _hashmap_contains(HASHMAP_BASE((Set *) s), key); in set_contains()
46 static inline void *set_remove(Set *s, const void *key) { in set_remove()
52 int set_remove_and_put(Set *s, const void *old_key, const void *new_key);
54 int set_merge(Set *s, Set *other);
56 static inline int set_reserve(Set *h, unsigned entries_add) { in set_reserve()
60 static inline int set_move(Set *s, Set *other) { in set_move()
64 static inline int set_move_one(Set *s, Set *other, const void *key) { in set_move_one()
68 static inline unsigned set_size(const Set *s) { in set_size()
69 return _hashmap_size(HASHMAP_BASE((Set *) s)); in set_size()
72 static inline bool set_isempty(const Set *s) { in set_isempty()
76 static inline unsigned set_buckets(const Set *s) { in set_buckets()
77 return _hashmap_buckets(HASHMAP_BASE((Set *) s)); in set_buckets()
80 static inline bool set_iterate(const Set *s, Iterator *i, void **value) { in set_iterate()
81 return _hashmap_iterate(HASHMAP_BASE((Set*) s), i, value, NULL); in set_iterate()
84 static inline void set_clear(Set *s) { in set_clear()
88 static inline void set_clear_free(Set *s) { in set_clear_free()
94 static inline void *set_steal_first(Set *s) { in set_steal_first()
100 Set *_s = (s); \
112 static inline void *set_first(const Set *s) { in set_first()
113 return _hashmap_first_key_and_value(HASHMAP_BASE((Set *) s), false, NULL); in set_first()
118 static inline char **set_get_strv(Set *s) { in set_get_strv()
122 int _set_ensure_put(Set **s, const struct hash_ops *hash_ops, const void *key HASHMAP_DEBUG_PARAMS…
125 int _set_ensure_consume(Set **s, const struct hash_ops *hash_ops, void *key HASHMAP_DEBUG_PARAMS);
128 int set_consume(Set *s, void *value);
130 int _set_put_strdup_full(Set **s, const struct hash_ops *hash_ops, const char *p HASHMAP_DEBUG_PAR…
133 int _set_put_strdupv_full(Set **s, const struct hash_ops *hash_ops, char **l HASHMAP_DEBUG_PARAMS);
137 int set_put_strsplit(Set *s, const char *v, const char *separators, ExtractFlags flags);
147 DEFINE_TRIVIAL_CLEANUP_FUNC(Set*, set_free);
148 DEFINE_TRIVIAL_CLEANUP_FUNC(Set*, set_free_free);
153 int set_strjoin(Set *s, const char *separator, bool wrap_with_separator, char **ret);
155 bool set_equal(Set *a, Set *b);
157 bool set_fnmatch(Set *include_patterns, Set *exclude_patterns, const char *needle);