# rvnsenkuuu/cpp-modules architecture

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

- Interactive diagram: https://gitdiagram.com/rvnsenkuuu/cpp-modules
- Repository: https://github.com/rvnsenkuuu/cpp-modules

## Overview

This repository is a sequence of independent 42 C++ exercises, not one integrated application. The user-to-result path varies by exercise: a small main program invokes a domain class or utility and prints the result. The graph groups related exercises by topic and retains major capabilities visible in the tree and SOURCE INDEX. Most implementation files were not sampled, so links are limited to relationships shown by indexed references or excerpts; there is no evidence of cross-exercise runtime wiring.

Main entry points: [`cpp05/ex03/main.cpp`](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp05/ex03/main.cpp) (Forms Demo), [`cpp06/ex01/main.cpp`](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp06/ex01/main.cpp) (Serialization Demo), [`cpp06/ex01/Serializer.cpp`](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp06/ex01/Serializer.cpp) (Pointer Serialization), [`cpp04/ex03/main.cpp`](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp04/ex03/main.cpp) (Materia Demo)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_basics["Basics and Values"]
  node_phonebook["Phonebook<br/>[Phonebook.cpp]"]
  node_phonebook_main["Phonebook Driver<br/>entry point"]
  node_fixed["Fixed-Point Arithmetic<br/>[Fixed.cpp]"]
  node_fixed_main["Fixed-Point Demo<br/>entry point"]
end

subgraph group_objects["Object-Oriented Models"]
  node_trap_family["Trap Inheritance<br/>[DiamondTrap.cpp]"]
  node_trap_main["Trap Demo<br/>entry point"]
  node_animals["Polymorphic Animals<br/>[Animal.cpp]"]
  node_animal_main["Animal Demo<br/>entry point"]
  node_materia["Materia Inventory<br/>[Character.cpp]"]
  node_materia_source["Materia Factory<br/>[MateriaSource.cpp]"]
  node_materia_main["Materia Demo<br/>entry point"]
end

subgraph group_bureaucracy["Bureaucracy Forms"]
  node_bureaucrat["Grade Management<br/>[Bureaucrat.cpp]"]
  node_forms["Executable Forms<br/>[AForm.cpp]"]
  node_form_types["Concrete Form Actions"]
  node_intern["Form Creation<br/>[Intern.cpp]"]
  node_forms_main["Forms Demo<br/>entry point"]
end

subgraph group_language["C++ Language Tools"]
  node_serializer["Pointer Serialization<br/>[Serializer.cpp]"]
  node_serializer_main["Serialization Demo<br/>entry point"]
  node_templates["Generic Algorithms<br/>[CompareSwap.h]"]
  node_iter["Iterator Function<br/>[Iter.h]"]
  node_array["Generic Array<br/>[Array.hpp]"]
  node_easyfind["Container Search<br/>[Easyfind.hpp]"]
  node_span["Integer Span<br/>[Span.cpp]"]
  node_mutant_stack["Iterable Stack<br/>[MutantStack.hpp]"]
  node_cpp07_ex00_demo["Template Demo<br/>entry point"]
  node_cpp07_ex01_demo["Iterator Demo<br/>entry point"]
  node_cpp07_ex02_demo["Array Demo<br/>entry point"]
  node_cpp08_ex00_demo["Search Demo<br/>entry point"]
  node_cpp08_ex01_demo["Span Demo<br/>entry point"]
  node_cpp08_ex02_demo["Stack Demo<br/>entry point"]
end

subgraph group_algorithms["Algorithms and Data"]
  node_bitcoin["Bitcoin Exchange"]
  node_rpn["Reverse Polish Notation<br/>[RPN.cpp]"]
  node_merge_insert["Merge-Insertion Sort<br/>[PmergeMe.cpp]"]
end

node_phonebook_main -->|"uses"| node_phonebook
node_fixed_main -->|"exercises"| node_fixed
node_trap_main -->|"uses"| node_trap_family
node_animal_main -->|"uses"| node_animals
node_materia_main -->|"creates"| node_materia_source
node_materia_main -->|"equips and uses"| node_materia
node_forms_main -->|"creates"| node_bureaucrat
node_forms_main -->|"requests forms"| node_intern
node_forms_main -->|"signs and executes"| node_forms
node_forms_main -->|"tests actions"| node_form_types
node_serializer_main -->|"serializes pointers"| node_serializer
node_serializer_main -->|"deserializes pointers"| node_serializer
node_serializer_main -->|"uses data type"| node_serializer
node_cpp07_ex00_demo -->|"calls utilities"| node_templates
node_cpp07_ex01_demo -->|"uses"| node_iter
node_cpp07_ex02_demo -->|"uses"| node_array
node_cpp08_ex00_demo -->|"searches containers"| node_easyfind
node_cpp08_ex01_demo -->|"uses"| node_span
node_cpp08_ex02_demo -->|"uses"| node_mutant_stack

