How 1311hub/trashverse works
Trashverse is a C++ smart waste-collection system for monitoring bin fill, organizing bins by zone, planning collection routes, and reporting worker pay. The visible data workflow loads bin and road CSVs into in-memory structures; those structures support route planning and monitoring views. The menu also advertises time simulation and data regeneration. The README gives no operational detail, and the tiny main.cpp excerpt provides no visible orchestration, so links between menu actions and those capabilities are not asserted. Edges reflect only calls or data use shown in excerpts or SOURCE INDEX references.
Main entry points: data.cpp Data manager · graph.cpp Road graph and routes · hashmap.cpp Bin records · tree.cpp Zone hierarchy and statistics
Components 14
Data and monitoring
- Data manager
src/data.cpp - Bin records
src/hashmap.cpp - Bin and map views
src/display.cpp
Road routing
- Road graph and routes
src/graph.cpp - Route view
src/display.cpp - Dijkstra min-heap
src/graph.cpp
Priority and queue structures
- Fill priority heap
src/heap.cpp - Queue
src/queue.cpp
Zones and workforce
- Zone hierarchy and statistics
src/tree.cpp - Zone statistics view
src/display.cpp - Worker ledger and pay
src/ledger.cpp - Payment report view
src/display.cpp
Other components
- Operator
- Program entry
src/main.cpp
Connections 9
- Data manager → Bin records: loads records
src/data.cpp - Data manager → Road graph and routes: loads roads
src/data.cpp - Data manager → Zone hierarchy and statistics: builds hierarchy
src/data.cpp - Bin and map views → Bin records: reads bins
src/display.cpp - Route view → Road graph and routes: renders route result
- Road graph and routes → Dijkstra min-heap: uses heap
src/graph.cpp - Zone statistics view → Zone hierarchy and statistics: calls displays
src/display.cpp - Payment report view → Worker ledger and pay: calls report
src/display.cpp - Operator → Program entry: starts program