Huge changes to bidimap and added callbacks to it
Callbacks lost their 'on_' prefix Bidimap was simply not working properly. Many of its functions have been reworked: - _update_key_by_val is now _update_key - _update_val_by_key is now _update_val - Removed _update_key and _update_val because they just weren't what a bidimap really is about
This commit is contained in:
1 parent
0089abc84a
commit
4e96d3aba0
6 files changed
+484
-443
No files matched your search
@@ -136,11 +136,11 @@ Every collection can have an optional callback node. In this node there are five
|
||||
|
||||
| | |
|
||||
|-|-|
|
||||
| `on_create` | Is called when an element is about to be added to the collection |
|
||||
| `on_read` | Is called when the collection is about to be queried about an element |
|
||||
| `on_update` | Is called when an element in the collection is about to be updated |
|
||||
| `on_delete` | Is called when an element is about to be removed from the collection |
|
||||
| `on_resize` | Is called when the collection is full and is about to get resized |
|
||||
| `create` | Is called when an element was successfully added to the collection |
|
||||
| `read` | Is called when the collection was successfully queried about an element |
|
||||
| `update` | Is called when an element in the collection was successfully updated |
|
||||
| `delete` | Is called when an element was successfully removed from the collection |
|
||||
| `resize` | Is called when the collection was full and successfully resized |
|
||||
|
||||
Check the documentation for each collection to see which functions call which callbacks.
|
||||
|
||||
|
||||
Reference in new issue
Block a user