diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-11-30 19:43:52 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-11-30 19:43:52 +0100 |
commit | 276101f032126d35770001f99135449d96b145e7 (patch) | |
tree | 4528b845989166a57685a9281cf88277e9ead036 /kernel/hashlib.h | |
parent | 0f9490212577314f144adc8432125c81ec7bad2b (diff) |
Re-added SigMap::allbits()
Diffstat (limited to 'kernel/hashlib.h')
-rw-r--r-- | kernel/hashlib.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/hashlib.h b/kernel/hashlib.h index 1f022e47..413e77d3 100644 --- a/kernel/hashlib.h +++ b/kernel/hashlib.h @@ -935,6 +935,8 @@ class mfp mutable std::vector<int> parents; public: + typedef typename idict<K, 0, OPS>::const_iterator const_iterator; + int operator()(const K &key) const { int i = database(key); @@ -1014,6 +1016,9 @@ public: size_t size() const { return database.size(); } bool empty() const { return database.empty(); } void clear() { database.clear(); parents.clear(); } + + const_iterator begin() const { return database.begin(); } + const_iterator end() const { return database.end(); } }; } /* namespace hashlib */ |