Commit Graph

15 Commits

Author SHA1 Message Date
1971813336 BAN: Add HashMap::remove(iterator) 2024-02-28 22:35:42 +02:00
3c88d2aad3 BAN: Implement find() for HashMap 2024-02-28 13:20:24 +02:00
40e341b0ee BAN: Remove unstable hash map and set
These can now be implemented safely with new linked list api
2024-02-06 17:35:15 +02:00
dfe5a2d665 All: Cleanup all files
Add newline to end of files and remove whitespace from end of lines
2024-01-24 15:53:38 +02:00
b833239a82 BAN: Make hashmap work with non-copy constructable values 2023-12-24 13:38:47 +02:00
bacc0db778 BAN: Fix unstable hash map rebucket 2023-12-23 16:31:42 +02:00
3963afe343 BAN: Add unstable version of hash map
This version differs only when doing rebucket. If rebucket fails,
the whole hash map is invalidated. This allows rebucketing to use
moving instead of copying.
2023-12-19 22:23:28 +02:00
9eab6710ce BAN: Implement ConstIteratorDouble and add it to HashMap
This is same as IteratorDouble except it uses const_iterator and does
not return non-const references.
2023-07-12 11:41:05 +03:00
65424a6769 BAN: Generalize HashMapIterator to IteratorDouble
This iterator should be able to iterate any container within container
with type iterator defined.

This also fixed bug if first entry in outer container is empty container.
2023-07-12 09:29:05 +03:00
f88b9ae4f2 BAN: Add iterators to HashMap 2023-07-10 23:16:41 +03:00
52aa98ba25 Kernel+LibC: Add some errno codes
Kernel now returns ENOMEM and other errnos, so we dont have to write
error messages
2023-03-02 21:10:44 +02:00
f98f3d851c BAN: HashMap uses LinkedList as bucket, so kmalloc_fixed can be used 2023-02-22 21:46:41 +02:00
4afc4660a4 BAN: Basic containers have shrink_to_fit() method
I also chaged the default memory allocation increase from 1.5 to 2
2023-02-22 02:07:05 +02:00
afd4b7a184 BAN: HashMap now copies size when copying :D 2023-02-22 01:16:07 +02:00
fbc17eb6dd BAN: Implement basic HashMap 2023-02-20 16:00:51 +02:00