aboutsummaryrefslogtreecommitdiff
path: root/src/set/ibf.h
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2013-10-29 17:41:49 +0000
committerFlorian Dold <florian.dold@gmail.com>2013-10-29 17:41:49 +0000
commit3c8f930edb077352ea48fa018a0e80fee0af339d (patch)
tree6395fa9ec45a462a187fd12fde440987507f23ee /src/set/ibf.h
parentf418b3098f441436af78c103a03cd8109f7cc00c (diff)
downloadgnunet-3c8f930edb077352ea48fa018a0e80fee0af339d.tar.gz
gnunet-3c8f930edb077352ea48fa018a0e80fee0af339d.zip
- some of the missing set union functionality implemented
Diffstat (limited to 'src/set/ibf.h')
-rw-r--r--src/set/ibf.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/set/ibf.h b/src/set/ibf.h
index 1099f6aa2..407d14f64 100644
--- a/src/set/ibf.h
+++ b/src/set/ibf.h
@@ -158,7 +158,7 @@ ibf_create (uint32_t size, uint8_t hash_num);
158 158
159 159
160/** 160/**
161 * Insert an element into an IBF. 161 * Insert a key into an IBF.
162 * 162 *
163 * @param ibf the IBF 163 * @param ibf the IBF
164 * @param key the element's hash code 164 * @param key the element's hash code
@@ -168,6 +168,16 @@ ibf_insert (struct InvertibleBloomFilter *ibf, struct IBF_Key key);
168 168
169 169
170/** 170/**
171 * Remove a key from an IBF.
172 *
173 * @param ibf the IBF
174 * @param key the element's hash code
175 */
176void
177ibf_remove (struct InvertibleBloomFilter *ibf, struct IBF_Key key);
178
179
180/**
171 * Subtract ibf2 from ibf1, storing the result in ibf1. 181 * Subtract ibf2 from ibf1, storing the result in ibf1.
172 * The two IBF's must have the same parameters size and hash_num. 182 * The two IBF's must have the same parameters size and hash_num.
173 * 183 *