How theraiven/datastructures works
This is an educational C++ data-structures library. Its principal workflow is a caller choosing a container, performing operations such as insertion, lookup, or iteration, and using the resulting stored data; the README also documents a runnable comparison of the custom containers with STL equivalents. The graph includes the documented container families and useful iterator/node layers. Several implementations were not sampled, so their internal call relationships are omitted or marked unverified rather than inferred.
Main entry points: BenchmarkDSAndSTL.h Container comparisons · Vector.h Vector · HashMapChaining.h Chaining map · HashMapOpenAddressing.h Open-addressing map
Components 16
Core containers
- Vector
DataStructures/Containers/Vector/Vector.h - List
DataStructures/Containers/List/List.h - Red-black tree
DataStructures/Containers/RBTree/RBTree.h
Hash tables
- Hash table interface
DataStructures/Containers/HashMap/IHashTable.h - Chaining map
DataStructures/Containers/HashMap/HashMapChaining/HashMapChaining.h - Open-addressing map
DataStructures/Containers/HashMap/HashMapOpenAddressing/HashMapOpenAddressing.h
Iterator and node internals
- Vector iterators
DataStructures/Containers/Vector/VectorIterators.h - List iterators
DataStructures/Containers/List/ListIterator.h - List node
DataStructures/Containers/List/ListNode.h - Tree iterators
DataStructures/Containers/RBTree/RBTIterators.h - Tree node
DataStructures/Containers/RBTree/RBTNode.h - Hash iterators
DataStructures/Containers/HashMap/HashMapChaining/HashTableIterator.h
Performance comparison
- Benchmark entry point
DataStructures/DataStructures.cpp - Container comparisons
DataStructures/Benchmark/BenchmarkDSAndSTL.h
Other components
- Library caller
- STL equivalents
Connections 19
- Library caller → Vector: uses
README.md - Library caller → List: uses
README.md - Library caller → Red-black tree: uses
README.md - Library caller → Chaining map: uses
README.md - Library caller → Open-addressing map: uses
README.md - Vector → Vector iterators: uses
DataStructures/Containers/Vector/Vector.h - List iterators → List node: reads links
DataStructures/Containers/List/ListIterator.h - Tree iterators → Tree node: traverses
DataStructures/Containers/RBTree/RBTIterators.h - Hash iterators → Hash table interface: references
DataStructures/Containers/HashMap/HashMapChaining/HashTableIterator.h - Open-addressing map → Hash table interface: implements
DataStructures/Containers/HashMap/HashMapOpenAddressing/HashMapOpenAddressing.h - Chaining map → Hash table interface: implements
- Library caller → Benchmark entry point: runs
README.md - Benchmark entry point → Container comparisons: runs comparisons
DataStructures/DataStructures.cpp - Container comparisons → STL equivalents: compares against
README.md - Container comparisons → Vector: measures
- Container comparisons → List: measures
- Container comparisons → Red-black tree: measures
- Container comparisons → Chaining map: measures
- Container comparisons → Open-addressing map: measures