click node_phonebook "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp00/ex01/Phonebook.cpp"
click node_phonebook_main "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp00/ex01/main.cpp"
click node_fixed "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp02/ex02/Fixed.cpp"
click node_fixed_main "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp02/ex02/main.cpp"
click node_trap_family "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp03/ex03/DiamondTrap.cpp"
click node_trap_main "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp03/ex03/main.cpp"
click node_animals "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp04/ex00/Animal.cpp"
click node_animal_main "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp04/ex00/main.cpp"
click node_materia "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp04/ex03/Character.cpp"
click node_materia_source "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp04/ex03/MateriaSource.cpp"
click node_materia_main "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp04/ex03/main.cpp"
click node_bureaucrat "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp05/ex03/Bureaucrat.cpp"
click node_forms "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp05/ex02/AForm.cpp"
click node_form_types "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp05/ex02/RobotomyRequestForm.cpp"
click node_intern "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp05/ex03/Intern.cpp"
click node_forms_main "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp05/ex03/main.cpp"
click node_serializer "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp06/ex01/Serializer.cpp"
click node_serializer_main "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp06/ex01/main.cpp"
click node_templates "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp07/ex00/CompareSwap.h"
click node_iter "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp07/ex01/Iter.h"
click node_array "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp07/ex02/Array.hpp"
click node_easyfind "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp08/ex00/Easyfind.hpp"
click node_span "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp08/ex01/Span.cpp"
click node_mutant_stack "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp08/ex02/MutantStack.hpp"
click node_bitcoin "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp09/ex00/BitcoinExchange.cpp"
click node_rpn "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp09/ex01/RPN.cpp"
click node_merge_insert "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp09/ex02/PmergeMe.cpp"
click node_cpp07_ex00_demo "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp07/ex00/main.cpp"
click node_cpp07_ex01_demo "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp07/ex01/main.cpp"
click node_cpp07_ex02_demo "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp07/ex02/main.cpp"
click node_cpp08_ex00_demo "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp08/ex00/main.cpp"
click node_cpp08_ex01_demo "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp08/ex01/main.cpp"
click node_cpp08_ex02_demo "https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp08/ex02/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_phonebook,node_phonebook_main,node_fixed,node_fixed_main toneBlue
class node_trap_family,node_trap_main,node_animals,node_animal_main,node_materia,node_materia_source,node_materia_main toneAmber
class node_bureaucrat,node_forms,node_form_types,node_intern,node_forms_main toneMint
class node_serializer,node_serializer_main,node_templates,node_iter,node_array,node_easyfind,node_span,node_mutant_stack,node_cpp07_ex00_demo,node_cpp07_ex01_demo,node_cpp07_ex02_demo,node_cpp08_ex00_demo,node_cpp08_ex01_demo,node_cpp08_ex02_demo toneRose
class node_bitcoin,node_rpn,node_merge_insert toneIndigo
```

## Components

### Basics and Values

- [Phonebook](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp00/ex01/Phonebook.cpp): `cpp00/ex01/Phonebook.cpp`
- [Phonebook Driver](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp00/ex01/main.cpp): entry point · `cpp00/ex01/main.cpp`
- [Fixed-Point Arithmetic](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp02/ex02/Fixed.cpp): `cpp02/ex02/Fixed.cpp`
- [Fixed-Point Demo](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp02/ex02/main.cpp): entry point · `cpp02/ex02/main.cpp`

### Object-Oriented Models

- [Trap Inheritance](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp03/ex03/DiamondTrap.cpp): `cpp03/ex03/DiamondTrap.cpp`
- [Trap Demo](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp03/ex03/main.cpp): entry point · `cpp03/ex03/main.cpp`
- [Polymorphic Animals](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp04/ex00/Animal.cpp): `cpp04/ex00/Animal.cpp`
- [Animal Demo](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp04/ex00/main.cpp): entry point · `cpp04/ex00/main.cpp`
- [Materia Inventory](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp04/ex03/Character.cpp): `cpp04/ex03/Character.cpp`
- [Materia Factory](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp04/ex03/MateriaSource.cpp): `cpp04/ex03/MateriaSource.cpp`
- [Materia Demo](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp04/ex03/main.cpp): entry point · `cpp04/ex03/main.cpp`

### Bureaucracy Forms

- [Grade Management](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp05/ex03/Bureaucrat.cpp): `cpp05/ex03/Bureaucrat.cpp`
- [Executable Forms](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp05/ex02/AForm.cpp): `cpp05/ex02/AForm.cpp`
- [Concrete Form Actions](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp05/ex02/RobotomyRequestForm.cpp): `cpp05/ex02/RobotomyRequestForm.cpp`
- [Form Creation](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp05/ex03/Intern.cpp): `cpp05/ex03/Intern.cpp`
- [Forms Demo](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp05/ex03/main.cpp): entry point · `cpp05/ex03/main.cpp`

### C++ Language Tools

- [Pointer Serialization](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp06/ex01/Serializer.cpp): `cpp06/ex01/Serializer.cpp`
- [Serialization Demo](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp06/ex01/main.cpp): entry point · `cpp06/ex01/main.cpp`
- [Generic Algorithms](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp07/ex00/CompareSwap.h): `cpp07/ex00/CompareSwap.h`
- [Iterator Function](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp07/ex01/Iter.h): `cpp07/ex01/Iter.h`
- [Generic Array](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp07/ex02/Array.hpp): `cpp07/ex02/Array.hpp`
- [Container Search](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp08/ex00/Easyfind.hpp): `cpp08/ex00/Easyfind.hpp`
- [Integer Span](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp08/ex01/Span.cpp): `cpp08/ex01/Span.cpp`
- [Iterable Stack](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp08/ex02/MutantStack.hpp): `cpp08/ex02/MutantStack.hpp`
- [Template Demo](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp07/ex00/main.cpp): entry point · `cpp07/ex00/main.cpp`
- [Iterator Demo](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp07/ex01/main.cpp): entry point · `cpp07/ex01/main.cpp`
- [Array Demo](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp07/ex02/main.cpp): entry point · `cpp07/ex02/main.cpp`
- [Search Demo](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp08/ex00/main.cpp): entry point · `cpp08/ex00/main.cpp`
- [Span Demo](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp08/ex01/main.cpp): entry point · `cpp08/ex01/main.cpp`
- [Stack Demo](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp08/ex02/main.cpp): entry point · `cpp08/ex02/main.cpp`

### Algorithms and Data

- [Bitcoin Exchange](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp09/ex00/BitcoinExchange.cpp): `cpp09/ex00/BitcoinExchange.cpp`
- [Reverse Polish Notation](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp09/ex01/RPN.cpp): `cpp09/ex01/RPN.cpp`
- [Merge-Insertion Sort](https://github.com/rvnsenkuuu/cpp-modules/blob/main/cpp09/ex02/PmergeMe.cpp): `cpp09/ex02/PmergeMe.cpp`

## Connections

- Phonebook Driver → Phonebook: uses (evidence: `cpp00/ex01/main.cpp`)
- Fixed-Point Demo → Fixed-Point Arithmetic: exercises (evidence: `cpp02/ex02/main.cpp`)
- Trap Demo → Trap Inheritance: uses (evidence: `cpp03/ex03/main.cpp`)
- Animal Demo → Polymorphic Animals: uses (evidence: `cpp04/ex00/main.cpp`)
- Materia Demo → Materia Factory: creates (evidence: `cpp04/ex03/main.cpp`)
- Materia Demo → Materia Inventory: equips and uses (evidence: `cpp04/ex03/main.cpp`)
- Forms Demo → Grade Management: creates (evidence: `cpp05/ex03/main.cpp`)
- Forms Demo → Form Creation: requests forms (evidence: `cpp05/ex03/main.cpp`)
- Forms Demo → Executable Forms: signs and executes (evidence: `cpp05/ex03/main.cpp`)
- Forms Demo → Concrete Form Actions: tests actions (evidence: `cpp05/ex03/main.cpp`)
- Serialization Demo → Pointer Serialization: serializes pointers (evidence: `cpp06/ex01/main.cpp`)
- Serialization Demo → Pointer Serialization: deserializes pointers (evidence: `cpp06/ex01/main.cpp`)
- Serialization Demo → Pointer Serialization: uses data type (evidence: `cpp06/ex01/main.cpp`)
- Template Demo → Generic Algorithms: calls utilities (evidence: `cpp07/ex00/main.cpp`)
- Iterator Demo → Iterator Function: uses (evidence: `cpp07/ex01/main.cpp`)
- Array Demo → Generic Array: uses (evidence: `cpp07/ex02/main.cpp`)
- Search Demo → Container Search: searches containers (evidence: `cpp08/ex00/main.cpp`)
- Span Demo → Integer Span: uses (evidence: `cpp08/ex01/main.cpp`)
- Stack Demo → Iterable Stack: uses (evidence: `cpp08/ex02/main.cpp`)
