# ziyad-alabduljabbar/restaurant-datastructures architecture

> Architecture diagram of the GitHub repository ziyad-alabduljabbar/restaurant-datastructures, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ziyad-alabduljabbar/restaurant-datastructures
- Repository: https://github.com/ziyad-alabduljabbar/restaurant-datastructures

## Overview

This is a console-based restaurant data-structure project implemented in three parallel versions: singly linked lists, stacks, and queues. In each version, users manage food, menus, customers, and branches; menus contain food, while branches aggregate menus, stock, and customers. The sampled code shows the stack version’s menu-driven entry point and nested display calls, plus collection operations in all three structures. The linked-list and queue entry-point excerpts were not sampled, so their links from the entry points are left unverified.

Main entry points: [`Part 1 Lined List/Project Data structures/Project Data structures.cpp`](https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%201%20Lined%20List/Project%20Data%20structures/Project%20Data%20structures.cpp) (Restaurant CLI), [`Part 2 Stack/Project Data Structure p2/Project Data Structure p2.cpp`](https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%202%20Stack/Project%20Data%20Structure%20p2/Project%20Data%20Structure%20p2.cpp) (Restaurant CLI), [`Part 3 Queue/Project Data Structure p3/Project Data Structure p3.cpp`](https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%203%20Queue/Project%20Data%20Structure%20p3/Project%20Data%20Structure%20p3.cpp) (Restaurant CLI), [`Part 2 Stack/Project Data Structure p2/BranchStack.h`](https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%202%20Stack/Project%20Data%20Structure%20p2/BranchStack.h) (Branch Records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_lists["Linked Lists"]
  node_list_app["Restaurant CLI"]
  node_list_food["Food Records<br/>[FoodList.h]"]
  node_list_menu["Menu Records<br/>[Menulist.h]"]
  node_list_customer["Customer Records<br/>[CustomerList.h]"]
  node_list_branch["Branch Records<br/>[BranchList.h]"]
  node_list_stock["Stock Records<br/>[stocklist.h]"]
end

subgraph group_stacks["Stacks"]
  node_stack_app["Restaurant CLI"]
  node_stack_food["Food Records<br/>[FoodStack.h]"]
  node_stack_menu["Menu Records<br/>[MenuStack.h]"]
  node_stack_customer["Customer Records<br/>[CustomerStack.h]"]
  node_stack_branch["Branch Records<br/>[BranchStack.h]"]
  node_stack_stock["Stock Records<br/>[StockStack.h]"]
end

subgraph group_queues["Queues"]
  node_queue_app["Restaurant CLI"]
  node_queue_food["Food Records<br/>[FoodQueue.h]"]
  node_queue_menu["Menu Records<br/>[MenuQueue.h]"]
  node_queue_customer["Customer Records<br/>[CustomerQueue.h]"]
  node_queue_branch["Branch Records<br/>[BranchQueue.h]"]
  node_queue_stock["Stock Records<br/>[StockQueue.h]"]
end

node_list_branch -->|"displays menus"| node_list_menu
node_list_branch -->|"displays stock"| node_list_stock
node_list_branch -->|"displays customers"| node_list_customer
node_list_menu -->|"displays foods"| node_list_food
node_list_app -.->|"dispatches to"| node_list_food
node_list_app -.->|"dispatches to"| node_list_menu
node_list_app -.->|"dispatches to"| node_list_customer
node_list_app -.->|"dispatches to"| node_list_branch
node_stack_app -->|"dispatches to"| node_stack_food
node_stack_app -->|"dispatches to"| node_stack_menu
node_stack_app -.->|"dispatches to"| node_stack_branch
node_stack_app -.->|"dispatches to"| node_stack_customer
node_stack_branch -->|"displays menus"| node_stack_menu
node_stack_branch -->|"displays stock"| node_stack_stock
node_stack_branch -->|"displays customers"| node_stack_customer
node_stack_menu -->|"displays foods"| node_stack_food
node_queue_branch -->|"displays menus"| node_queue_menu
node_queue_branch -->|"displays stock"| node_queue_stock
node_queue_branch -->|"displays customers"| node_queue_customer
node_queue_menu -->|"displays foods"| node_queue_food
node_queue_app -.->|"dispatches to"| node_queue_food
node_queue_app -.->|"dispatches to"| node_queue_menu
node_queue_app -.->|"dispatches to"| node_queue_customer
node_queue_app -.->|"dispatches to"| node_queue_branch

click node_list_app "https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%201%20Lined%20List/Project%20Data%20structures/Project%20Data%20structures.cpp"
click node_list_food "https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%201%20Lined%20List/Project%20Data%20structures/FoodList.h"
click node_list_menu "https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%201%20Lined%20List/Project%20Data%20structures/Menulist.h"
click node_list_customer "https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%201%20Lined%20List/Project%20Data%20structures/CustomerList.h"
click node_list_branch "https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%201%20Lined%20List/Project%20Data%20structures/BranchList.h"
click node_list_stock "https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%201%20Lined%20List/Project%20Data%20structures/stocklist.h"
click node_stack_app "https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%202%20Stack/Project%20Data%20Structure%20p2/Project%20Data%20Structure%20p2.cpp"
click node_stack_food "https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%202%20Stack/Project%20Data%20Structure%20p2/FoodStack.h"
click node_stack_menu "https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%202%20Stack/Project%20Data%20Structure%20p2/MenuStack.h"
click node_stack_customer "https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%202%20Stack/Project%20Data%20Structure%20p2/CustomerStack.h"
click node_stack_branch "https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%202%20Stack/Project%20Data%20Structure%20p2/BranchStack.h"
click node_stack_stock "https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%202%20Stack/Project%20Data%20Structure%20p2/StockStack.h"
click node_queue_app "https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%203%20Queue/Project%20Data%20Structure%20p3/Project%20Data%20Structure%20p3.cpp"
click node_queue_food "https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%203%20Queue/Project%20Data%20Structure%20p3/FoodQueue.h"
click node_queue_menu "https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%203%20Queue/Project%20Data%20Structure%20p3/MenuQueue.h"
click node_queue_customer "https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%203%20Queue/Project%20Data%20Structure%20p3/CustomerQueue.h"
click node_queue_branch "https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%203%20Queue/Project%20Data%20Structure%20p3/BranchQueue.h"
click node_queue_stock "https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%203%20Queue/Project%20Data%20Structure%20p3/StockQueue.h"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_list_app,node_list_food,node_list_menu,node_list_customer,node_list_branch,node_list_stock toneBlue
class node_stack_app,node_stack_food,node_stack_menu,node_stack_customer,node_stack_branch,node_stack_stock toneAmber
class node_queue_app,node_queue_food,node_queue_menu,node_queue_customer,node_queue_branch,node_queue_stock toneMint
```

## Components

### Linked Lists

- [Restaurant CLI](https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%201%20Lined%20List/Project%20Data%20structures/Project%20Data%20structures.cpp): `Part 1 Lined List/Project Data structures/Project Data structures.cpp`
- [Food Records](https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%201%20Lined%20List/Project%20Data%20structures/FoodList.h): `Part 1 Lined List/Project Data structures/FoodList.h`
- [Menu Records](https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%201%20Lined%20List/Project%20Data%20structures/Menulist.h): `Part 1 Lined List/Project Data structures/Menulist.h`
- [Customer Records](https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%201%20Lined%20List/Project%20Data%20structures/CustomerList.h): `Part 1 Lined List/Project Data structures/CustomerList.h`
- [Branch Records](https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%201%20Lined%20List/Project%20Data%20structures/BranchList.h): `Part 1 Lined List/Project Data structures/BranchList.h`
- [Stock Records](https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%201%20Lined%20List/Project%20Data%20structures/stocklist.h): `Part 1 Lined List/Project Data structures/stocklist.h`

### Stacks

- [Restaurant CLI](https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%202%20Stack/Project%20Data%20Structure%20p2/Project%20Data%20Structure%20p2.cpp): `Part 2 Stack/Project Data Structure p2/Project Data Structure p2.cpp`
- [Food Records](https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%202%20Stack/Project%20Data%20Structure%20p2/FoodStack.h): `Part 2 Stack/Project Data Structure p2/FoodStack.h`
- [Menu Records](https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%202%20Stack/Project%20Data%20Structure%20p2/MenuStack.h): `Part 2 Stack/Project Data Structure p2/MenuStack.h`
- [Customer Records](https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%202%20Stack/Project%20Data%20Structure%20p2/CustomerStack.h): `Part 2 Stack/Project Data Structure p2/CustomerStack.h`
- [Branch Records](https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%202%20Stack/Project%20Data%20Structure%20p2/BranchStack.h): `Part 2 Stack/Project Data Structure p2/BranchStack.h`
- [Stock Records](https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%202%20Stack/Project%20Data%20Structure%20p2/StockStack.h): `Part 2 Stack/Project Data Structure p2/StockStack.h`

### Queues

- [Restaurant CLI](https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%203%20Queue/Project%20Data%20Structure%20p3/Project%20Data%20Structure%20p3.cpp): `Part 3 Queue/Project Data Structure p3/Project Data Structure p3.cpp`
- [Food Records](https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%203%20Queue/Project%20Data%20Structure%20p3/FoodQueue.h): `Part 3 Queue/Project Data Structure p3/FoodQueue.h`
- [Menu Records](https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%203%20Queue/Project%20Data%20Structure%20p3/MenuQueue.h): `Part 3 Queue/Project Data Structure p3/MenuQueue.h`
- [Customer Records](https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%203%20Queue/Project%20Data%20Structure%20p3/CustomerQueue.h): `Part 3 Queue/Project Data Structure p3/CustomerQueue.h`
- [Branch Records](https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%203%20Queue/Project%20Data%20Structure%20p3/BranchQueue.h): `Part 3 Queue/Project Data Structure p3/BranchQueue.h`
- [Stock Records](https://github.com/ziyad-alabduljabbar/restaurant-datastructures/blob/master/Part%203%20Queue/Project%20Data%20Structure%20p3/StockQueue.h): `Part 3 Queue/Project Data Structure p3/StockQueue.h`

## Connections

- Branch Records → Menu Records: displays menus (evidence: `Part 1 Lined List/Project Data structures/BranchList.h`)
- Branch Records → Stock Records: displays stock (evidence: `Part 1 Lined List/Project Data structures/BranchList.h`)
- Branch Records → Customer Records: displays customers (evidence: `Part 1 Lined List/Project Data structures/BranchList.h`)
- Menu Records → Food Records: displays foods (evidence: `Part 1 Lined List/Project Data structures/Menulist.h`)
- Restaurant CLI → Food Records: dispatches to (evidence: `Part 1 Lined List/Project Data structures/Project Data structures.cpp`)
- Restaurant CLI → Menu Records: dispatches to (evidence: `Part 1 Lined List/Project Data structures/Project Data structures.cpp`)
- Restaurant CLI → Customer Records: dispatches to (evidence: `Part 1 Lined List/Project Data structures/Project Data structures.cpp`)
- Restaurant CLI → Branch Records: dispatches to (evidence: `Part 1 Lined List/Project Data structures/Project Data structures.cpp`)
- Restaurant CLI → Food Records: dispatches to (evidence: `Part 2 Stack/Project Data Structure p2/Project Data Structure p2.cpp`)
- Restaurant CLI → Menu Records: dispatches to (evidence: `Part 2 Stack/Project Data Structure p2/Project Data Structure p2.cpp`)
- Restaurant CLI → Branch Records: dispatches to (evidence: `Part 2 Stack/Project Data Structure p2/Project Data Structure p2.cpp`)
- Restaurant CLI → Customer Records: dispatches to (evidence: `Part 2 Stack/Project Data Structure p2/Project Data Structure p2.cpp`)
- Branch Records → Menu Records: displays menus (evidence: `Part 2 Stack/Project Data Structure p2/BranchStack.h`)
- Branch Records → Stock Records: displays stock (evidence: `Part 2 Stack/Project Data Structure p2/BranchStack.h`)
- Branch Records → Customer Records: displays customers (evidence: `Part 2 Stack/Project Data Structure p2/BranchStack.h`)
- Menu Records → Food Records: displays foods (evidence: `Part 2 Stack/Project Data Structure p2/MenuStack.h`)
- Branch Records → Menu Records: displays menus (evidence: `Part 3 Queue/Project Data Structure p3/BranchQueue.h`)
- Branch Records → Stock Records: displays stock (evidence: `Part 3 Queue/Project Data Structure p3/BranchQueue.h`)
- Branch Records → Customer Records: displays customers (evidence: `Part 3 Queue/Project Data Structure p3/BranchQueue.h`)
- Menu Records → Food Records: displays foods (evidence: `Part 3 Queue/Project Data Structure p3/MenuQueue.h`)
- Restaurant CLI → Food Records: dispatches to (evidence: `Part 3 Queue/Project Data Structure p3/Project Data Structure p3.cpp`)
- Restaurant CLI → Menu Records: dispatches to (evidence: `Part 3 Queue/Project Data Structure p3/Project Data Structure p3.cpp`)
- Restaurant CLI → Customer Records: dispatches to (evidence: `Part 3 Queue/Project Data Structure p3/Project Data Structure p3.cpp`)
- Restaurant CLI → Branch Records: dispatches to (evidence: `Part 3 Queue/Project Data Structure p3/Project Data Structure p3.cpp`)
