# wajzy/gkxb_intm119 architecture

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

- Interactive diagram: https://gitdiagram.com/wajzy/gkxb_intm119
- Repository: https://github.com/wajzy/gkxb_intm119

## Overview

This repository is a collection of C++ object-oriented programming lecture examples, not one integrated application. Its user-to-result workflows are independent programs: a demo’s main function constructs or exercises an example and prints results. The graph highlights dynamic strings, shape hierarchies, event listeners, and representative language/container examples. The README gives only the course purpose; many files were not sampled, so omitted links do not imply those examples lack internal behavior.

Main entry points: [`gy04/main.cpp`](https://github.com/wajzy/gkxb_intm119/blob/main/gy04/main.cpp) (Polymorphic demo), [`ea02/eventHandling/eventMain.cpp`](https://github.com/wajzy/gkxb_intm119/blob/main/ea02/eventHandling/eventMain.cpp) (Event demo), [`ea02/main15.cpp`](https://github.com/wajzy/gkxb_intm119/blob/main/ea02/main15.cpp) (Cached area demo), [`ea02/eventHandling/ClickListener.hpp`](https://github.com/wajzy/gkxb_intm119/blob/main/ea02/eventHandling/ClickListener.hpp) (Click listener)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_strings["Dynamic strings"]
  node_dinstr_demo["String demo<br/>[main.cpp]"]
  node_dinstr["Dynamic string<br/>[dinstr.cpp]"]
end

subgraph group_shapes["Shape examples"]
  node_shapes03_demo["Shape demo<br/>[main.cpp]"]
  node_shapes03["Basic shapes<br/>[rectangle.h]"]
  node_shapes04_demo["Polymorphic demo<br/>[main.cpp]"]
  node_shape_base["Shape base<br/>[shape.h]"]
  node_rectangle04["Rectangle<br/>[rectangle.h]"]
  node_filledrectangle04["Filled rectangle<br/>[filledrectangle.h]"]
  node_circle04["Circle<br/>[circle.h]"]
  node_filledcircle04["Filled circle<br/>[filledcircle.h]"]
  node_cached_shape_demo["Cached area demo<br/>[main15.cpp]"]
  node_cached_shape["Cached shape<br/>[Shape15.hpp]"]
  node_rectangle15["Rectangle 15<br/>[Rectangle15.hpp]"]
  node_triangle15["Triangle 15<br/>[Triangle15.hpp]"]
end

subgraph group_events["Event handling"]
  node_event_demo["Event demo<br/>[eventMain.cpp]"]
  node_button["Button<br/>[Button.hpp]"]
  node_listener["Click listener<br/>[ClickListener.hpp]"]
  node_click_event["Click event<br/>[ClickEvent.hpp]"]
  node_counter["Click counter<br/>[ClickCounter.hpp]"]
  node_logger["Console logger<br/>[ConsoleLogger.hpp]"]
end

subgraph group_language["C++ examples"]
  node_complex_numbers["Complex numbers<br/>[Complex4.h]"]
  node_time_example["Time example<br/>[Time.h]"]
  node_stack_example["Stack example<br/>[Stack2.h]"]
  node_exception_example["Exception examples<br/>[trycatch1.cpp]"]
  node_iterator["Iterator interface<br/>[Iterator.h]"]
  node_linked_list["Linked list<br/>[LinkedList.h]"]
  node_message_collection["Message collection<br/>[Message5.h]"]
  node_container_demos["STL demos<br/>[vectorDemo.cpp]"]
  node_inheritance_examples["Inheritance examples<br/>[inheritance03.cpp]"]
  node_gy01_example["Intro example<br/>[main.cpp]"]
end

node_student(("Learner"))

node_student -->|"runs"| node_dinstr_demo
node_dinstr_demo -->|"uses"| node_dinstr
node_dinstr_demo -->|"prints"| node_dinstr
node_student -->|"runs"| node_shapes03_demo
node_shapes03_demo -->|"constructs"| node_shapes03
node_shapes03_demo -->|"draws"| node_shapes03
node_student -->|"runs"| node_shapes04_demo
node_shapes04_demo -->|"constructs"| node_rectangle04
node_shapes04_demo -->|"constructs"| node_filledrectangle04
node_shapes04_demo -->|"constructs"| node_circle04
node_shapes04_demo -->|"constructs"| node_filledcircle04
node_shapes04_demo -->|"draws"| node_shape_base
node_rectangle04 -->|"inherits"| node_shape_base
node_circle04 -->|"inherits"| node_shape_base
node_filledrectangle04 -->|"inherits"| node_rectangle04
node_filledcircle04 -->|"inherits"| node_circle04
node_student -->|"runs"| node_cached_shape_demo
node_cached_shape_demo -->|"uses"| node_cached_shape
node_cached_shape_demo -->|"uses"| node_rectangle15
node_cached_shape_demo -->|"uses"| node_triangle15
node_rectangle15 -->|"inherits"| node_cached_shape
node_triangle15 -->|"inherits"| node_cached_shape
node_student -->|"runs"| node_event_demo
node_event_demo -->|"subscribes"| node_button
node_event_demo -->|"registers"| node_logger
node_event_demo -->|"registers"| node_counter
node_event_demo -->|"dispatches clicks"| node_button
node_button -->|"accepts"| node_listener
node_listener -->|"receives"| node_click_event
node_counter -->|"implements"| node_listener
node_logger -->|"implements"| node_listener
node_linked_list -->|"uses"| node_iterator
node_message_collection -->|"uses"| node_iterator

click node_dinstr_demo "https://github.com/wajzy/gkxb_intm119/blob/main/gy02/main.cpp"
click node_dinstr "https://github.com/wajzy/gkxb_intm119/blob/main/gy02/dinstr.cpp"
click node_shapes03_demo "https://github.com/wajzy/gkxb_intm119/blob/main/gy03/main.cpp"
click node_shapes03 "https://github.com/wajzy/gkxb_intm119/blob/main/gy03/rectangle.h"
click node_shapes04_demo "https://github.com/wajzy/gkxb_intm119/blob/main/gy04/main.cpp"
click node_shape_base "https://github.com/wajzy/gkxb_intm119/blob/main/gy04/shape.h"
click node_rectangle04 "https://github.com/wajzy/gkxb_intm119/blob/main/gy04/rectangle.h"
click node_filledrectangle04 "https://github.com/wajzy/gkxb_intm119/blob/main/gy04/filledrectangle.h"
click node_circle04 "https://github.com/wajzy/gkxb_intm119/blob/main/gy04/circle.h"
click node_filledcircle04 "https://github.com/wajzy/gkxb_intm119/blob/main/gy04/filledcircle.h"
click node_cached_shape_demo "https://github.com/wajzy/gkxb_intm119/blob/main/ea02/main15.cpp"
click node_cached_shape "https://github.com/wajzy/gkxb_intm119/blob/main/ea02/Shape15.hpp"
click node_rectangle15 "https://github.com/wajzy/gkxb_intm119/blob/main/ea02/Rectangle15.hpp"
click node_triangle15 "https://github.com/wajzy/gkxb_intm119/blob/main/ea02/Triangle15.hpp"
click node_event_demo "https://github.com/wajzy/gkxb_intm119/blob/main/ea02/eventHandling/eventMain.cpp"
click node_button "https://github.com/wajzy/gkxb_intm119/blob/main/ea02/eventHandling/Button.hpp"
click node_listener "https://github.com/wajzy/gkxb_intm119/blob/main/ea02/eventHandling/ClickListener.hpp"
click node_click_event "https://github.com/wajzy/gkxb_intm119/blob/main/ea02/eventHandling/ClickEvent.hpp"
click node_counter "https://github.com/wajzy/gkxb_intm119/blob/main/ea02/eventHandling/ClickCounter.hpp"
click node_logger "https://github.com/wajzy/gkxb_intm119/blob/main/ea02/eventHandling/ConsoleLogger.hpp"
click node_complex_numbers "https://github.com/wajzy/gkxb_intm119/blob/main/ea03/Complex4.h"
click node_time_example "https://github.com/wajzy/gkxb_intm119/blob/main/ea03/Time.h"
click node_stack_example "https://github.com/wajzy/gkxb_intm119/blob/main/ea04/Stack2.h"
click node_exception_example "https://github.com/wajzy/gkxb_intm119/blob/main/ea04/trycatch1.cpp"
click node_iterator "https://github.com/wajzy/gkxb_intm119/blob/main/ea05/Iterator.h"
click node_linked_list "https://github.com/wajzy/gkxb_intm119/blob/main/ea05/LinkedList.h"
click node_message_collection "https://github.com/wajzy/gkxb_intm119/blob/main/ea05/Message5.h"
click node_container_demos "https://github.com/wajzy/gkxb_intm119/blob/main/ea05/vectorDemo.cpp"
click node_inheritance_examples "https://github.com/wajzy/gkxb_intm119/blob/main/ea02/inheritance03.cpp"
click node_gy01_example "https://github.com/wajzy/gkxb_intm119/blob/main/gy01/main.cpp"

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_dinstr_demo,node_dinstr toneBlue
class node_shapes03_demo,node_shapes03,node_shapes04_demo,node_shape_base,node_rectangle04,node_filledrectangle04,node_circle04,node_filledcircle04,node_cached_shape_demo,node_cached_shape,node_rectangle15,node_triangle15 toneAmber
class node_event_demo,node_button,node_listener,node_click_event,node_counter,node_logger toneMint
class node_complex_numbers,node_time_example,node_stack_example,node_exception_example,node_iterator,node_linked_list,node_message_collection,node_container_demos,node_inheritance_examples,node_gy01_example toneRose
class node_student toneIndigo
```

## Components

### Dynamic strings

- [String demo](https://github.com/wajzy/gkxb_intm119/blob/main/gy02/main.cpp): `gy02/main.cpp`
- [Dynamic string](https://github.com/wajzy/gkxb_intm119/blob/main/gy02/dinstr.cpp): `gy02/dinstr.cpp`

### Shape examples

- [Shape demo](https://github.com/wajzy/gkxb_intm119/blob/main/gy03/main.cpp): `gy03/main.cpp`
- [Basic shapes](https://github.com/wajzy/gkxb_intm119/blob/main/gy03/rectangle.h): `gy03/rectangle.h`
- [Polymorphic demo](https://github.com/wajzy/gkxb_intm119/blob/main/gy04/main.cpp): `gy04/main.cpp`
- [Shape base](https://github.com/wajzy/gkxb_intm119/blob/main/gy04/shape.h): `gy04/shape.h`
- [Rectangle](https://github.com/wajzy/gkxb_intm119/blob/main/gy04/rectangle.h): `gy04/rectangle.h`
- [Filled rectangle](https://github.com/wajzy/gkxb_intm119/blob/main/gy04/filledrectangle.h): `gy04/filledrectangle.h`
- [Circle](https://github.com/wajzy/gkxb_intm119/blob/main/gy04/circle.h): `gy04/circle.h`
- [Filled circle](https://github.com/wajzy/gkxb_intm119/blob/main/gy04/filledcircle.h): `gy04/filledcircle.h`
- [Cached area demo](https://github.com/wajzy/gkxb_intm119/blob/main/ea02/main15.cpp): `ea02/main15.cpp`
- [Cached shape](https://github.com/wajzy/gkxb_intm119/blob/main/ea02/Shape15.hpp): `ea02/Shape15.hpp`
- [Rectangle 15](https://github.com/wajzy/gkxb_intm119/blob/main/ea02/Rectangle15.hpp): `ea02/Rectangle15.hpp`
- [Triangle 15](https://github.com/wajzy/gkxb_intm119/blob/main/ea02/Triangle15.hpp): `ea02/Triangle15.hpp`

### Event handling

- [Event demo](https://github.com/wajzy/gkxb_intm119/blob/main/ea02/eventHandling/eventMain.cpp): `ea02/eventHandling/eventMain.cpp`
- [Button](https://github.com/wajzy/gkxb_intm119/blob/main/ea02/eventHandling/Button.hpp): `ea02/eventHandling/Button.hpp`
- [Click listener](https://github.com/wajzy/gkxb_intm119/blob/main/ea02/eventHandling/ClickListener.hpp): `ea02/eventHandling/ClickListener.hpp`
- [Click event](https://github.com/wajzy/gkxb_intm119/blob/main/ea02/eventHandling/ClickEvent.hpp): `ea02/eventHandling/ClickEvent.hpp`
- [Click counter](https://github.com/wajzy/gkxb_intm119/blob/main/ea02/eventHandling/ClickCounter.hpp): `ea02/eventHandling/ClickCounter.hpp`
- [Console logger](https://github.com/wajzy/gkxb_intm119/blob/main/ea02/eventHandling/ConsoleLogger.hpp): `ea02/eventHandling/ConsoleLogger.hpp`

### C++ examples

- [Complex numbers](https://github.com/wajzy/gkxb_intm119/blob/main/ea03/Complex4.h): `ea03/Complex4.h`
- [Time example](https://github.com/wajzy/gkxb_intm119/blob/main/ea03/Time.h): `ea03/Time.h`
- [Stack example](https://github.com/wajzy/gkxb_intm119/blob/main/ea04/Stack2.h): `ea04/Stack2.h`
- [Exception examples](https://github.com/wajzy/gkxb_intm119/blob/main/ea04/trycatch1.cpp): `ea04/trycatch1.cpp`
- [Iterator interface](https://github.com/wajzy/gkxb_intm119/blob/main/ea05/Iterator.h): `ea05/Iterator.h`
- [Linked list](https://github.com/wajzy/gkxb_intm119/blob/main/ea05/LinkedList.h): `ea05/LinkedList.h`
- [Message collection](https://github.com/wajzy/gkxb_intm119/blob/main/ea05/Message5.h): `ea05/Message5.h`
- [STL demos](https://github.com/wajzy/gkxb_intm119/blob/main/ea05/vectorDemo.cpp): `ea05/vectorDemo.cpp`
- [Inheritance examples](https://github.com/wajzy/gkxb_intm119/blob/main/ea02/inheritance03.cpp): `ea02/inheritance03.cpp`
- [Intro example](https://github.com/wajzy/gkxb_intm119/blob/main/gy01/main.cpp): `gy01/main.cpp`

### Other components

- **Learner**

## Connections

- Learner → String demo: runs (evidence: `gy02/main.cpp`)
- String demo → Dynamic string: uses (evidence: `gy02/main.cpp`)
- String demo → Dynamic string: prints (evidence: `gy02/main.cpp`)
- Learner → Shape demo: runs (evidence: `gy03/main.cpp`)
- Shape demo → Basic shapes: constructs (evidence: `gy03/main.cpp`)
- Shape demo → Basic shapes: draws (evidence: `gy03/main.cpp`)
- Learner → Polymorphic demo: runs (evidence: `gy04/main.cpp`)
- Polymorphic demo → Rectangle: constructs (evidence: `gy04/main.cpp`)
- Polymorphic demo → Filled rectangle: constructs (evidence: `gy04/main.cpp`)
- Polymorphic demo → Circle: constructs (evidence: `gy04/main.cpp`)
- Polymorphic demo → Filled circle: constructs (evidence: `gy04/main.cpp`)
- Polymorphic demo → Shape base: draws (evidence: `gy04/main.cpp`)
- Rectangle → Shape base: inherits (evidence: `gy04/rectangle.h`)
- Circle → Shape base: inherits (evidence: `gy04/circle.h`)
- Filled rectangle → Rectangle: inherits (evidence: `gy04/filledrectangle.h`)
- Filled circle → Circle: inherits (evidence: `gy04/filledcircle.h`)
- Learner → Cached area demo: runs (evidence: `ea02/main15.cpp`)
- Cached area demo → Cached shape: uses (evidence: `ea02/main15.cpp`)
- Cached area demo → Rectangle 15: uses (evidence: `ea02/main15.cpp`)
- Cached area demo → Triangle 15: uses (evidence: `ea02/main15.cpp`)
- Rectangle 15 → Cached shape: inherits (evidence: `ea02/Rectangle15.hpp`)
- Triangle 15 → Cached shape: inherits (evidence: `ea02/Triangle15.hpp`)
- Learner → Event demo: runs (evidence: `ea02/eventHandling/eventMain.cpp`)
- Event demo → Button: subscribes (evidence: `ea02/eventHandling/eventMain.cpp`)
- Event demo → Console logger: registers (evidence: `ea02/eventHandling/eventMain.cpp`)
- Event demo → Click counter: registers (evidence: `ea02/eventHandling/eventMain.cpp`)
- Event demo → Button: dispatches clicks (evidence: `ea02/eventHandling/eventMain.cpp`)
- Button → Click listener: accepts (evidence: `ea02/eventHandling/Button.hpp`)
- Click listener → Click event: receives (evidence: `ea02/eventHandling/ClickListener.hpp`)
- Click counter → Click listener: implements (evidence: `ea02/eventHandling/ClickCounter.hpp`)
- Console logger → Click listener: implements (evidence: `ea02/eventHandling/ConsoleLogger.hpp`)
- Linked list → Iterator interface: uses (evidence: `ea05/LinkedList.h`)
- Message collection → Iterator interface: uses (evidence: `ea05/Message5.h`)
