-
Piotr Maślanka authored5524ae8a
structures.rst 7.34 KiB
Structures
You can also use the following singleton.
SetZip
PushIterable
SyncableDroppable
SparseMatrix
Heaps
Heap
This essentially allows you to have a heap object that will pretty much behave like the heapq library.
SetHeap
A heap with additional invariant that no two elements on the heap are the same. This is optimized for fast pushes() and membership checks.
TimeBasedHeap
Time-based heap is a good structure if you have many callbacks set to fire at a particular time in the future. It functions very like a normal Heap.
TimeBasedSetHeap
A combination of TimeBasedHeap and SetHeap:
Mixins
Mixins are classes whose constructor you do not need to invoke. They magically endow your class with chosen properties, often by overloading their specific special methods.